Use static assets for HTML templates
[cacert-boardvoting.git] / boardvoting / templates / header.html
1 {{ define "header.html" -}}
2 <!DOCTYPE html>
3 <html xmlns="http://www.w3.org/1999/html">
4 <head>
5 <title>{{ block "pagetitle" . }}CAcert Board Decisions{{ end }}{{ if .PageTitle }} - {{ .PageTitle }}{{ end }}</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7 <link rel="stylesheet" type="text/css" href="/static/semantic.min.css"/>
8 <script type="text/javascript" src="/static/js/jquery.min.js"></script>
9 <script type="text/javascript" src="/static/semantic.min.js"></script>
10 </head>
11 <body class="site">
12 <div class="ui container">
13 <h1 class="ui header">{{ template "pagetitle" . }}{{ if .Voter }}<div class="ui left pointing label">Authenticated as {{ .Voter.Name }} &lt;{{ .Voter.Reminder }}&gt;</div>{{ end }}</h1>
14 {{ with .Flashes }}
15 <div class="ui info message">
16 <i class="close icon"></i>
17 <div class="ui list">
18 {{ range . }}
19 <div class="ui item">{{ . }}</div>
20 {{ end }}
21 </div>
22 </div>
23 {{ end }}
24 </div>
25 <div class="ui one column grid container">
26 {{ end }}