DEV: htmlSafe timeline topic title (#19320)
This commit is contained in:
parent
7d7551adfc
commit
b46a7b51f7
|
@ -1,7 +1,7 @@
|
|||
{{#if @fullscreen}}
|
||||
<div class="title">
|
||||
<h2>
|
||||
<a class="fancy-title" href {{on "click" @jumpTop}}>{{if @mobileView @model.fancyTitle ""}}</a>
|
||||
<a class="fancy-title" href {{on "click" @jumpTop}}>{{this.topicTitle}}</a>
|
||||
</h2>
|
||||
{{#if (or this.siteSettings.topic_featured_link_enabled this.showTags)}}
|
||||
<div class="topic-header-extra">
|
||||
|
|
|
@ -58,6 +58,10 @@ export default class TopicTimelineScrollArea extends Component {
|
|||
this.calculatePosition();
|
||||
}
|
||||
|
||||
get topicTitle() {
|
||||
return htmlSafe(this.args.mobileView ? this.args.model.fancyTitle : "");
|
||||
}
|
||||
|
||||
get showTags() {
|
||||
return (
|
||||
this.siteSettings.tagging_enabled && this.args.model.tags?.length > 0
|
||||
|
|
Loading…
Reference in New Issue