DEV: allows reports to display an html title (#12687)

DEV: allows reports to display an html title (#12687)

eg: display an emoji in title

diff --git a/app/assets/javascripts/admin/addon/models/report.js b/app/assets/javascripts/admin/addon/models/report.js
index baa0aba..84e6304 100644
--- a/app/assets/javascripts/admin/addon/models/report.js
+++ b/app/assets/javascripts/admin/addon/models/report.js
@@ -278,6 +278,7 @@ const Report = EmberObject.extend({
 
       return {
         title: label.title,
+        htmlTitle: label.html_title,
         sortProperty: label.sort_property || mainProperty,
         mainProperty,
         type,
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs
index 15f8527..f03bb92 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs
@@ -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}}
diff --git a/app/assets/stylesheets/mobile/admin_report_table.scss b/app/assets/stylesheets/mobile/admin_report_table.scss
index 29401ef..d414b0a 100644
--- a/app/assets/stylesheets/mobile/admin_report_table.scss
+++ b/app/assets/stylesheets/mobile/admin_report_table.scss
@@ -13,6 +13,10 @@
       text-orientation: mixed;
       text-align: right;
       transform: rotate(180deg);
+
+      .emoji {
+        transform: rotate(-180deg);
+      }
     }
 
     .sort-btn {

GitHub sha: 3867b899

This commit appears in #12687 which was approved by ZogStriP and davidtaylorhq. It was merged by jjaffeux.