forked from lix-project/hydra
Merge branch 'master' into persona
This commit is contained in:
commit
63100b0ee8
|
@ -179,4 +179,17 @@ __PACKAGE__->belongs_to(
|
||||||
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-10-08 13:08:15
|
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-10-08 13:08:15
|
||||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OaJPzRM+8XGsu3eIkqeYEw
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OaJPzRM+8XGsu3eIkqeYEw
|
||||||
|
|
||||||
|
my %hint = (
|
||||||
|
columns => [
|
||||||
|
'type',
|
||||||
|
'uri',
|
||||||
|
'value',
|
||||||
|
'revision',
|
||||||
|
],
|
||||||
|
);
|
||||||
|
|
||||||
|
sub json_hint {
|
||||||
|
return \%hint;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -153,5 +153,22 @@ __PACKAGE__->belongs_to(
|
||||||
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-06-13 01:54:50
|
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-06-13 01:54:50
|
||||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+0LkZiaRL5tGJvbLxnwD/g
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+0LkZiaRL5tGJvbLxnwD/g
|
||||||
|
|
||||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
my %hint = (
|
||||||
|
columns => [
|
||||||
|
'type',
|
||||||
|
'subtype',
|
||||||
|
'name',
|
||||||
|
'filesize',
|
||||||
|
'sha1hash',
|
||||||
|
'sha256hash',
|
||||||
|
'description',
|
||||||
|
'path',
|
||||||
|
'defaultpath'
|
||||||
|
],
|
||||||
|
);
|
||||||
|
|
||||||
|
sub json_hint {
|
||||||
|
return \%hint;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -619,7 +619,9 @@ my %hint = (
|
||||||
'releasename'
|
'releasename'
|
||||||
],
|
],
|
||||||
eager_relations => {
|
eager_relations => {
|
||||||
buildoutputs => 'name'
|
buildoutputs => 'name',
|
||||||
|
buildinputs_builds => 'name',
|
||||||
|
buildproducts => 'productnr',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[% WRAPPER layout.tt title="Overview" hideHeader=1 %]
|
[% WRAPPER layout.tt title="Overview" hideHeader=1 %]
|
||||||
[% PROCESS common.tt %]
|
[% PROCESS common.tt %]
|
||||||
|
|
||||||
[% IF newItems.size != 0 %]
|
[% IF newsItems.size != 0 %]
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
[% FOREACH i IN newsItems %]
|
[% FOREACH i IN newsItems %]
|
||||||
<div class="news-item">
|
<div class="news-item">
|
||||||
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
<h2>Projects</h2>
|
<h2>Projects</h2>
|
||||||
|
|
||||||
|
[% IF projects.size != 0 %]
|
||||||
|
|
||||||
<p>The following projects are hosted on this server:</p>
|
<p>The following projects are hosted on this server:</p>
|
||||||
|
|
||||||
<table class="table table-condensed table-striped clickable-rows">
|
<table class="table table-condensed table-striped clickable-rows">
|
||||||
|
@ -36,4 +38,11 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
[% ELSE %]
|
||||||
|
|
||||||
|
<div class="alert alert-warning">Hydra has no projects yet. Please
|
||||||
|
<a href="[% c.uri_for(c.controller('Project').action_for('create')) %]">create a project</a>.</div>
|
||||||
|
|
||||||
|
[% END %]
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
|
@ -72,12 +72,14 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF c.user_exists && c.check_user_roles('admin') %]
|
[% IF c.user_exists && (c.check_user_roles('admin') ||
|
||||||
|
c.check_user_roles('create-projects')) %]
|
||||||
[% WRAPPER makeSubMenu title="Admin" %]
|
[% WRAPPER makeSubMenu title="Admin" %]
|
||||||
[% IF c.check_user_roles('admin') %]
|
[% IF c.check_user_roles('admin') || c.check_user_roles('create-projects') %]
|
||||||
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create')) title = "Create project" %]
|
[% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create')) title = "Create project" %]
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% IF c.check_user_roles('admin') %]
|
||||||
[% INCLUDE menuItem
|
[% INCLUDE menuItem
|
||||||
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" %]
|
||||||
|
@ -103,6 +105,7 @@
|
||||||
title = "Clear VCS caches"
|
title = "Clear VCS caches"
|
||||||
confirmmsg = "Are you sure you want to clear the VCS cache?"
|
confirmmsg = "Are you sure you want to clear the VCS cache?"
|
||||||
class = "" %]
|
class = "" %]
|
||||||
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select multiple="multiple" name="roles" class="span3" [% IF !c.check_user_roles('admin') %]disabled="disabled"[% END %]>
|
<select multiple="multiple" name="roles" class="span3" [% IF !c.check_user_roles('admin') %]disabled="disabled"[% END %]>
|
||||||
[% INCLUDE roleoption role="admin" %]
|
[% INCLUDE roleoption role="admin" %]
|
||||||
[% INCLUDE roleoption role="create-project" %]
|
[% INCLUDE roleoption role="create-projects" %]
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -106,7 +106,7 @@ sub checkBuilds {
|
||||||
{ join => ['project'], select => ['system'], as => ['system'], distinct => 1 });
|
{ join => ['project'], select => ['system'], as => ['system'], distinct => 1 });
|
||||||
|
|
||||||
# Get the total number of scheduling shares.
|
# Get the total number of scheduling shares.
|
||||||
my $totalShares = getTotalShares($db);
|
my $totalShares = getTotalShares($db) || 1;
|
||||||
|
|
||||||
# For each system type, select up to the maximum number of
|
# For each system type, select up to the maximum number of
|
||||||
# concurrent build for that system type.
|
# concurrent build for that system type.
|
||||||
|
|
Loading…
Reference in a new issue