summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 4e5c96cd0f..bb7a3476f2 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -364,13 +364,12 @@ func NewFuncMap() []template.FuncMap {
return ""
},
"RenderLabels": func(labels []*models.Label) template.HTML {
- html := ""
-
+ html := `<span class="labels-list">`
for _, label := range labels {
- html = fmt.Sprintf("%s<div class='ui label' style='color: %s; background-color: %s'>%s</div>",
- html, label.ForegroundColor(), label.Color, RenderEmoji(label.Name))
+ html += fmt.Sprintf("<div class='ui label' style='color: %s; background-color: %s'>%s</div>",
+ label.ForegroundColor(), label.Color, RenderEmoji(label.Name))
}
-
+ html += "</span>"
return template.HTML(html)
},
}}