Replace ugly link with nice small buttons

This commit is contained in:
Rob Vermaas 2012-04-12 21:03:59 +02:00
parent 72785f35aa
commit 7886666b0b
5 changed files with 24 additions and 15 deletions

View file

@ -130,9 +130,9 @@
<tr> <tr>
<th>Logfile:</th> <th>Logfile:</th>
<td> <td>
<a href="[% c.uri_for('/build' build.id 'log') %]"><strong>Available</strong></a> <a class="btn btn-mini btn-primary" href="[% c.uri_for('/build' build.id 'log') %]"><strong>Available</strong></a>
(<a href="[% c.uri_for('/build' build.id 'log' 'raw') %]">raw</a>, <a class="btn btn-mini" href="[% c.uri_for('/build' build.id 'log' 'raw') %]">raw</a>
<a href="[% c.uri_for('/build' build.id 'log' 'tail-reload') %]">tail</a>) <a class="btn btn-mini" href="[% c.uri_for('/build' build.id 'log' 'tail-reload') %]">tail</a>
</td> </td>
</tr> </tr>
[% END %] [% END %]
@ -180,12 +180,12 @@
<thead> <thead>
<th>Last successful build <tt>[% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]</tt></th> <th>Last successful build <tt>[% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]</tt></th>
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %] [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]
<th>First broken build <tt>[% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]</tt><br/> <th>First broken build <tt>[% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]</tt>
<tt>[ <a href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id firstBrokenBuild.id ) %]">log diff</a> ]</tt> <a class="btn btn-mini" href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id firstBrokenBuild.id ) %]">log diff</a>
</th> </th>
[% END %] [% END %]
<th>This build <tt>[% INCLUDE renderDateTime timestamp = build.timestamp %]</tt> <br/> <th>This build <tt>[% INCLUDE renderDateTime timestamp = build.timestamp %]</tt>
<tt>[ <a href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id build.id) %]">log diff</a> ]</tt> <a class="btn btn-mini" href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id build.id) %]">log diff</a>
</th> </th>
</thead> </thead>
<tr> <tr>

View file

@ -11,6 +11,7 @@
<head> <head>
<title>Hydra - [% title %]</title> <title>Hydra - [% title %]</title>
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css" type="text/css" /> <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/static/css/hydra.css" type="text/css" />
<style> <style>
body { body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */

View file

@ -34,12 +34,11 @@
<td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td> <td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td>
[% IF c.check_user_roles('admin') %] [% IF c.check_user_roles('admin') %]
<td> <td>
[ [% IF p.hidden %] [% IF p.hidden %]
[% INCLUDE maybeLink uri = c.uri_for('/project' p.name 'unhide') content = "Unhide" %] [% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'unhide') content = "Unhide" %]
[% ELSE %] [% ELSE %]
[% INCLUDE maybeLink uri = c.uri_for('/project' p.name 'hide') content = "Hide" %] [% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'hide') content = "Hide" %]
[% END %] [% END %]
]
</td> </td>
[% END %] [% END %]
</tr> </tr>

View file

@ -28,7 +28,7 @@
<img src="/static/images/error_32.png" alt="Source" /> <img src="/static/images/error_32.png" alt="Source" />
Failed build produced output. Click here to inspect the output. Failed build produced output. Click here to inspect the output.
</a> </a>
[<a class="productDetailsToggle" href="javascript:">help</a>] <a class="productDetailsToggle btn btn-mini" href="javascript:">help</a>
<div class="well hide productDetails"> <div class="well hide productDetails">
<p>If you have Nix installed on your machine, this failed build output and <p>If you have Nix installed on your machine, this failed build output and
all its dependencies can be unpacked into your local Nix store by doing:</p> all its dependencies can be unpacked into your local Nix store by doing:</p>
@ -50,7 +50,7 @@
<img src="/static/images/nix-build.png" alt="Source" /> <img src="/static/images/nix-build.png" alt="Source" />
One-click install of Nix package <tt>[% build.nixname %]</tt> One-click install of Nix package <tt>[% build.nixname %]</tt>
</a> </a>
[<a class="productDetailsToggle" href="javascript:">help</a>, <a href="[% contents %]">contents</a>] <a class="productDetailsToggle btn btn-mini" href="javascript:">help</a> <a class="btn btn-mini" href="[% contents %]">contents</a>
<div class="well hide productDetails"> <div class="well hide productDetails">
<p>If you have Nix installed on your machine, you can <p>If you have Nix installed on your machine, you can
install this package and all its dependencies automatically install this package and all its dependencies automatically
@ -82,7 +82,7 @@
Nix closure of path <tt>[% product.path %]</tt> Nix closure of path <tt>[% product.path %]</tt>
</a> </a>
[<a class="productDetailsToggle" href="javascript:">help</a>] <a class="productDetailsToggle btn btn-mini" href="javascript:">help</a>
<div class="well hide productDetails"> <div class="well hide productDetails">
<p>If you have Nix installed on your machine, this build and <p>If you have Nix installed on your machine, this build and
all its dependencies can be unpacked into your local Nix all its dependencies can be unpacked into your local Nix
@ -132,7 +132,7 @@
File <tt>[% product.name %]</tt> of type <tt>[% product.subtype %]</tt> File <tt>[% product.name %]</tt> of type <tt>[% product.subtype %]</tt>
[% END %] [% END %]
</a> </a>
[<a class="productDetailsToggle" href="javascript:">details</a>, <a href="[% contents %]">contents</a>] <a class="productDetailsToggle btn btn-mini" href="javascript:">details</a> <a class="btn btn-mini" href="[% contents %]">contents</a>
<div class="well hide productDetails"> <div class="well hide productDetails">
<table> <table>
<tr> <tr>

View file

@ -105,6 +105,15 @@
[% END %] [% END %]
[% IF build %]
[% WRAPPER makeSubMenu title=("Build: " _ build.id) %]
[% INCLUDE makeLink
uri = '#'
title = "Related builds" %]
[% END %]
[% END %]
[% IF c.user_exists %] [% IF c.user_exists %]
[% IF c.check_user_roles('admin') %] [% IF c.check_user_roles('admin') %]
[% WRAPPER makeSubMenu title="Admin" %] [% WRAPPER makeSubMenu title="Admin" %]