Give every page a consistent title

This commit is contained in:
Eelco Dolstra
2013-02-20 15:54:33 +01:00
parent 5c317fa0e9
commit ea9862fdc1
36 changed files with 105 additions and 162 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
[% WRAPPER layout.tt title=(create ? "New machine" : "Editing machine '$machine.hostname'") %]
[% WRAPPER layout.tt title=(create ? "New machine" : "Machine $machine.hostname") %]
[% PROCESS common.tt %]
<div class="page-header"><h1>[% IF create %]New machine[% ELSE %]Machine <tt>[% machine.hostname %]</tt>[% END %]</h1></div>
<form class="form-horizontal" method="post"
action="[% IF create %][% c.uri_for('/admin/create-machine/submit') %][% ELSE %][% c.uri_for('/admin/machine' machine.hostname 'submit') %][% END %]">