Skip to content

Commit e95c60b

Browse files
committed
Treat 0 as a null value for exclusive order.
1 parent 898828a commit e95c60b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/templates/util_render.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,17 @@ func (ut *RenderUtils) RenderLabel(label *issues_model.Label) template.HTML {
183183
textColor, scopeColor, scopeHTML,
184184
textColor, itemColor, itemHTML,
185185
orderHTML)
186-
} else {
187-
// <scope> | <label>
188-
return htmlutil.HTMLFormat(`<span class="ui label %s scope-parent" data-tooltip-content title="%s">`+
189-
`<div class="ui label scope-left" style="color: %s !important; background-color: %s !important">%s</div>`+
190-
`<div class="ui label scope-right" style="color: %s !important; background-color: %s !important">%s</div>`+
191-
`</span>`,
192-
extraCSSClasses, descriptionText,
193-
textColor, scopeColor, scopeHTML,
194-
textColor, itemColor, itemHTML,
195-
)
196186
}
187+
188+
// <scope> | <label>
189+
return htmlutil.HTMLFormat(`<span class="ui label %s scope-parent" data-tooltip-content title="%s">`+
190+
`<div class="ui label scope-left" style="color: %s !important; background-color: %s !important">%s</div>`+
191+
`<div class="ui label scope-right" style="color: %s !important; background-color: %s !important">%s</div>`+
192+
`</span>`,
193+
extraCSSClasses, descriptionText,
194+
textColor, scopeColor, scopeHTML,
195+
textColor, itemColor, itemHTML,
196+
)
197197
}
198198

199199
// RenderEmoji renders html text with emoji post processors

0 commit comments

Comments
 (0)