From 1e77850dff3c03a02b03e68554b26ec83f446d38 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 22 Jan 2018 16:56:25 -0500 Subject: [PATCH] FIX: Don't link icon to the private messages page if they are disabled --- app/assets/javascripts/discourse/templates/topic.hbs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/topic.hbs b/app/assets/javascripts/discourse/templates/topic.hbs index 5bdaca85fbe..b8ffe6b5e96 100644 --- a/app/assets/javascripts/discourse/templates/topic.hbs +++ b/app/assets/javascripts/discourse/templates/topic.hbs @@ -42,9 +42,13 @@ {{else}}

{{#unless model.is_warning}} - + {{#if siteSettings.enable_private_messages}} + + {{d-icon "envelope"}} + + {{else}} {{d-icon "envelope"}} - + {{/if}} {{/unless}} {{#if model.details.loaded}}