diff options
Diffstat (limited to 'extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl')
-rw-r--r-- | extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl | 272 |
1 files changed, 272 insertions, 0 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 new file mode 100644 index 000000000..fa6cc56b3 --- /dev/null +++ b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl @@ -0,0 +1,272 @@ +[%# 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. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% filtered_identity = target.identity FILTER html %] +[% PROCESS global/header.html.tmpl + title = "User Profile: $filtered_identity" + style_urls = [ "extensions/UserProfile/web/styles/user_profile.css" ] + yui = [ 'autocomplete' ] + javascript_urls = [ "js/field.js" ] +%] + +<table id="user_profile_table"> + +[% IF user.id %] + <tr> + <td> </td> + <th>Search</th> + <td colspan="2"> + <form action="user_profile"> + [% INCLUDE global/userselect.html.tmpl + id => "login" + name => "login" + value => login + size => 40 + emptyok => 0 + %] + <input type="submit" value="Show"> + </form> + </td> + </tr> + + <tr> + <td colspan="4" class="separator"><hr></td> + </tr> +[% END %] + +<tr> + <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 %] + <a href="http://gravatar.com/">Change my image</a> + [% END %] + [% ELSE %] + + [% END %] + </td> + <th>Name</th> + <td colspan="2"> + [% target.name FILTER html %] + [% IF target.id == user.id %] + <span style="font-size: x-small;">(<a href="userprefs.cgi?tab=account">change</a>)</span> + [% END %] + </td> +</tr> + +[% IF user.id %] + <tr> + <th>Email</th> + <td colspan="2"><a href="mailto:[% target.login FILTER uri %]">[% target.login FILTER html %]</a></td> + </tr> +[% END %] + +<tr> + <td> </td> +</tr> + +[%# user.creation_ts is added by the TagNewUsers extension %] +[% IF target.can('creation_ts') %] + <tr> + <th>Created</th> + <td colspan="2"> + [% target.creation_ts FILTER time %] ([% target.creation_ts FILTER timeago FILTER html %]) + </td> + </tr> +[% END %] + +<tr> + <th>Last activity</th> + <td colspan="2"> + <a href="page.cgi?id=user_activity.html&action=run&who=[% target.login FILTER uri %]&from=-4w"> + [% target.last_activity_ts FILTER time %] + </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 %]" + target="_blank"> + [% stats.bugs_filed || 0 FILTER html %] + </a> + </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 %]" + target="_blank"> + [% stats.assigned || 0 FILTER html %] + </a> + </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 %]" + target="_blank"> + [% stats.commented_on || 0 FILTER html %] + </a> + </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 %]" + target="_blank"> + [% stats.qa_contact || 0 FILTER html %] + </a> + </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> + +<tr> + <td> </td> +</tr> + +<tr> + <td> </td> + <th>Statuses changed</th> + <td colspan="2"> + RESOLVED ([% statuses.item('RESOLVED') || 0 FILTER html %]), + FIXED ([% statuses.item('RESOLVED/FIXED') || 0 FILTER html %]), + VERIFIED ([% statuses.item('VERIFIED') || 0 FILTER html %]), + INVALID ([% statuses.item('RESOLVED/INVALID') || 0 FILTER html %]) + </td> +</tr> + +<tr> + <td> </td> + <th>Activity by product</th> + <td colspan="2"> + [% FOREACH p = products %] + <span class="product_span"> + [% IF p.product.id %] + <a href="describecomponents.cgi?product=[% p.product.name FILTER uri %]" + target="_blank"> + [% END %] + [% p.product.name FILTER html %] ([% p.count || 0 FILTER html %]) + [% "</a>" IF p.product.id %] + [% "," UNLESS loop.last ~%] + </span> + [%+ END %] + </td> +</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> + <td width="100%"> </td> +</tr> + +</table> + +[% PROCESS global/footer.html.tmpl %] + |