From 08e31d692fec488ef88a18040d28ebbfc9c6b443 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 18 Jul 2018 22:44:38 -0400 Subject: [PATCH] Bug 1136271 - Make user profile page visible to anyone for easier sharing --- .../BMO/template/en/default/pages/group_members.html.tmpl | 2 +- extensions/BMO/web/js/edituser_menu.js | 2 +- .../en/default/hook/bug/comments-user-image.html.tmpl | 6 +----- .../en/default/hook/account/prefs/account-start.html.tmpl | 2 +- template/en/default/global/header.html.tmpl | 4 ++-- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/extensions/BMO/template/en/default/pages/group_members.html.tmpl b/extensions/BMO/template/en/default/pages/group_members.html.tmpl index ec2cb2e46..1c593c07e 100644 --- a/extensions/BMO/template/en/default/pages/group_members.html.tmpl +++ b/extensions/BMO/template/en/default/pages/group_members.html.tmpl @@ -82,7 +82,7 @@ [% ELSE %] - [% END %] diff --git a/extensions/BMO/web/js/edituser_menu.js b/extensions/BMO/web/js/edituser_menu.js index 7008a2b84..a300f5c24 100644 --- a/extensions/BMO/web/js/edituser_menu.js +++ b/extensions/BMO/web/js/edituser_menu.js @@ -10,7 +10,7 @@ function show_usermenu(id, email, show_edit) { { name: "Profile", callback: function () { - var href = "user_profile?login=" + encodeURIComponent(email); + var href = "user_profile?user_id=" + id; window.open(href, "_blank"); } }, 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 index 3788a8452..361c02d2b 100644 --- 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 @@ -8,11 +8,7 @@ [% IF user.settings.show_gravatars.value == 'On' %] [% IF who.last_activity_ts %] - [% IF user.id %] - - [% ELSE %] - - [% END %] + [% END %] User image [% "" IF who.last_activity_ts %] diff --git a/extensions/UserProfile/template/en/default/hook/account/prefs/account-start.html.tmpl b/extensions/UserProfile/template/en/default/hook/account/prefs/account-start.html.tmpl index f2e3aad01..b3a2fc5ea 100644 --- a/extensions/UserProfile/template/en/default/hook/account/prefs/account-start.html.tmpl +++ b/extensions/UserProfile/template/en/default/hook/account/prefs/account-start.html.tmpl @@ -6,6 +6,6 @@ # defined by the Mozilla Public License, v. 2.0. #%] - + [% terms.Bugzilla %] User Profile

diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index a87b2015e..6a19eaf39 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -326,14 +326,14 @@