* Added authentication.

This commit is contained in:
Eelco Dolstra
2008-11-26 19:48:04 +00:00
parent 632d56e665
commit 50ae3ca9e9
23 changed files with 141 additions and 35 deletions

View File

@ -17,7 +17,7 @@
<h2>Information</h2>
<table>
<table class="layoutTable">
<tr>
<th>Build ID:</th>
<td>[% build.id %]</td>

View File

@ -109,8 +109,12 @@
<li>
<div class="title">Admin</div>
<ul class="submenu">
[% INCLUDE makeLink uri = c.uri_for('/users') title = "Users" %]
[% INCLUDE makeLink uri = c.uri_for('/createproject') title = "Create a project" %]
[% IF c.user_exists %]
[% INCLUDE makeLink uri = c.uri_for('/logout') title = "Logout" %]
[% ELSE %]
[% INCLUDE makeLink uri = c.uri_for('/login') title = "Login" %]
[% END %]
[% INCLUDE makeLink uri = c.uri_for('/createproject') title = "Create project" %]
</ul>
</li>
</ul>
@ -121,6 +125,9 @@
<div id="footer">
<hr />
Generated on [% date.format %].
[% IF c.user_exists %]
You are logged in as <tt>[% c.user.username %]</tt>.
[% END %]
</div>
</div>

View File

@ -74,7 +74,7 @@
<h4>Information</h4>
<table>
<table class="layoutTable">
[% IF edit %]
<tr>
<th>Identifier:</th>
@ -148,7 +148,7 @@
<h2>General information</h2>
<table>
<table class="layoutTable">
[% IF edit %]
<tr>
<th>Identifier:</th>
@ -258,7 +258,7 @@
<h2>Statistics</h2>
<table>
<table class="layoutTable">
<tr>
<th>Finished builds:</th>
<td>[% finishedBuilds %]</td>

View File

@ -29,6 +29,10 @@ table {
margin-bottom: 1em;
}
.layoutTable td, .layoutTable th {
border-style: none;
}
th {
text-align: center;
font-weight: bold;