diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-09-19 18:41:30 +0200 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-09-19 18:41:30 +0200 |
commit | 7cd921c74d03c2bfe50a326d97bac947660b1b30 (patch) | |
tree | 78561ca1fcc0069bdc955dda564dbf0cebb81e00 /templates/base.html | |
parent | cc783ca52451587a471d109c9d0229c3c21c29b8 (diff) | |
download | bommom-7cd921c74d03c2bfe50a326d97bac947660b1b30.tar.gz bommom-7cd921c74d03c2bfe50a326d97bac947660b1b30.zip |
add basic bootstrap styling
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index c455815..8066063 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,6 +3,47 @@ <title>bommom</title> <link rel="stylesheet" type="text/css" href="/static/default.css"></link> </head> -<body>{{ end }} -{{ define "FOOTER" }}</body> +<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}} + |