From 612dd017fd0901d653fb8145385079a578b74caa Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 1 Aug 2013 14:15:20 +0800 Subject: Bug 859550: Create a user profile page for bugzilla users --- .../en/default/pages/user_profile.html.tmpl | 181 +++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl (limited to 'extensions/UserProfile/template/en/default/pages') 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..1fb6a0b67 --- /dev/null +++ b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl @@ -0,0 +1,181 @@ +[%# 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 %] + +[% inline_styles = BLOCK %] + #login_autocomplete { + float: left; + } + + #user_profile_table th { + text-align: right; + padding-right: 1em; + vertical-align: middle; + } + + #user_profile_table .numeric { + text-align: right; + } + + #user_profile_table .product_span { + white-space: nowrap; + } + + #what { + margin-top: 2em; + } + + #updated { + font-style: italic; + font-size: x-small; + } +[% END %] + +[% PROCESS global/header.html.tmpl + title = "User Profile: " _ target.identity + style = inline_styles + yui = [ 'autocomplete' ] + javascript_urls = [ "js/field.js" ] +%] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Email +
+ [% INCLUDE global/userselect.html.tmpl + id => "login" + name => "login" + value => target.email + size => 40 + emptyok => 0 + %] +    +
+
Name[% target.name FILTER html %]
   
Last activity + + [% target.last_activity_ts FILTER time %] + +
[% terms.Bugs %] filed + + [% stats.bugs_filed || 0 FILTER html %] + +
Comments made[% stats.comments || 0 FILTER html %]
Assigned to + + [% stats.assigned || 0 FILTER html %] + +
Commented on + + [% stats.commented_on || 0 FILTER html %] + +
QA-Contact + + [% stats.qa_contact || 0 FILTER html %] + +
Patches submitted[% stats.patches || 0 FILTER html %]
Patches reviewed[% stats.reviews || 0 FILTER html %]
[% terms.Bugs %] poked[% stats.touched || 0 FILTER html %]
 
Statuses changed + + 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 %]) +
Activity by product + + [% FOREACH p = products %] + + [% IF p.product.id %] + + [% END %] + [% p.product.name FILTER html %] ([% p.count || 0 FILTER html %]) + [% "" IF p.product.id %] + [% "," UNLESS loop.last ~%] + + [%+ END %] +
+ +
+ + What do these fields mean? + +
+ +
+ This information is updated daily +
+ +[% PROCESS global/footer.html.tmpl %] + -- cgit v1.2.3-24-g4f1b