mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 21:29:05 +08:00
FIX: Don't link icon to the private messages page if they are disabled
This commit is contained in:
parent
e52e0f4635
commit
1e77850dff
@ -42,9 +42,13 @@
|
||||
{{else}}
|
||||
<h1>
|
||||
{{#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>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
||||
{{#if model.details.loaded}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user