forked from lix-project/hydra
Replace ugly link with nice small buttons
This commit is contained in:
parent
72785f35aa
commit
7886666b0b
|
@ -130,9 +130,9 @@
|
|||
<tr>
|
||||
<th>Logfile:</th>
|
||||
<td>
|
||||
<a 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 href="[% c.uri_for('/build' build.id 'log' 'tail-reload') %]">tail</a>)
|
||||
<a class="btn btn-mini btn-primary" href="[% c.uri_for('/build' build.id 'log') %]"><strong>Available</strong></a>
|
||||
<a class="btn btn-mini" href="[% c.uri_for('/build' build.id 'log' 'raw') %]">raw</a>
|
||||
<a class="btn btn-mini" href="[% c.uri_for('/build' build.id 'log' 'tail-reload') %]">tail</a>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
@ -180,12 +180,12 @@
|
|||
<thead>
|
||||
<th>Last successful build <tt>[% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]</tt></th>
|
||||
[% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %]
|
||||
<th>First broken build <tt>[% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]</tt><br/>
|
||||
<tt>[ <a href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id firstBrokenBuild.id ) %]">log diff</a> ]</tt>
|
||||
<th>First broken build <tt>[% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]</tt>
|
||||
<a class="btn btn-mini" href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id firstBrokenBuild.id ) %]">log diff</a>
|
||||
</th>
|
||||
[% END %]
|
||||
<th>This build <tt>[% INCLUDE renderDateTime timestamp = build.timestamp %]</tt> <br/>
|
||||
<tt>[ <a href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id build.id) %]">log diff</a> ]</tt>
|
||||
<th>This build <tt>[% INCLUDE renderDateTime timestamp = build.timestamp %]</tt>
|
||||
<a class="btn btn-mini" href="[% c.uri_for(c.controller('API').action_for('logdiff') prevSuccessfulBuild.id build.id) %]">log diff</a>
|
||||
</th>
|
||||
</thead>
|
||||
<tr>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<head>
|
||||
<title>Hydra - [% title %]</title>
|
||||
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/hydra.css" type="text/css" />
|
||||
<style>
|
||||
body {
|
||||
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
||||
|
|
|
@ -34,12 +34,11 @@
|
|||
<td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td>
|
||||
[% IF c.check_user_roles('admin') %]
|
||||
<td>
|
||||
[ [% IF p.hidden %]
|
||||
[% INCLUDE maybeLink uri = c.uri_for('/project' p.name 'unhide') content = "Unhide" %]
|
||||
[% IF p.hidden %]
|
||||
[% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'unhide') content = "Unhide" %]
|
||||
[% 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 %]
|
||||
]
|
||||
</td>
|
||||
[% END %]
|
||||
</tr>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<img src="/static/images/error_32.png" alt="Source" />
|
||||
Failed build produced output. Click here to inspect the output.
|
||||
</a>
|
||||
[<a class="productDetailsToggle" href="javascript:">help</a>]
|
||||
<a class="productDetailsToggle btn btn-mini" href="javascript:">help</a>
|
||||
<div class="well hide productDetails">
|
||||
<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>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<img src="/static/images/nix-build.png" alt="Source" />
|
||||
One-click install of Nix package <tt>[% build.nixname %]</tt>
|
||||
</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">
|
||||
<p>If you have Nix installed on your machine, you can
|
||||
install this package and all its dependencies automatically
|
||||
|
@ -82,7 +82,7 @@
|
|||
Nix closure of path <tt>[% product.path %]</tt>
|
||||
</a>
|
||||
|
||||
[<a class="productDetailsToggle" href="javascript:">help</a>]
|
||||
<a class="productDetailsToggle btn btn-mini" href="javascript:">help</a>
|
||||
<div class="well hide productDetails">
|
||||
<p>If you have Nix installed on your machine, this build and
|
||||
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>
|
||||
[% END %]
|
||||
</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">
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
@ -105,6 +105,15 @@
|
|||
|
||||
[% END %]
|
||||
|
||||
[% IF build %]
|
||||
[% WRAPPER makeSubMenu title=("Build: " _ build.id) %]
|
||||
[% INCLUDE makeLink
|
||||
uri = '#'
|
||||
title = "Related builds" %]
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
|
||||
[% IF c.user_exists %]
|
||||
[% IF c.check_user_roles('admin') %]
|
||||
[% WRAPPER makeSubMenu title="Admin" %]
|
||||
|
|
Loading…
Reference in a new issue