summaryrefslogtreecommitdiffstats
path: root/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl
blob: 1fb6a0b678f6c2787335ccea1a119f535870d5c4 (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
[%# 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" ]
%]

<table id="user_profile_table">

<tr>
  <th>Email</th>
  <td colspan="2">
    <form action="user_profile">
      [% INCLUDE global/userselect.html.tmpl
        id => "login"
        name => "login"
        value => target.email
        size => 40
        emptyok => 0
      %]
      &nbsp;&nbsp;<input type="submit" value="Show">
    </form>
  </td>
</tr>

<tr>
  <th>Name</th>
  <td colspan="2">[% target.name FILTER html %]</td>
</tr>

<tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td width="100%">&nbsp;</td>
</tr>

<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</td>
  <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</td>
  <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>

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