diff options
author | Byron Jones <bjones@mozilla.com> | 2013-12-12 05:59:26 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-12-12 05:59:26 +0100 |
commit | 531b87fa858e2777523cd67d74d5579d9749260a (patch) | |
tree | 9b867d021313e2e8e534127a48b1b5c4bc25baac /extensions | |
parent | 071dc9b89305dbeeb3c91a179eee04ee5187289f (diff) | |
download | bugzilla-531b87fa858e2777523cd67d74d5579d9749260a.tar.gz bugzilla-531b87fa858e2777523cd67d74d5579d9749260a.tar.xz |
Bug 928293: Add number of current reviews in queue on user profile
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl | 97 | ||||
-rw-r--r-- | extensions/UserProfile/web/styles/user_profile.css | 4 |
2 files changed, 90 insertions, 11 deletions
diff --git a/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl index aabc42db2..3c84add04 100644 --- a/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl +++ b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl @@ -42,7 +42,7 @@ [% END %] <tr> - <td rowspan="[% user.id ? 16 : 15 %]" id="gravatar-container"> + <td rowspan="[% user.id ? 6 : 5 %]" id="gravatar-container"> [% IF user.gravatar %] <img id="gravatar" src="[% target.gravatar(256) FILTER none %]" width="128" height="128"><br> [% IF target.id == user.id %] @@ -85,7 +85,69 @@ </a> </td> </tr> + <tr> + <td> </td> +</tr> + +[%# request counters provided by the Review extension %] +[% IF target.can("review_count") + && ( + stats.reviews + || ( + target.review_request_count + || target.feedback_request_count + || target.needinfo_request_count + ) + ) +%] + <tr> + <td colspan="4" class="separator"><hr></td> + </tr> + <tr> + <td>Review Queue</td> + </tr> + <tr> + <td> </td> + <th>Review requests</th> + <td class="numeric"> + <a href="request.cgi?action=queue&type=review&requestee=[% target.login FILTER uri %]&group=type" + target="_blank"> + [% target.review_request_count FILTER html %] + </a> + </td> + </tr> + <tr> + <td> </td> + <th>Feedback requests</th> + <td class="numeric"> + <a href="request.cgi?action=queue&type=feedback&requestee=[% target.login FILTER uri %]&group=type" + target="_blank"> + [% target.feedback_request_count FILTER html %] + </a> + </td> + </tr> + <tr> + <td> </td> + <th>Needinfo requests</th> + <td class="numeric"> + <a href="request.cgi?action=queue&type=needinfo&requestee=[% target.login FILTER uri %]&group=type" + target="_blank"> + [% target.needinfo_request_count FILTER html %] + </a> + </td> + </tr> +[% END %] + +<tr> + <td colspan="4" class="separator"><hr></td> +</tr> +<tr> + <td>User Statistics</td> +</tr> + +<tr> + <td> </td> <th>[% terms.Bugs %] filed</th> <td class="numeric"> <a href="buglist.cgi?query_format=advanced&emailtype1=exact&emailreporter1=1&email1=[% target.login FILTER uri %]" @@ -95,10 +157,12 @@ </td> </tr> <tr> + <td> </td> <th>Comments made</th> <td class="numeric">[% stats.comments || 0 FILTER html %]</td> </tr> <tr> + <td> </td> <th>Assigned to</th> <td class="numeric"> <a href="buglist.cgi?query_format=advanced&emailtype1=exact&emailassigned_to1=1&email1=[% target.login FILTER uri %]" @@ -108,6 +172,7 @@ </td> </tr> <tr> + <td> </td> <th>Commented on</th> <td class="numeric"> <a href="buglist.cgi?query_format=advanced&emailtype1=exact&emaillongdesc1=1&email1=[% target.login FILTER uri %]" @@ -117,6 +182,7 @@ </td> </tr> <tr> + <td> </td> <th>QA-Contact</th> <td class="numeric"> <a href="buglist.cgi?query_format=advanced&emailtype1=exact&emailqa_contact1=1&email1=[% target.login FILTER uri %]" @@ -126,14 +192,17 @@ </td> </tr> <tr> + <td> </td> <th>Patches submitted</th> <td class="numeric">[% stats.patches || 0 FILTER html %]</td> </tr> <tr> + <td> </td> <th>Patches reviewed</th> <td class="numeric">[% stats.reviews || 0 FILTER html %]</td> </tr> <tr> + <td> </td> <th>[% terms.Bugs %] poked</th> <td class="numeric">[% stats.touched || 0 FILTER html %]</td> </tr> @@ -143,6 +212,7 @@ </tr> <tr> + <td> </td> <th>Statuses changed</th> <td colspan="2"> RESOLVED ([% statuses.item('RESOLVED') || 0 FILTER html %]), @@ -153,6 +223,7 @@ </tr> <tr> + <td> </td> <th>Activity by product</th> <td colspan="2"> [% FOREACH p = products %] @@ -170,6 +241,20 @@ </tr> <tr> + <td colspan="3"> + <div id="what"> + <a href="https://wiki.mozilla.org/BMO/User_profile_fields" target="_blank"> + What do these fields mean? + </a> + </div> + + <div id="updated"> + This information is updated daily + </div> + </td> +</tr> + +<tr> <td> </td> <td> </td> <td> </td> @@ -178,15 +263,5 @@ </table> -<div id="what"> - <a href="https://wiki.mozilla.org/BMO/User_profile_fields" target="_blank"> - What do these fields mean? - </a> -</div> - -<div id="updated"> - This information is updated daily -</div> - [% PROCESS global/footer.html.tmpl %] diff --git a/extensions/UserProfile/web/styles/user_profile.css b/extensions/UserProfile/web/styles/user_profile.css index c261c24b6..ef1f71dd9 100644 --- a/extensions/UserProfile/web/styles/user_profile.css +++ b/extensions/UserProfile/web/styles/user_profile.css @@ -42,3 +42,7 @@ box-shadow: 2px 2px 5px #888; margin-bottom: 5px; } + +#what { + margin-top: 1em; +} |