aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 8066063f3f89f1e4a2ca58d46d8e24a9cb609a01 (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
{{ define "HEADER" }}<html>
<head>
<title>bommom</title>
<link rel="stylesheet" type="text/css" href="/static/default.css"></link>
</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 .User }}
            {{ .User.Email }}
        {{ else }}
            <button class="btn btn-mini disabled" type="button" style="margin-top: 9px;">Log in!</button>
        {{ 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}}