blob: 4fe66adf19a118fa6c18f41b30cc401b43c11532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{{ define "HEADER" }}<html>
<head>
<title>bommom</title>
<link rel="stylesheet" type="text/css" href="/static/default.css"></link>
<script src="/static/include.js"></script>
<script>
function login() {
navigator.id.get(function(assertion) {
if (assertion) {
var assertion_field = document.getElementById("assertion-field");
assertion_field.value = assertion;
var login_form = document.getElementById("login-form");
login_form.submit();
}
});
}
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="/">bommom.com</a>
{{ range .BreadCrumbs }} / {{.}} {{end}}
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
{{ if .Session.UserName }}
{{ .Session.UserName }}
<a href="/account/logout/"><button class="btn btn-mini" type="button" style="margin-left: 5px;">Log out!</button></a>
{{ else }}
<a href="/account/login/"><button class="btn btn-mini" type="button" style="margin-top: 9px;">Log in!</button></a>
{{ end }}
</p>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<br><br>
<div class="container-fluid">
<div class="row-fluid">
{{ end }}
{{ define "FOOTER" }}
</div>
</div>
</body>
</html>{{ end }}
{{ define "BOM_INFO" }}
<div class="well well-small">
<dl class="dl-horizontal" style="margin: 0px;">
<dt>Owner: </dt><dd>{{ .BomMeta.Owner }}</dd>
{{ if .BomMeta.Homepage }}<dt>Homepage: </b>{{ .BomMeta.Homepage }}</dd>{{ end }}
{{ if .BomMeta.Description }}<dt>Description: </dt><dd>{{ .BomMeta.Description }}</dd>{{ end }}
<dt>Version: </dt><dd>{{ .BomMeta.HeadVersion }} (at head)</dd>
<dt>Created: </dt><dd>{{ .Bom.Created }}</dd>
{{ if .Bom.Progeny}}<dt>Source: </dt><dd>{{ .Bom.Progeny }}</dd>{{ end }}
</dl>
</div>
{{end}}
|