forked from lix-project/hydra
Tweaks
This commit is contained in:
parent
cea17fd57e
commit
3924780eac
|
@ -1,4 +1,4 @@
|
||||||
[% WRAPPER layout.tt title=(create ? "New Project" : "Editing project $project.name") %]
|
[% WRAPPER layout.tt title=(create ? "New project" : "Editing project $project.name") %]
|
||||||
[% PROCESS common.tt %]
|
[% PROCESS common.tt %]
|
||||||
|
|
||||||
<form action="[% IF create %][% c.uri_for('/create-project/submit') %][% ELSE %][% c.uri_for('/project' project.name 'submit') %][% END %]" method="post">
|
<form action="[% IF create %][% c.uri_for('/create-project/submit') %][% ELSE %][% c.uri_for('/project' project.name 'submit') %][% END %]" method="post">
|
||||||
|
|
|
@ -51,13 +51,13 @@
|
||||||
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'channel' 'latest') title = "Channel" %]
|
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'channel' 'latest') title = "Channel" %]
|
||||||
[% IF c.user_exists %]
|
[% IF c.user_exists %]
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'edit') title="Edit configuration" %]
|
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'edit') title="Edit" %]
|
||||||
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) title = "Create new jobset" %]
|
|
||||||
[% IF project.hidden %]
|
[% IF project.hidden %]
|
||||||
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'unhide') title = "Unhide" %]
|
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'unhide') title = "Unhide" %]
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'hide') title = "Hide" %]
|
[% INCLUDE menuItem uri = c.uri_for('/project' project.name 'hide') title = "Hide" %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) title = "Create jobset" %]
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'channel' 'latest') title = "Channel" %]
|
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'channel' 'latest') title = "Channel" %]
|
||||||
[% IF c.user_exists %]
|
[% IF c.user_exists %]
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'edit') title="Edit configuration" %]
|
[% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'edit') title="Edit" %]
|
||||||
|
|
||||||
<form id="delete-jobset" method="post" action="[% c.uri_for('/jobset' project.name jobset.name 'delete') %]" class="hidden"></form>
|
<form id="delete-jobset" method="post" action="[% c.uri_for('/jobset' project.name jobset.name 'delete') %]" class="hidden"></form>
|
||||||
<script>
|
<script>
|
||||||
|
@ -162,6 +162,10 @@
|
||||||
|
|
||||||
[% IF c.user_exists && c.check_user_roles('admin') %]
|
[% IF c.user_exists && c.check_user_roles('admin') %]
|
||||||
[% WRAPPER makeSubMenu title="Admin" %]
|
[% WRAPPER makeSubMenu title="Admin" %]
|
||||||
|
[% IF c.check_user_roles('admin') %]
|
||||||
|
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create')) title = "Create project" %]
|
||||||
|
<li class="divider"></li>
|
||||||
|
[% END %]
|
||||||
[% INCLUDE makeLink
|
[% INCLUDE makeLink
|
||||||
uri = c.uri_for(c.controller('Admin').action_for('machines'))
|
uri = c.uri_for(c.controller('Admin').action_for('machines'))
|
||||||
title = "Manage machines" %]
|
title = "Manage machines" %]
|
||||||
|
@ -182,10 +186,6 @@
|
||||||
content = "Clear all non-running old builds from queue"
|
content = "Clear all non-running old builds from queue"
|
||||||
confirmmsg = "Are you sure you want to clear the queue?"
|
confirmmsg = "Are you sure you want to clear the queue?"
|
||||||
class = "" %]
|
class = "" %]
|
||||||
<li class="divider"></li>
|
|
||||||
[% IF c.check_user_roles('admin') %]
|
|
||||||
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create')) title = "Create new project" %]
|
|
||||||
[% END %]
|
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue