Skip to content

Commit

Permalink
#110 Update jobs list to display object lable
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 26, 2018
1 parent 0f790b9 commit 72d5988
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/src/app/pages/jobs/components/jobs.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
</div>
<div class="flex-col flex-1">
<h4 class="media-heading text-primary">
<strong>[{{job.dataType}}]</strong> {{(isFile ? job.attachment.name : job.data) | fang | limitTo:200}}
<strong>[{{job.dataType}}]</strong>
<span ng-if="job.type !== 'responder'">{{(isFile ? job.attachment.name : job.data) | fang | limitTo:200}}</span>
<span ng-if="job.type === 'responder'">{{job.data.label || 'No Label'}}</span>
</h4>
<div class="row mv-xs text-muted">
<div class="col-sm-4">
Expand Down
6 changes: 6 additions & 0 deletions www/src/app/pages/jobs/job.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ <h1>Job details
<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>
<pre>{{$ctrl.job.data | json}}</pre>
</div>

<h5 class="text-primary mt-xs">Report</h5>
<pre>{{$ctrl.job.report | json}}</pre>
</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions www/src/app/pages/jobs/jobs.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ pre.error-trace {
white-space: pre-wrap;
background-color: lighten($color: #a94442, $amount: 50%)
}

pre.responder-input {
color: #367fa9;
border: none;
font-size: 10px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
// background-color: lighten($color: #367fa9, $amount: 50%)
background-color: transparent;

}

0 comments on commit 72d5988

Please sign in to comment.