summaryrefslogtreecommitdiff
path: root/templates/header.html
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-04-29 22:17:58 +0200
committerJan Dittberner <jandd@cacert.org>2017-04-29 22:17:58 +0200
commit1c989fdfa3d15b35342d439bcb3fbab894b6d46c (patch)
treed3a010d35294ef277deebf0f31ecdc344d65e20f /templates/header.html
parent2a38b6bcadfc5676d98446f47dc7c9c87bca727b (diff)
downloadcacert-boardvoting-1c989fdfa3d15b35342d439bcb3fbab894b6d46c.tar.gz
cacert-boardvoting-1c989fdfa3d15b35342d439bcb3fbab894b6d46c.tar.xz
cacert-boardvoting-1c989fdfa3d15b35342d439bcb3fbab894b6d46c.zip
Work on Semantic UI theming
Diffstat (limited to 'templates/header.html')
-rw-r--r--templates/header.html34
1 files changed, 19 insertions, 15 deletions
diff --git a/templates/header.html b/templates/header.html
index a6fc69e..814e845 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -1,22 +1,26 @@
-{{ define "pagetitle" }}
-CAcert Board Decisions{{ if .PageTitle }} - {{ .PageTitle }}{{ end}}
-{{ end }}
-
{{ define "header" -}}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
- <title>{{ template "pagetitle" . }}</title>
+ <title>{{ block "pagetitle" . }}CAcert Board Decisions{{ if .PageTitle }} - {{ .PageTitle }}{{ end }}{{ end }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <link rel="stylesheet" type="text/css" href="/static/styles.css"/>
+ <link rel="stylesheet" type="text/css" href="/static/semantic.css"/>
+ <script type="text/javascript" src="/static/js/jquery.js"></script>
+ <script type="text/javascript" src="/static/semantic.js"></script>
</head>
-<body>
-<h1>{{ template "pagetitle" . }}</h1>
-{{ with .Flashes }}
-<ul class="flash-messages">
-{{ range . }}
- <li>{{ . }}</li>
-{{ end }}
-</ul>
-{{ end }}
+<body class="site">
+<div class="ui container">
+ <h1 class="ui header">{{ template "pagetitle" . }}</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 }} \ No newline at end of file