forked from lix-project/hydra
0b202580ce
This commit is provided by (zsh syntax): sed -i 's|/static[^"]*|[% c.uri_for("&") %]|;s/\[% size %\]/${size}/' **/*.tt And the reason for this change is to make it easier to change the base path with headers like X-Request-Base to be served within a URI prefix, especially when behind a reverse proxy. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
108 lines
3.3 KiB
Plaintext
108 lines
3.3 KiB
Plaintext
[% USE date %]
|
|
[% USE HTML %]
|
|
[% PROCESS common.tt %]
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>Hydra - [% HTML.escape(title) %]</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
|
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<script type="text/javascript" src="[% c.uri_for("/static/bootstrap/js/bootstrap.min.js") %]"></script>
|
|
<link href="[% c.uri_for("/static/bootstrap/css/bootstrap.min.css") %]" rel="stylesheet" />
|
|
|
|
<!-- hydra.css must be included before bootstrap-responsive to
|
|
make the @media rule work. -->
|
|
<link rel="stylesheet" href="[% c.uri_for("/static/css/hydra.css") %]" type="text/css" />
|
|
<link rel="stylesheet" href="[% c.uri_for("/static/css/rotated-th.css") %]" type="text/css" />
|
|
<link href="[% c.uri_for("/static/bootstrap/css/bootstrap-responsive.min.css") %]" rel="stylesheet" />
|
|
|
|
<style>
|
|
.popover { max-width: 40%; }
|
|
</style>
|
|
|
|
<script type="text/javascript" src="[% c.uri_for("/static/js/bootbox.min.js") %]"></script>
|
|
|
|
<link rel="stylesheet" href="[% c.uri_for("/static/css/tree.css") %]" type="text/css" />
|
|
<link rel="stylesheet" href="[% c.uri_for("/static/css/logfile.css") %]" type="text/css" />
|
|
|
|
<script type="text/javascript" src="[% c.uri_for("/static/js/common.js") %]"></script>
|
|
|
|
[% tracker %]
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="brand" href="[% c.uri_for(c.controller('Root').action_for('index')) %]">
|
|
[% IF logo == "" %]
|
|
Hydra
|
|
[% ELSE %]
|
|
<img src="[% logo %]" alt="Hydra Logo" class="logo" />
|
|
[% END %]
|
|
</a>
|
|
<div class="nav-collapse collapse">
|
|
[% PROCESS topbar.tt %]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
[% IF flashMsg %]
|
|
<br />
|
|
<p class="btn-info btn-large">[% flashMsg %]</p>
|
|
[% END %]
|
|
|
|
[% IF successMsg %]
|
|
<br />
|
|
<p class="btn-success btn-large">[% successMsg %]</p>
|
|
[% END %]
|
|
|
|
[% IF errorMsg %]
|
|
<br />
|
|
<p class="btn-warning btn-large">Error: [% errorMsg %]</p>
|
|
[% END %]
|
|
|
|
[% IF !hideHeader %]
|
|
<div class="page-header">
|
|
<h1><small>[% HTML.escape(title) %]</small></h1>
|
|
</div>
|
|
[% ELSE %]
|
|
<br />
|
|
[% END %]
|
|
|
|
[% content %]
|
|
|
|
<footer class="navbar">
|
|
<hr />
|
|
<small>
|
|
<em><a href="http://nixos.org/hydra" target="_blank">Hydra</a> [% HTML.escape(version) %] (using [% HTML.escape(nixVersion) %]).</em>
|
|
[% IF c.user_exists %]
|
|
You are logged in as <tt>[% c.user.username %]</tt>.
|
|
[% END %]
|
|
</small>
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|