summaryrefslogtreecommitdiffstats
path: root/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl
blob: aabc42db2454833e43b2e1d0e5c67c8449b74dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[%# 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>&nbsp;</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
        %]
        &nbsp;&nbsp;<input type="submit" value="Show">
      </form>
    </td>
  </tr>

  <tr>
    <td colspan="4" class="separator"><hr></td>
  </tr>
[% END %]

<tr>
  <td rowspan="[% user.id ? 16 : 15 %]" 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 %]
      &nbsp;
    [% END %]
  </td>
  <th>Name</th>
  <td colspan="2">[% target.name FILTER html %]</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>&nbsp;</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&amp;action=run&amp;who=[% target.login FILTER uri %]&amp;from=-4w">
      [% target.last_activity_ts FILTER time %]
    </a>
  </td>
</tr>
<tr>
  <th>[% terms.Bugs %] filed</th>
  <td class="numeric">
    <a href="buglist.cgi?query_format=advanced&amp;emailtype1=exact&amp;emailreporter1=1&amp;email1=[% target.login FILTER uri %]"
       target="_blank">
      [% stats.bugs_filed || 0 FILTER html %]
    </a>
  </td>
</tr>
<tr>
  <th>Comments made</th>
  <td class="numeric">[% stats.comments || 0 FILTER html %]</td>
</tr>
<tr>
  <th>Assigned to</th>
  <td class="numeric">
    <a href="buglist.cgi?query_format=advanced&amp;emailtype1=exact&amp;emailassigned_to1=1&amp;email1=[% target.login FILTER uri %]"
       target="_blank">
      [% stats.assigned || 0 FILTER html %]
    </a>
  </td>
</tr>
<tr>
  <th>Commented on</th>
  <td class="numeric">
    <a href="buglist.cgi?query_format=advanced&amp;emailtype1=exact&amp;emaillongdesc1=1&amp;email1=[% target.login FILTER uri %]"
       target="_blank">
      [% stats.commented_on || 0 FILTER html %]
    </a>
  </td>
</tr>
<tr>
  <th>QA-Contact</th>
  <td class="numeric">
    <a href="buglist.cgi?query_format=advanced&amp;emailtype1=exact&amp;emailqa_contact1=1&amp;email1=[% target.login FILTER uri %]"
       target="_blank">
      [% stats.qa_contact || 0 FILTER html %]
    </a>
  </td>
</tr>
<tr>
  <th>Patches submitted</th>
  <td class="numeric">[% stats.patches || 0 FILTER html %]</td>
</tr>
<tr>
  <th>Patches reviewed</th>
  <td class="numeric">[% stats.reviews || 0 FILTER html %]</td>
</tr>
<tr>
  <th>[% terms.Bugs %] poked</th>
  <td class="numeric">[% stats.touched || 0 FILTER html %]</td>
</tr>

<tr>
  <td>&nbsp;</td>
</tr>

<tr>
  <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>
  <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>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td width="100%">&nbsp;</td>
</tr>

</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 %]