summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-26 05:47:18 +0100
committerByron Jones <glob@mozilla.com>2015-03-26 05:47:18 +0100
commitab840dce2f988fdd7bca6a346f934bf7376bda75 (patch)
tree31d75a78561939ba2f43b68a44154b2b5e630b92 /extensions
parenta41ac004cbee6f6d0735070bf6bdcd55cbb7a2cf (diff)
downloadbugzilla-ab840dce2f988fdd7bca6a346f934bf7376bda75.tar.gz
bugzilla-ab840dce2f988fdd7bca6a346f934bf7376bda75.tar.xz
Bug 1146762: honour gravatar visibility preference
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/user.html.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/user.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/user.html.tmpl
index 016017084..718eb5e79 100644
--- a/extensions/BugModal/template/en/default/bug_modal/user.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/user.html.tmpl
@@ -17,6 +17,9 @@
[%
RETURN UNLESS u.id;
DEFAULT gravatar_size = 0;
+IF user.settings.show_gravatars.value != 'On';
+ gravatar_size = 0;
+END;
%]
<div class="vcard vcard_[% u.id FILTER none %]">
[% FILTER collapse %]