hydra/src/root/layout.tt

104 lines
3.5 KiB
Plaintext
Raw Normal View History

[% USE date -%]
2008-11-18 12:48:58 +00:00
[% 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 %]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Hydra - [% title %]</title>
2010-10-18 10:45:30 +00:00
<link type="text/css" href="/static/js/jquery/css/smoothness/jquery-ui-1.8.5.custom.css" rel="Stylesheet" />
2008-11-18 16:45:23 +00:00
<link rel="stylesheet" href="/static/css/hydra.css" type="text/css" />
2009-10-02 14:00:37 +00:00
<link rel="stylesheet" href="/static/css/nix-common.css" type="text/css" />
<link rel="stylesheet" href="/static/css/nixos-site.css" type="text/css" />
2008-11-18 16:45:23 +00:00
<link rel="stylesheet" href="/static/css/logfile.css" type="text/css" />
2010-05-18 09:25:59 +00:00
<script type="text/javascript" src="/static/js/jquery/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/jquery/js/jquery-ui-1.8.5.custom.min.js"></script>
2008-10-28 15:34:29 +00:00
<script type="text/javascript" src="/static/js/tablesorter/jquery.tablesorter.js"></script>
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
/*** Sortable tables. ***/
$("table.tablesorter").tablesorter();
2008-11-26 18:45:52 +00:00
/*** Tree toggles in logfiles. ***/
/* Set the appearance of the toggle depending on whether the
corresponding subtree is initially shown or hidden. */
$(".logTreeToggle").map(function() {
if ($(this).siblings("ul:hidden").length == 0) {
$(this).text("-");
} else {
$(this).text("+");
}
});
/* When a toggle is clicked, show or hide the subtree. */
$(".logTreeToggle").click(function() {
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. */
$(".logTreeExpandAll").click(function() {
$(".logTreeToggle", $(this).siblings(".toplevel")).map(function() {
$(this).siblings("ul").show();
$(this).text("-");
});
});
/* Implementation of the collapse all link. */
$(".logTreeCollapseAll").click(function() {
$(".logTreeToggle", $(this).siblings(".toplevel")).map(function() {
$(this).siblings("ul").hide();
$(this).text("+");
});
});
2008-11-26 18:45:52 +00:00
2008-11-18 12:48:58 +00:00
});
2008-10-28 15:34:29 +00:00
</script>
</head>
<body>
<div id="page">
<div id="header">
<div id="logo"><a class="no-hover" href="/"><img src="/static/images/hydra.png" alt="Hydra Logo" /></a></div>
[% PROCESS topbar.tt %]
[% PROCESS contextbar.tt %]
2008-11-12 23:45:11 +00:00
</div>
<div id="main">
[% PROCESS navbar.tt %]
2008-11-12 23:45:11 +00:00
<div id="content">
[% content %]
2008-11-12 23:45:11 +00:00
</div>
2008-11-12 23:45:11 +00:00
</div>
<div id="footer">
<div id="last-modified">
<em><a href="http://nixos.org/hydra" target="_new">Hydra</a> [% HTML.escape(version) %] (using [% HTML.escape(nixVersion) %]).</em>
Page generated on [% INCLUDE renderDateTime %].
[% IF c.user_exists %]
You are logged in as <tt>[% c.user.username %]</tt>.
[% END %]
</div>
</div>
</body>
</html>