Jan Dittberner
94dcb5bd75
- implement custom http.Filesystem boardvoting.AssetFS - replace "footer" and "header" with "footer.html" and "header.html" - change renderTemplate to use Assets - use boardvoting.GetAssetFS() with http.Fileserver
26 lines
No EOL
1.1 KiB
HTML
26 lines
No EOL
1.1 KiB
HTML
{{ define "header.html" -}}
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/html">
|
|
<head>
|
|
<title>{{ block "pagetitle" . }}CAcert Board Decisions{{ end }}{{ if .PageTitle }} - {{ .PageTitle }}{{ end }}</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<link rel="stylesheet" type="text/css" href="/static/semantic.min.css"/>
|
|
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="/static/semantic.min.js"></script>
|
|
</head>
|
|
<body class="site">
|
|
<div class="ui container">
|
|
<h1 class="ui header">{{ template "pagetitle" . }}{{ if .Voter }}<div class="ui left pointing label">Authenticated as {{ .Voter.Name }} <{{ .Voter.Reminder }}></div>{{ end }}</h1>
|
|
{{ with .Flashes }}
|
|
<div class="ui info message">
|
|
<i class="close icon"></i>
|
|
<div class="ui list">
|
|
{{ range . }}
|
|
<div class="ui item">{{ . }}</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
<div class="ui one column grid container">
|
|
{{ end }} |