]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1136271 - Make user profile page visible to anyone for easier sharing
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 19 Jul 2018 02:44:38 +0000 (22:44 -0400)
committerDylan William Hardison <dylan@hardison.net>
Thu, 19 Jul 2018 02:44:38 +0000 (22:44 -0400)
extensions/BMO/template/en/default/pages/group_members.html.tmpl
extensions/BMO/web/js/edituser_menu.js
extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl
extensions/UserProfile/template/en/default/hook/account/prefs/account-start.html.tmpl
template/en/default/global/header.html.tmpl

index ec2cb2e46360568a50610f817302c509e59dc145..1c593c07e8659ba9467435ce5bc6ba7aa578f397 100644 (file)
@@ -82,7 +82,7 @@
                       <a href="editusers.cgi?action=edit&amp;userid=[% member.id FILTER none %]"
                         target="_blank">
                     [% ELSE %]
-                      <a href="user_profile?login=[% member.login FILTER uri %]"
+                      <a href="user_profile?user_id=[% member.id FILTER none %]"
                         target="_blank">
                     [% END %]
                       <span [% 'class="bz_inactive"' UNLESS member.is_enabled %]>
index 7008a2b844d2d6b85f622e0e78dca04e637c4a0c..a300f5c24356648e039e1e9ee15eaaced9d0c79d 100644 (file)
@@ -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");
             }
         },
index 3788a845285c9f2f881e26b950283ad7f30e03bd..361c02d2b9eb44278acc3d7dadf115a509a66b9b 100644 (file)
@@ -8,11 +8,7 @@
 
 [% IF user.settings.show_gravatars.value == 'On' %]
   [% IF who.last_activity_ts %]
-    [% IF user.id %]
-      <a href="user_profile?login=[% who.login FILTER uri %]">
-    [% ELSE %]
-      <a href="user_profile?user_id=[% who.id FILTER uri %]">
-    [% END %]
+    <a href="user_profile?user_id=[% who.id FILTER none %]">
   [% END %]
   <img alt="User image" align="middle" src="[% who.gravatar FILTER none %]" width="32" height="32" border="0">
   [% "</a>" IF who.last_activity_ts %]
index f2e3aad014588d8750f55d8a7cda6f80c0f9a3c1..b3a2fc5eaa1abb87927c6243b2b1fef34ef16021 100644 (file)
@@ -6,6 +6,6 @@
   # defined by the Mozilla Public License, v. 2.0.
   #%]
 
-<a href="user_profile?login=[% user.login FILTER uri %]">
+<a href="user_profile?user_id=[% user.id FILTER none %]">
   [% terms.Bugzilla %] User Profile
 </a><br><hr>
index a87b2015e1f217f765a1bccab1f8de20d32399b4..6a19eaf3950d3afc6941e632c631a5806900a3f7 100644 (file)
         </button>
         <ul class="dropdown-content left" id="header-account-menu" role="menu" style="display:none;">
           <li role="presentation">
-            <div href="user_profile" class="account-label">
+            <div class="account-label">
               <div class="name">[% user.name FILTER html %]</div>
               <div class="email">[% user.login FILTER html %]</div>
             </div>
           </li>
           <li role="separator"></li>
           <li role="presentation">
-            <a href="user_profile" role="menuitem" tabindex="-1">My Profile</a>
+            <a href="user_profile?user_id=[% user.id FILTER none %]" role="menuitem" tabindex="-1">My Profile</a>
           </li>
           <li role="presentation">
             <a href="page.cgi?id=user_activity.html&amp;action=run&amp;who=[% user.login FILTER uri %]" role="menuitem"