mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
Don't load PM icon in title unless topic is a PM
This commit is contained in:
parent
b848bd4ddc
commit
1983f0d06e
@ -53,11 +53,15 @@
|
|||||||
<h1 data-topic-id="{{unbound model.id}}">
|
<h1 data-topic-id="{{unbound model.id}}">
|
||||||
{{#unless model.is_warning}}
|
{{#unless model.is_warning}}
|
||||||
{{#if siteSettings.enable_personal_messages}}
|
{{#if siteSettings.enable_personal_messages}}
|
||||||
<a href={{pmPath}}>
|
{{#if model.isPrivateMessage}}
|
||||||
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
<a href={{pmPath}}>
|
||||||
</a>
|
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
{{#if model.isPrivateMessage}}
|
||||||
|
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user