web: display job label in targets page

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-10-30 16:20:43 +01:00
parent f34b2602e1
commit 147f2061d5
2 changed files with 68 additions and 69 deletions

File diff suppressed because one or more lines are too long

View File

@ -54,8 +54,7 @@
</td>
<td class="labels">
<span class="cursor-pointer" data-toggle="tooltip" title="" data-html=true data-original-title="<b>Before relabeling:</b>{{range $k, $v := .DiscoveredLabels.Map}}<br>{{$ev := $v | html}}{{$k}}=&quot;{{$ev}}&quot;{{end}}">
{{$labels := stripLabels .Labels.Map "job"}}
{{range $label, $value := $labels}}
{{range $label, $value := .Labels.Map }}
<span class="label label-primary">{{$label}}="{{$value}}"</span>
{{else}}
<span class="label label-default">none</span>