Merge pull request #4806 from simonpasquier/fix-targets-page

web: display job label in targets page
This commit is contained in:
Frederic Branczyk 2018-10-31 08:34:09 +01:00 committed by GitHub
commit dbe8acce94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>