Skip to content

Commit

Permalink
110 Display the job label for responder jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 27, 2018
1 parent 0721afa commit 921678d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
22 changes: 20 additions & 2 deletions www/src/app/pages/jobs/components/job.details.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@

<strong>Artifact</strong>
<p>
[{{$ctrl.job.dataType | uppercase}}] {{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name
: $ctrl.job.data) | fang}}
<span>[{{$ctrl.job.dataType | uppercase}}]</span>
<span ng-if="$ctrl.job.type !== 'responder'">{{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name: $ctrl.job.data) | fang}}</span>
<span ng-if="$ctrl.job.type === 'responder'">{{$ctrl.job.label || 'No Label'}}</span>

</p>
<p ng-if="">
[{{$ctrl.job.dataType | uppercase}}] {{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name : $ctrl.job.data) | fang}}
</p>
<hr>

Expand All @@ -18,6 +23,19 @@
</p>
<hr>

<strong>TLP</strong>
<p>
<tlp value="$ctrl.job.tlp"></tlp>
</p>
<hr>

<strong>PAP</strong>
<p>
<tlp value="$ctrl.job.pap"></tlp>
</p>
<hr>


<strong>Status</strong>
<p>
<span class="label label-default" ng-class="{'Success': 'label-success', 'InProgress': 'label-warning', 'Failure': 'label-danger'}[$ctrl.job.status]">{{$ctrl.job.status}}</span>
Expand Down
3 changes: 1 addition & 2 deletions www/src/app/pages/jobs/job.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ <h3 class="box-title">Job report</h3>
</div>
<div class="box-body job-report">
<div ng-if="$ctrl.job.type === 'responder'">
<h5 class="text-primary">Object</h5>
<h5 class="text-primary">Input details</h5>
<pre>{{$ctrl.job.data | json}}</pre>
</div>

<h5 class="text-primary mt-xs">Report</h5>
<pre>{{$ctrl.job.report | json}}</pre>
</div>
Expand Down

0 comments on commit 921678d

Please sign in to comment.