2013-02-14 15:51:42 +00:00
|
|
|
[% USE date %]
|
|
|
|
[% USE HTML %]
|
2008-11-13 12:11:18 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-11-13 09:48:10 +00:00
|
|
|
|
2008-11-27 02:38:03 +00:00
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
2013-02-20 14:54:33 +00:00
|
|
|
<!DOCTYPE html>
|
2008-10-28 10:19:31 +00:00
|
|
|
|
2013-02-20 14:54:33 +00:00
|
|
|
<html lang="en">
|
2011-04-18 08:21:27 +00:00
|
|
|
|
2008-10-28 10:19:31 +00:00
|
|
|
<head>
|
2013-02-20 14:54:33 +00:00
|
|
|
<title>Hydra - [% HTML.escape(title) %]</title>
|
2012-04-12 18:12:07 +00:00
|
|
|
|
2013-02-20 00:49:01 +00:00
|
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
2013-02-19 14:22:15 +00:00
|
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
|
2013-02-19 13:34:53 +00:00
|
|
|
|
2013-02-20 14:54:33 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2013-02-20 12:56:41 +00:00
|
|
|
|
2013-02-20 14:54:33 +00:00
|
|
|
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
<link href="/static/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
|
2013-02-20 12:56:41 +00:00
|
|
|
<script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
|
2013-02-19 13:34:53 +00:00
|
|
|
|
2013-02-20 23:47:21 +00:00
|
|
|
<script type="text/javascript" src="/static/js/bootbox.min.js"></script>
|
|
|
|
|
2013-02-19 13:34:53 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/hydra.css" type="text/css" />
|
2013-02-19 16:22:28 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/tree.css" type="text/css" />
|
2013-02-19 13:34:53 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/logfile.css" type="text/css" />
|
|
|
|
|
|
|
|
<!--
|
2008-10-28 15:34:29 +00:00
|
|
|
<script type="text/javascript" src="/static/js/tablesorter/jquery.tablesorter.js"></script>
|
2013-02-19 13:34:53 +00:00
|
|
|
-->
|
|
|
|
|
2008-10-28 15:34:29 +00:00
|
|
|
<script type="text/javascript">
|
2008-11-18 12:48:58 +00:00
|
|
|
$(document).ready(function() {
|
2008-11-26 18:45:52 +00:00
|
|
|
|
|
|
|
/*** Tree toggles in logfiles. ***/
|
|
|
|
|
2008-11-18 17:51:40 +00:00
|
|
|
/* Set the appearance of the toggle depending on whether the
|
|
|
|
corresponding subtree is initially shown or hidden. */
|
2013-02-19 16:14:02 +00:00
|
|
|
$(".tree-toggle").map(function() {
|
2008-11-18 17:51:40 +00:00
|
|
|
if ($(this).siblings("ul:hidden").length == 0) {
|
|
|
|
$(this).text("-");
|
|
|
|
} else {
|
|
|
|
$(this).text("+");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
/* When a toggle is clicked, show or hide the subtree. */
|
2013-02-19 16:14:02 +00:00
|
|
|
$(".tree-toggle").click(function() {
|
2008-11-18 17:51:40 +00:00
|
|
|
if ($(this).siblings("ul:hidden").length != 0) {
|
|
|
|
$(this).siblings("ul").show();
|
|
|
|
$(this).text("-");
|
|
|
|
} else {
|
|
|
|
$(this).siblings("ul").hide();
|
|
|
|
$(this).text("+");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
/* Implementation of the expand all link. */
|
2013-02-19 16:14:02 +00:00
|
|
|
$(".tree-expand-all").click(function() {
|
|
|
|
$(".tree-toggle", $(this).parent().siblings(".tree")).map(function() {
|
2008-11-18 17:51:40 +00:00
|
|
|
$(this).siblings("ul").show();
|
|
|
|
$(this).text("-");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
/* Implementation of the collapse all link. */
|
2013-02-19 16:14:02 +00:00
|
|
|
$(".tree-collapse-all").click(function() {
|
|
|
|
$(".tree-toggle", $(this).parent().siblings(".tree")).map(function() {
|
2008-11-18 17:51:40 +00:00
|
|
|
$(this).siblings("ul").hide();
|
|
|
|
$(this).text("+");
|
|
|
|
});
|
|
|
|
});
|
2008-11-26 18:45:52 +00:00
|
|
|
|
2013-02-22 17:05:04 +00:00
|
|
|
$("table.clickable-rows").click(function(event) {
|
|
|
|
if ($(event.target).closest("a").length) return;
|
|
|
|
link = $(event.target).parents("tr").find("a.row-link");
|
|
|
|
if (link.length == 1)
|
|
|
|
window.location = link.attr("href");
|
|
|
|
});
|
|
|
|
|
2008-11-18 12:48:58 +00:00
|
|
|
});
|
2013-02-19 14:22:15 +00:00
|
|
|
|
2008-10-28 15:34:29 +00:00
|
|
|
</script>
|
2013-02-19 13:34:53 +00:00
|
|
|
|
2011-04-19 12:00:54 +00:00
|
|
|
[% tracker %]
|
2013-02-19 13:34:53 +00:00
|
|
|
|
2008-10-28 10:19:31 +00:00
|
|
|
</head>
|
2011-04-18 08:21:27 +00:00
|
|
|
|
2008-10-28 10:19:31 +00:00
|
|
|
<body>
|
2011-04-18 08:21:27 +00:00
|
|
|
|
2013-02-20 13:06:17 +00:00
|
|
|
<div class="navbar navbar-fixed-top navbar-inverse">
|
2012-04-12 18:12:07 +00:00
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container">
|
2013-02-22 14:45:10 +00:00
|
|
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-responsive-collapse">
|
2012-04-12 18:12:07 +00:00
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</a>
|
2012-04-13 09:47:05 +00:00
|
|
|
<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>
|
2013-02-22 14:45:10 +00:00
|
|
|
<div class="nav-collapse collapse navbar-responsive-collapse">
|
2012-04-12 18:12:07 +00:00
|
|
|
[% PROCESS topbar.tt %]
|
2013-02-20 12:56:41 +00:00
|
|
|
</div>
|
2012-04-12 18:12:07 +00:00
|
|
|
</div>
|
2008-11-12 23:45:11 +00:00
|
|
|
</div>
|
2012-04-12 18:12:07 +00:00
|
|
|
</div>
|
2008-11-12 23:45:11 +00:00
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
<div class="container">
|
2010-01-07 14:25:12 +00:00
|
|
|
|
2013-02-20 15:14:30 +00:00
|
|
|
[% IF flashMsg %]
|
|
|
|
<br />
|
|
|
|
<p class="btn-info btn-large">[% flashMsg %]</p>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% IF errorMsg %]
|
|
|
|
<br />
|
|
|
|
<p class="btn-warning btn-large">Error: [% errorMsg %]</p>
|
|
|
|
[% END %]
|
|
|
|
|
2013-02-20 14:54:33 +00:00
|
|
|
[% IF !hideHeader %]
|
|
|
|
<div class="page-header">
|
|
|
|
<h1><small>[% HTML.escape(title) %]</small></h1>
|
|
|
|
</div>
|
|
|
|
[% ELSE %]
|
|
|
|
<br />
|
|
|
|
[% END %]
|
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
[% content %]
|
|
|
|
|
2012-04-17 14:53:11 +00:00
|
|
|
<footer class="navbar">
|
|
|
|
<hr />
|
|
|
|
<small>
|
|
|
|
<em><a href="http://nixos.org/hydra" target="_new">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>
|
2008-10-28 10:19:31 +00:00
|
|
|
|
|
|
|
</div>
|
2012-04-12 18:12:07 +00:00
|
|
|
|
2008-10-28 10:19:31 +00:00
|
|
|
</body>
|
|
|
|
|
2008-11-25 13:27:57 +00:00
|
|
|
</html>
|