* Put the project-related actions in a separate controller. Put the

actions for viewing the job status and all builds in a separate base
  class that's inherited both by Root.pm and Project.pm so that we get
  URIs like /jobstatus and /project/<name>/jobstatus for free.
This commit is contained in:
Eelco Dolstra
2009-03-04 10:59:14 +00:00
parent 2f1bcbb1e5
commit 0a40286202
9 changed files with 363 additions and 313 deletions

View File

@ -3,6 +3,12 @@
<h1>[% IF httpStatus %][% httpStatus %][% ELSE %]Error[% END %]</h1>
<p>I'm very sorry, but an error occurred: <span class="error-msg">[% FOREACH error IN errors %][% HTML.escape(error) %][% END %]</span></p>
<p>I'm very sorry, but the following error(s) occurred:</p>
<ul>
[% FOREACH error IN errors %]
<li><div class="error-msg">[% HTML.escape(error) %]</div></li>
[% END %]
</ul>
[% END %]

View File

@ -132,7 +132,7 @@
[% ELSE %]
[% INCLUDE makeLink uri = c.uri_for('/login') title = "Login" %]
[% END %]
[% INCLUDE makeLink uri = c.uri_for('/createproject') title = "Create project" %]
[% INCLUDE makeLink uri = c.uri_for('/create-project') title = "Create project" %]
</ul>
</li>
</ul>

View File

@ -139,7 +139,7 @@
[% IF edit %]
<form action="[% IF create %][% c.uri_for('/createproject/submit') %][% ELSE %][% c.uri_for('/project' curProject.name 'submit') %][% END %]" method="post">
<form action="[% IF create %][% c.uri_for('/create-project/submit') %][% ELSE %][% c.uri_for('/project' curProject.name 'submit') %][% END %]" method="post">
[% END %]