mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 12:17:12 +00: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 {
|
return {
|
||||||
title: label.title,
|
title: label.title,
|
||||||
|
htmlTitle: label.html_title,
|
||||||
sortProperty: label.sort_property || mainProperty,
|
sortProperty: label.sort_property || mainProperty,
|
||||||
mainProperty,
|
mainProperty,
|
||||||
type,
|
type,
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
{{d-button action=sortByLabel icon=sortIcon class="sort-btn"}}
|
{{d-button action=sortByLabel icon=sortIcon class="sort-btn"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if label.htmlTitle}}
|
||||||
|
<span class="title">{{html-safe label.htmlTitle}}</span>
|
||||||
|
{{else}}
|
||||||
<span class="title">{{label.title}}</span>
|
<span class="title">{{label.title}}</span>
|
||||||
|
{{/if}}
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
text-orientation: mixed;
|
text-orientation: mixed;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
|
|
||||||
|
.emoji {
|
||||||
|
transform: rotate(-180deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-btn {
|
.sort-btn {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user