summaryrefslogtreecommitdiffstats
path: root/extensions/TagNewUsers/template/en/default/hook/bug/changes-user.html.tmpl
blob: 56657c96b57b14d7c74ae7f1bb313e2c9c7a2144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[%# 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.
  #%]

[% RETURN UNLESS user.in_group('canconfirm') %]
[% IF action.who.is_new %]
<span class="new_user" title="
[%- action.who.comment_count FILTER html %] comment[% "s" IF action.who.comment_count != 1 -%]
, created [%
IF action.who.creation_age == 0 %]today[%
ELSIF action.who.creation_age > 365 %]more than a year ago[%
ELSE %][% action.who.creation_age FILTER html %] day[% "s" IF action.who.creation_age != 1 %] ago[% END %]."
  >
(New to [% terms.Bugzilla %])
</span>
[% END %]