2013-02-14 16:51:42 +01: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 15:54:33 +01:00
|
|
|
<!DOCTYPE html>
|
2008-10-28 10:19:31 +00:00
|
|
|
|
2013-02-20 15:54:33 +01:00
|
|
|
<html lang="en">
|
2011-04-18 08:21:27 +00:00
|
|
|
|
2008-10-28 10:19:31 +00:00
|
|
|
<head>
|
2013-02-20 15:54:33 +01:00
|
|
|
<title>Hydra - [% HTML.escape(title) %]</title>
|
2012-04-12 20:12:07 +02:00
|
|
|
|
2013-07-09 00:23:48 +02:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2013-07-08 23:54:40 +02:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
|
|
|
|
2013-06-07 15:43:55 +02:00
|
|
|
<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>
|
2013-02-19 14:34:53 +01:00
|
|
|
|
2013-02-20 15:54:33 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2013-02-20 13:56:41 +01:00
|
|
|
|
2013-03-19 00:15:12 +01:00
|
|
|
<script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
|
2013-02-20 15:54:33 +01:00
|
|
|
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
2013-03-19 00:15:12 +01:00
|
|
|
|
|
|
|
<!-- hydra.css must be included before bootstrap-responsive to
|
|
|
|
make the @media rule work. -->
|
|
|
|
<link rel="stylesheet" href="/static/css/hydra.css" type="text/css" />
|
2013-02-20 15:54:33 +01:00
|
|
|
<link href="/static/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
|
2013-02-19 14:34:53 +01:00
|
|
|
|
2013-04-26 17:47:30 +02:00
|
|
|
<style>
|
|
|
|
.popover { max-width: 40%; }
|
|
|
|
</style>
|
|
|
|
|
2013-02-21 00:47:21 +01:00
|
|
|
<script type="text/javascript" src="/static/js/bootbox.min.js"></script>
|
|
|
|
|
2013-02-19 17:22:28 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/tree.css" type="text/css" />
|
2013-02-19 14:34:53 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/logfile.css" type="text/css" />
|
|
|
|
|
2013-06-25 01:16:28 +02:00
|
|
|
<script type="text/javascript" src="/static/js/common.js"></script>
|
2013-02-19 14:34:53 +01:00
|
|
|
|
2011-04-19 12:00:54 +00:00
|
|
|
[% tracker %]
|
2013-02-19 14:34:53 +01: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-04-26 15:34:33 +02:00
|
|
|
<div class="navbar navbar-fixed-top">
|
2012-04-12 20:12:07 +02:00
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container">
|
2013-03-19 00:15:12 +01:00
|
|
|
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
2012-04-12 20:12:07 +02:00
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
2013-03-19 00:15:12 +01:00
|
|
|
</button>
|
2012-04-13 11:47:05 +02:00
|
|
|
<a class="brand" href="[% c.uri_for(c.controller('Root').action_for('index')) %]">
|
2013-03-15 11:23:00 +01:00
|
|
|
[% IF logo == "" %]
|
|
|
|
Hydra
|
|
|
|
[% ELSE %]
|
2012-04-13 11:47:05 +02:00
|
|
|
<img src="[% logo %]" alt="Hydra Logo" class="logo" />
|
2013-02-23 15:25:59 +01:00
|
|
|
[% END %]
|
2012-04-13 11:47:05 +02:00
|
|
|
</a>
|
2013-03-19 00:15:12 +01:00
|
|
|
<div class="nav-collapse collapse">
|
2012-04-12 20:12:07 +02:00
|
|
|
[% PROCESS topbar.tt %]
|
2013-02-20 13:56:41 +01:00
|
|
|
</div>
|
2012-04-12 20:12:07 +02:00
|
|
|
</div>
|
2008-11-12 23:45:11 +00:00
|
|
|
</div>
|
2012-04-12 20:12:07 +02:00
|
|
|
</div>
|
2008-11-12 23:45:11 +00:00
|
|
|
|
2012-04-12 20:12:07 +02:00
|
|
|
<div class="container">
|
2010-01-07 14:25:12 +00:00
|
|
|
|
2013-07-09 12:05:25 +02:00
|
|
|
[% IF !hideHeader %]
|
|
|
|
<div class="page-header">
|
|
|
|
<h1><small>[% HTML.escape(title) %]</small></h1>
|
|
|
|
</div>
|
|
|
|
[% ELSE %]
|
2013-02-20 16:14:30 +01:00
|
|
|
<br />
|
|
|
|
[% END %]
|
|
|
|
|
2013-07-09 12:05:25 +02:00
|
|
|
[% IF flashMsg %]
|
|
|
|
<div class="alert alert-info">[% flashMsg %]</div>
|
2013-02-27 18:33:47 +01:00
|
|
|
[% END %]
|
|
|
|
|
2013-07-09 12:05:25 +02:00
|
|
|
[% IF successMsg %]
|
|
|
|
<div class="alert alert-success">[% successMsg %]</div>
|
2013-02-20 16:14:30 +01:00
|
|
|
[% END %]
|
|
|
|
|
2013-07-09 12:05:25 +02:00
|
|
|
[% IF errorMsg %]
|
|
|
|
<div class="alert alert-error">Error: [% errorMsg %]</div>
|
2013-02-20 15:54:33 +01:00
|
|
|
[% END %]
|
|
|
|
|
2012-04-12 20:12:07 +02:00
|
|
|
[% content %]
|
|
|
|
|
2012-04-17 16:53:11 +02: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 %]
|
2013-07-09 12:07:18 +02:00
|
|
|
You are signed in as <tt>[% HTML.escape(c.user.username) %]</tt>.
|
2012-04-17 16:53:11 +02:00
|
|
|
[% END %]
|
|
|
|
</small>
|
|
|
|
</footer>
|
2008-10-28 10:19:31 +00:00
|
|
|
|
|
|
|
</div>
|
2012-04-12 20:12:07 +02:00
|
|
|
|
2013-07-08 23:54:40 +02:00
|
|
|
<script src="https://login.persona.org/include.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
navigator.id.watch({
|
|
|
|
loggedInUser: [% c.user_exists ? '"' _ HTML.escape(c.user.username) _ '"' : "null" %],
|
|
|
|
onlogin: function(assertion) {
|
|
|
|
$.post("[% c.uri_for('/persona-login') %]", { assertion: assertion })
|
|
|
|
.done(function(data) {
|
|
|
|
if (data.error)
|
|
|
|
bootbox.alert("Login failed: " + data.error);
|
|
|
|
else
|
|
|
|
window.location.reload();
|
|
|
|
})
|
|
|
|
.fail(function() { bootbox.alert("Server request failed!"); });
|
|
|
|
},
|
|
|
|
onlogout: function() {
|
2013-07-09 12:02:15 +02:00
|
|
|
$.post("[% c.uri_for('/persona-logout') %]")
|
|
|
|
.done(function(data) {
|
|
|
|
window.location.reload();
|
|
|
|
})
|
|
|
|
.fail(function() { bootbox.alert("Server request failed!"); });
|
2013-07-08 23:54:40 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#persona-signin").click(function() {
|
|
|
|
navigator.id.request();
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#persona-signout").click(function() {
|
|
|
|
navigator.id.logout();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2008-10-28 10:19:31 +00:00
|
|
|
</body>
|
|
|
|
|
2008-11-25 13:27:57 +00:00
|
|
|
</html>
|