hydra/src/root/layout.tt

118 lines
3.7 KiB
Plaintext
Raw Normal View History

[% USE date %]
[% USE HTML %]
2008-11-27 02:38:03 +00:00
[% PROCESS common.tt %]
2013-02-20 14:54:33 +00:00
<!DOCTYPE html>
2013-02-20 14:54:33 +00:00
<html lang="en">
<head>
2013-02-20 14:54:33 +00:00
<title>Hydra - [% HTML.escape(title) %]</title>
2014-09-25 14:06:07 +00:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script src="https://code.jquery.com/jquery-1.12.3.js"
integrity="sha256-1XMpEtA4eKXNNpXcJ1pmMPs8JV+nwLdEqwiJeCQEkyc="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"
integrity="sha256-tp8VZ4Y9dg702r7D6ynzSavKSwB9zjariSZ4Snurvmw="
crossorigin="anonymous"></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" />
<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" />
2013-02-19 13:34:53 +00:00
<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" />
2013-02-19 13:34:53 +00:00
<script type="text/javascript" src="[% c.uri_for("/static/js/common.js") %]"></script>
2013-02-19 13:34:53 +00:00
[% IF c.config.enable_google_login %]
<meta name="google-signin-client_id" content="[% c.config.google_client_id %]">
[% END %]
[% tracker %]
2013-02-19 13:34:53 +00:00
</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>
2008-11-12 23:45:11 +00:00
</div>
</div>
2008-11-12 23:45:11 +00:00
<div class="container">
2013-11-06 13:50:21 +00:00
<div class="skip-topbar"></div>
2013-07-09 10:05:25 +00:00
[% IF flashMsg %]
<div class="alert alert-info">[% flashMsg %]</div>
2013-02-27 17:33:47 +00:00
[% END %]
2013-07-09 10:05:25 +00:00
[% IF successMsg %]
<div class="alert alert-success">[% successMsg %]</div>
[% END %]
2013-07-09 10:05:25 +00:00
[% IF errorMsg %]
2013-10-03 17:54:22 +00:00
<div class="alert alert-warning">Error: [% errorMsg %]</div>
[% END %]
2013-02-20 14:54:33 +00:00
[% IF !hideHeader %]
<div class="page-header">
2013-11-06 12:32:56 +00:00
[% IF c.user_exists && starUri; INCLUDE makeStar; " "; END; HTML.escape(title) %]
2013-02-20 14:54:33 +00:00
</div>
[% ELSE %]
2013-11-06 12:32:56 +00:00
[% IF first %]<br />[% first = 0; END; %]
2013-02-20 14:54:33 +00:00
[% 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 signed in as <tt>[% HTML.escape(c.user.username) %]</tt>
[%- IF c.user.type == 'google' %] via Google[% END %].
[% END %]
</small>
</footer>
</div>
[% PROCESS auth.tt %]
</body>
</html>