FIX: Don't link icon to the private messages page if they are disabled

This commit is contained in:
Robin Ward 2018-01-22 16:56:25 -05:00
parent e52e0f4635
commit 1e77850dff
1 changed files with 6 additions and 2 deletions

View File

@ -42,9 +42,13 @@
{{else}} {{else}}
<h1> <h1>
{{#unless model.is_warning}} {{#unless model.is_warning}}
<a href={{pmPath}}> {{#if siteSettings.enable_private_messages}}
<a href={{pmPath}}>
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
</a>
{{else}}
<span class="private-message-glyph">{{d-icon "envelope"}}</span> <span class="private-message-glyph">{{d-icon "envelope"}}</span>
</a> {{/if}}
{{/unless}} {{/unless}}
{{#if model.details.loaded}} {{#if model.details.loaded}}