summaryrefslogtreecommitdiffstats
path: root/extensions/TagNewUsers/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-04-09 09:13:46 +0200
committerByron Jones <bjones@mozilla.com>2013-04-09 09:13:46 +0200
commit2cc30c4cf799041a110f4023e4a3bbc80c384f75 (patch)
tree7962ec67b7c50b8148499972cd14f106fd48dfe4 /extensions/TagNewUsers/template
parent3b065327d3a230d43396e673dc8f50e90af8c0e2 (diff)
downloadbugzilla-2cc30c4cf799041a110f4023e4a3bbc80c384f75.tar.gz
bugzilla-2cc30c4cf799041a110f4023e4a3bbc80c384f75.tar.xz
Bug 859313: minimise "Lock wait timeout exceeded" errors in TagNewUser
Diffstat (limited to 'extensions/TagNewUsers/template')
-rw-r--r--extensions/TagNewUsers/template/en/default/hook/bug/comments-user.html.tmpl5
-rw-r--r--extensions/TagNewUsers/template/en/default/hook/bug/show-header-end.html.tmpl (renamed from extensions/TagNewUsers/template/en/default/hook/bug/comments-comment_banner.html.tmpl)4
2 files changed, 3 insertions, 6 deletions
diff --git a/extensions/TagNewUsers/template/en/default/hook/bug/comments-user.html.tmpl b/extensions/TagNewUsers/template/en/default/hook/bug/comments-user.html.tmpl
index 3ee9a3757..81cfc776a 100644
--- a/extensions/TagNewUsers/template/en/default/hook/bug/comments-user.html.tmpl
+++ b/extensions/TagNewUsers/template/en/default/hook/bug/comments-user.html.tmpl
@@ -6,10 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
+[% RETURN UNLESS user.in_group('canconfirm') %]
[% IF comment.author.is_new %]
-<span
- class="new_user"
- title="
+<span class="new_user" title="
[%- comment.author.comment_count FILTER html %] comment[% "s" IF comment.author.comment_count != 1 -%]
, created [%
IF comment.author.creation_age == 0 %]today[%
diff --git a/extensions/TagNewUsers/template/en/default/hook/bug/comments-comment_banner.html.tmpl b/extensions/TagNewUsers/template/en/default/hook/bug/show-header-end.html.tmpl
index 396f9c35a..bff73e963 100644
--- a/extensions/TagNewUsers/template/en/default/hook/bug/comments-comment_banner.html.tmpl
+++ b/extensions/TagNewUsers/template/en/default/hook/bug/show-header-end.html.tmpl
@@ -6,6 +6,4 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-<link
- href="[% 'extensions/TagNewUsers/web/style.css' FILTER mtime FILTER html %]"
- rel="stylesheet" type="text/css" >
+[% style_urls.push('extensions/TagNewUsers/web/style.css') IF user.in_group('canconfirm') %]