diff --git a/src/root/overview.tt b/src/root/overview.tt
index f474e418..a2c43fba 100644
--- a/src/root/overview.tt
+++ b/src/root/overview.tt
@@ -22,7 +22,6 @@
Id |
Name |
Description |
- [% IF c.check_user_roles('admin') %]Options | [% END %]
@@ -32,15 +31,6 @@
[% INCLUDE renderProjectName project = p.name %] |
[% HTML.escape(p.displayname) %] |
[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %] |
- [% IF c.check_user_roles('admin') %]
-
- [% IF p.hidden %]
- [% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'unhide') content = "Unhide" %]
- [% ELSE %]
- [% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'hide') content = "Hide" %]
- [% END %]
- |
- [% END %]
[% END %]
diff --git a/src/root/topbar.tt b/src/root/topbar.tt
index 43c215ce..5a7a0677 100644
--- a/src/root/topbar.tt
+++ b/src/root/topbar.tt
@@ -54,6 +54,11 @@
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) title = "Create new jobset" %]
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'edit') title="Edit project" %]
+ [% IF project.hidden %]
+ [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'unhide') title = "Unhide" %]
+ [% ELSE %]
+ [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'hide') title = "Hide" %]
+ [% END %]
[% END %]
[% END %]
[% END %]
@@ -82,8 +87,8 @@
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'clone') title="Clone jobset" %]
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'edit') title="Edit jobset" %]
- [% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('force_eval'), project.name, jobset.name) content = "Evaluate" confirmmsg = ("Are you sure you want to force evaluation of jobset " _ project.name _ ":" _ j.name _ "?") %]
- [% IF j.hidden %]
+ [% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('force_eval'), project.name, jobset.name) content = "Evaluate" confirmmsg = ("Are you sure you want to force evaluation of jobset " _ project.name _ ":" _ jobset.name _ "?") %]
+ [% IF jobset.hidden %]
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'unhide') title = "Unhide" %]
[% ELSE %]
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'hide') title = "Hide" %]