mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:46:19 +08:00
DEV: allows reports to display an html title (#12687)
eg: display an emoji in title
This commit is contained in:
parent
271a372e3d
commit
3867b8998c
|
@ -278,6 +278,7 @@ const Report = EmberObject.extend({
|
|||
|
||||
return {
|
||||
title: label.title,
|
||||
htmlTitle: label.html_title,
|
||||
sortProperty: label.sort_property || mainProperty,
|
||||
mainProperty,
|
||||
type,
|
||||
|
|
|
@ -2,4 +2,8 @@
|
|||
{{d-button action=sortByLabel icon=sortIcon class="sort-btn"}}
|
||||
{{/if}}
|
||||
|
||||
<span class="title">{{label.title}}</span>
|
||||
{{#if label.htmlTitle}}
|
||||
<span class="title">{{html-safe label.htmlTitle}}</span>
|
||||
{{else}}
|
||||
<span class="title">{{label.title}}</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
text-orientation: mixed;
|
||||
text-align: right;
|
||||
transform: rotate(180deg);
|
||||
|
||||
.emoji {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.sort-btn {
|
||||
|
|
Loading…
Reference in New Issue
Block a user