From 99719077aeeac9b6a449b657893e4ee29511132c Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 14 Aug 2013 14:59:17 +0800 Subject: Bug 903955: add gravatar support --- .../en/default/hook/bug/comments-user-image.html.tmpl | 11 +++++++++++ .../template/en/default/hook/bug/show-header-end.html.tmpl | 11 +++++++++++ .../en/default/hook/global/setting-descs-settings.none.tmpl | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl create mode 100644 extensions/Gravatar/template/en/default/hook/bug/show-header-end.html.tmpl create mode 100644 extensions/Gravatar/template/en/default/hook/global/setting-descs-settings.none.tmpl (limited to 'extensions/Gravatar/template/en/default') diff --git a/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl b/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl new file mode 100644 index 000000000..14adfd055 --- /dev/null +++ b/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl @@ -0,0 +1,11 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% IF user.settings.show_gravatars.value == 'On' %] + +[% END %] diff --git a/extensions/Gravatar/template/en/default/hook/bug/show-header-end.html.tmpl b/extensions/Gravatar/template/en/default/hook/bug/show-header-end.html.tmpl new file mode 100644 index 000000000..0f1130976 --- /dev/null +++ b/extensions/Gravatar/template/en/default/hook/bug/show-header-end.html.tmpl @@ -0,0 +1,11 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% IF user.settings.show_gravatars.value == 'On' %] + [% bodyclasses.push('bz_gravatar') %] +[% END %] diff --git a/extensions/Gravatar/template/en/default/hook/global/setting-descs-settings.none.tmpl b/extensions/Gravatar/template/en/default/hook/global/setting-descs-settings.none.tmpl new file mode 100644 index 000000000..482503990 --- /dev/null +++ b/extensions/Gravatar/template/en/default/hook/global/setting-descs-settings.none.tmpl @@ -0,0 +1,11 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% + setting_descs.show_gravatars = "Show gravatar images when viewing $terms.bugs" +%] -- cgit v1.2.3-24-g4f1b