Don't load PM icon in title unless topic is a PM

This commit is contained in:
Kris 2019-07-10 22:38:32 -04:00
parent b848bd4ddc
commit 1983f0d06e
1 changed files with 8 additions and 4 deletions

View File

@ -53,11 +53,15 @@
<h1 data-topic-id="{{unbound model.id}}">
{{#unless model.is_warning}}
{{#if siteSettings.enable_personal_messages}}
<a href={{pmPath}}>
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
</a>
{{#if model.isPrivateMessage}}
<a href={{pmPath}}>
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
</a>
{{/if}}
{{else}}
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
{{#if model.isPrivateMessage}}
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
{{/if}}
{{/if}}
{{/unless}}