diff --git a/src/Hydra/lib/Hydra/Controller/Root.pm b/src/Hydra/lib/Hydra/Controller/Root.pm index ce6fc9e4..817882c1 100644 --- a/src/Hydra/lib/Hydra/Controller/Root.pm +++ b/src/Hydra/lib/Hydra/Controller/Root.pm @@ -347,6 +347,7 @@ sub updateProject { $project->name($projectName); $project->displayname($displayName); $project->description(trim $c->request->params->{description}); + $project->homepage(trim $c->request->params->{homepage}); $project->enabled(trim($c->request->params->{enabled}) eq "1" ? 1 : 0); if ($c->check_user_roles('admin')) { diff --git a/src/Hydra/lib/Hydra/Schema.pm b/src/Hydra/lib/Hydra/Schema.pm index f44b533d..3b268d66 100644 --- a/src/Hydra/lib/Hydra/Schema.pm +++ b/src/Hydra/lib/Hydra/Schema.pm @@ -8,8 +8,8 @@ use base 'DBIx::Class::Schema'; __PACKAGE__->load_classes; -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XUOZNYJWLcbWpHNpePDazA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+EFA/I0SY8Jih++hjX1Ypg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/BuildInputs.pm b/src/Hydra/lib/Hydra/Schema/BuildInputs.pm index 9d5cfe17..11221247 100644 --- a/src/Hydra/lib/Hydra/Schema/BuildInputs.pm +++ b/src/Hydra/lib/Hydra/Schema/BuildInputs.pm @@ -36,8 +36,8 @@ __PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }); __PACKAGE__->belongs_to("dependency", "Hydra::Schema::Builds", { id => "dependency" }); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p7rmvFgJAx+g7z5F7ecVVg +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sfGY0lHkOxmL8MUh9XRzcQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/BuildProducts.pm b/src/Hydra/lib/Hydra/Schema/BuildProducts.pm index 7d77a336..a467e829 100644 --- a/src/Hydra/lib/Hydra/Schema/BuildProducts.pm +++ b/src/Hydra/lib/Hydra/Schema/BuildProducts.pm @@ -33,8 +33,8 @@ __PACKAGE__->set_primary_key("build", "productnr"); __PACKAGE__->belongs_to("build", "Hydra::Schema::Builds", { id => "build" }); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OJQ5uOiLpUxyUyAJtcZq7Q +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0Q+SE9zoGRXIKLQbKgUEOg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/BuildResultInfo.pm b/src/Hydra/lib/Hydra/Schema/BuildResultInfo.pm index d334fdd7..2ee8cc6d 100644 --- a/src/Hydra/lib/Hydra/Schema/BuildResultInfo.pm +++ b/src/Hydra/lib/Hydra/Schema/BuildResultInfo.pm @@ -31,8 +31,8 @@ __PACKAGE__->set_primary_key("id"); __PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RXmEtQbYM1TJCsqGGbAnHA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5fMxCc6sKchB4munRoQ3tg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/BuildSchedulingInfo.pm b/src/Hydra/lib/Hydra/Schema/BuildSchedulingInfo.pm index 3564dace..81426f4b 100644 --- a/src/Hydra/lib/Hydra/Schema/BuildSchedulingInfo.pm +++ b/src/Hydra/lib/Hydra/Schema/BuildSchedulingInfo.pm @@ -27,8 +27,8 @@ __PACKAGE__->set_primary_key("id"); __PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mwZi4xhp9c5uZPp0LJcW/w +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b3e3/nNEkIL5NT0njXfmvQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/BuildSteps.pm b/src/Hydra/lib/Hydra/Schema/BuildSteps.pm index e8b69676..c0db5e0a 100644 --- a/src/Hydra/lib/Hydra/Schema/BuildSteps.pm +++ b/src/Hydra/lib/Hydra/Schema/BuildSteps.pm @@ -35,8 +35,8 @@ __PACKAGE__->set_primary_key("id", "stepnr"); __PACKAGE__->belongs_to("id", "Hydra::Schema::Builds", { id => "id" }); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mPYFEGY2OMsfRQDIcp7KMw +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+Uu75EKOIqmX2kDdoF4urw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/Builds.pm b/src/Hydra/lib/Hydra/Schema/Builds.pm index e6aa5957..efb3b64c 100644 --- a/src/Hydra/lib/Hydra/Schema/Builds.pm +++ b/src/Hydra/lib/Hydra/Schema/Builds.pm @@ -74,8 +74,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OLYzmcCXrq4g1ja5mFS1uA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+5YWpNShfJeY0rZxT6NFXg __PACKAGE__->has_many(dependents => 'Hydra::Schema::BuildInputs', 'dependency'); diff --git a/src/Hydra/lib/Hydra/Schema/CachedPathInputs.pm b/src/Hydra/lib/Hydra/Schema/CachedPathInputs.pm index 1ebeb237..ad26ca81 100644 --- a/src/Hydra/lib/Hydra/Schema/CachedPathInputs.pm +++ b/src/Hydra/lib/Hydra/Schema/CachedPathInputs.pm @@ -22,8 +22,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("srcpath", "sha256hash"); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uF9YsqaK0c9U4lSSMcWPQg +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fVED/6C0XGnrNGSazH7amg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/CachedSubversionInputs.pm b/src/Hydra/lib/Hydra/Schema/CachedSubversionInputs.pm index 9ee8fe9e..ccda2009 100644 --- a/src/Hydra/lib/Hydra/Schema/CachedSubversionInputs.pm +++ b/src/Hydra/lib/Hydra/Schema/CachedSubversionInputs.pm @@ -20,8 +20,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("uri", "revision"); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KGF9+q9XvPhsJw/Fl6aTqg +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kOLnExOz2rlFJQ3tcE+7Xg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/JobsetInputAlts.pm b/src/Hydra/lib/Hydra/Schema/JobsetInputAlts.pm index 1892209a..3fc5f6ff 100644 --- a/src/Hydra/lib/Hydra/Schema/JobsetInputAlts.pm +++ b/src/Hydra/lib/Hydra/Schema/JobsetInputAlts.pm @@ -31,8 +31,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q3wBn9LdHsDDkQ1rgFgfSA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3QPU9ikr0SZn/S99qOMRAg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/JobsetInputs.pm b/src/Hydra/lib/Hydra/Schema/JobsetInputs.pm index 0643e716..040fdb3c 100644 --- a/src/Hydra/lib/Hydra/Schema/JobsetInputs.pm +++ b/src/Hydra/lib/Hydra/Schema/JobsetInputs.pm @@ -43,8 +43,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zq2Y5b6Mu3Lh5xc3c+YMhA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dpuTqJIOcIuMe9xxR9NYdQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/Jobsets.pm b/src/Hydra/lib/Hydra/Schema/Jobsets.pm index 7a60591d..3669b855 100644 --- a/src/Hydra/lib/Hydra/Schema/Jobsets.pm +++ b/src/Hydra/lib/Hydra/Schema/Jobsets.pm @@ -50,8 +50,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tzPEPlQXvjE7XzmjTkQ97A +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r/PJAD9K8L3WHUncNFlnaw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/Projects.pm b/src/Hydra/lib/Hydra/Schema/Projects.pm index 41f62660..76541503 100644 --- a/src/Hydra/lib/Hydra/Schema/Projects.pm +++ b/src/Hydra/lib/Hydra/Schema/Projects.pm @@ -18,6 +18,8 @@ __PACKAGE__->add_columns( { data_type => "integer", is_nullable => 0, size => undef }, "owner", { data_type => "text", is_nullable => 0, size => undef }, + "homepage", + { data_type => "text", is_nullable => 0, size => undef }, ); __PACKAGE__->set_primary_key("name"); __PACKAGE__->has_many( @@ -43,8 +45,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VErTJlFT79ncSgQRHbxRBg +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9UhObD4jTQzVnYRWKPQOvg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/ReleaseSetJobs.pm b/src/Hydra/lib/Hydra/Schema/ReleaseSetJobs.pm index 056e8006..e90509f6 100644 --- a/src/Hydra/lib/Hydra/Schema/ReleaseSetJobs.pm +++ b/src/Hydra/lib/Hydra/Schema/ReleaseSetJobs.pm @@ -32,8 +32,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vvPlit6ptYgp5wubWQOnbA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aK/I+BIryTR1h/KGOxQ7mw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/ReleaseSets.pm b/src/Hydra/lib/Hydra/Schema/ReleaseSets.pm index 1e062780..e3bf4af3 100644 --- a/src/Hydra/lib/Hydra/Schema/ReleaseSets.pm +++ b/src/Hydra/lib/Hydra/Schema/ReleaseSets.pm @@ -29,8 +29,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z/OOijrjmVRCC4FYZL8qFA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vQ4hwubK2w3czUD9ghGHBg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/SystemTypes.pm b/src/Hydra/lib/Hydra/Schema/SystemTypes.pm index 0a648139..dfd64544 100644 --- a/src/Hydra/lib/Hydra/Schema/SystemTypes.pm +++ b/src/Hydra/lib/Hydra/Schema/SystemTypes.pm @@ -16,8 +16,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("system"); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t6mZU62241XET+vQ5X87cw +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:63NZCqYk/4E0ISCUaDqneA # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/UserRoles.pm b/src/Hydra/lib/Hydra/Schema/UserRoles.pm index 78320259..13ce8c87 100644 --- a/src/Hydra/lib/Hydra/Schema/UserRoles.pm +++ b/src/Hydra/lib/Hydra/Schema/UserRoles.pm @@ -17,8 +17,8 @@ __PACKAGE__->set_primary_key("username", "role"); __PACKAGE__->belongs_to("username", "Hydra::Schema::Users", { username => "username" }); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qvo2+AyVdqY8ML6dVJ8Mxg +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lck5v6SX1rzILTrkSdZBtg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/lib/Hydra/Schema/Users.pm b/src/Hydra/lib/Hydra/Schema/Users.pm index 3746bde8..d8e40c12 100644 --- a/src/Hydra/lib/Hydra/Schema/Users.pm +++ b/src/Hydra/lib/Hydra/Schema/Users.pm @@ -30,8 +30,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-16 17:19:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jUowQgo9F2lJRmdtu4PLQA +# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-02-11 23:16:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OQzF0LFe3iSh9KxLk1vL8w # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/src/Hydra/root/project.tt b/src/Hydra/root/project.tt index 268ff83b..f7ce7f17 100644 --- a/src/Hydra/root/project.tt +++ b/src/Hydra/root/project.tt @@ -167,6 +167,20 @@ Description: [% INCLUDE maybeEditString param="description" value=curProject.description %] + + Homepage: + + [% IF edit %] + [% INCLUDE maybeEditString param="homepage" value=curProject.homepage %] + [% ELSE %] + [% IF curProject.homepage %] + curProject.homepage) %]>[% HTML.escape(curProject.homepage) %] + [% ELSE %] + (not specified) + [% END %] + [% END %] + + Owner: [% INCLUDE maybeEditString param="owner" value=curProject.owner.username edit=(edit && c.check_user_roles('admin')) %] diff --git a/src/Hydra/sql/hydra.sql b/src/Hydra/sql/hydra.sql index 441fc86c..e4fbb8d9 100644 --- a/src/Hydra/sql/hydra.sql +++ b/src/Hydra/sql/hydra.sql @@ -160,6 +160,7 @@ create table Projects ( description text, enabled integer not null default 1, owner text not null, + homepage text, -- URL for the project foreign key (owner) references Users(userName) -- ignored by sqlite );