mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: htmlSafe timeline topic title (#19320)
This commit is contained in:
parent
7d7551adfc
commit
b46a7b51f7
@ -1,7 +1,7 @@
|
|||||||
{{#if @fullscreen}}
|
{{#if @fullscreen}}
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>
|
<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>
|
</h2>
|
||||||
{{#if (or this.siteSettings.topic_featured_link_enabled this.showTags)}}
|
{{#if (or this.siteSettings.topic_featured_link_enabled this.showTags)}}
|
||||||
<div class="topic-header-extra">
|
<div class="topic-header-extra">
|
||||||
|
@ -58,6 +58,10 @@ export default class TopicTimelineScrollArea extends Component {
|
|||||||
this.calculatePosition();
|
this.calculatePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get topicTitle() {
|
||||||
|
return htmlSafe(this.args.mobileView ? this.args.model.fancyTitle : "");
|
||||||
|
}
|
||||||
|
|
||||||
get showTags() {
|
get showTags() {
|
||||||
return (
|
return (
|
||||||
this.siteSettings.tagging_enabled && this.args.model.tags?.length > 0
|
this.siteSettings.tagging_enabled && this.args.model.tags?.length > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user