summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-10-05 00:43:47 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-10-05 00:43:47 +0200
commitbefdcc8f9a30f55e91227bac0ee1813a661002b3 (patch)
tree34daa9fe986e9cc42e803f6dc8b382e2f05feb4a /extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
parent8592e84f5d251a284f09fae2947101715e094a78 (diff)
downloadbugzilla-befdcc8f9a30f55e91227bac0ee1813a661002b3.tar.gz
bugzilla-befdcc8f9a30f55e91227bac0ee1813a661002b3.tar.xz
more porting work
Diffstat (limited to 'extensions/BMO/template/en/default/hook/global/header-start.html.tmpl')
-rw-r--r--extensions/BMO/template/en/default/hook/global/header-start.html.tmpl12
1 files changed, 11 insertions, 1 deletions
diff --git a/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl b/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
index 3c2f90e19..9c96ebffa 100644
--- a/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/global/header-start.html.tmpl
@@ -1,3 +1,13 @@
+[% IF !javascript_urls %]
+ [% javascript_urls = [] %]
+[% END %]
+
[% IF template.name == 'list/list.html.tmpl' %]
[% javascript_urls.push('extensions/BMO/web/js/sorttable.js') %]
-[% END %] \ No newline at end of file
+[% END %]
+
+[% IF user.in_group('editusers') || user.bless_groups.size > 0 %]
+ [% yui.push('container', 'menu') %]
+ [% style_urls.push('js/yui/assets/skins/sam/menu.css') %]
+ [% javascript_urls.push('extensions/BMO/web/js/edituser_menu.js') %]
+[% END %]