blob: ee8a54c7a83a60a47597362756c24842bf690f96 (
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
64
65
66
67
68
69
|
{{ define "HEADER" }}<html>
<head>
<title>bommom</title>
<link rel="stylesheet" type="text/css" href="/static/default.css"></link>
<!-- Start Mozilla Persona Code -->
<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>
<!-- End Mozilla Persona Code -->
</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">
{{ if .Session.UserName }}
<p class="navbar-text pull-right">
<a href="/account/logout/"><button class="btn btn-mini" type="button" style="margin-left: 15px; margin-top:9px;">Log out!</button></a>
</p>
<p class="navbar-text pull-right">
logged in as {{ .Session.UserName }}
</p>
{{ else }}
<p class="navbar-text pull-right">
<a href="/account/login/"><button class="btn btn-mini" type="button" style="margin-top: 9px;">Log in!</button></a>
</p>
{{ end }}
</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}}
|