Use Semantic UI for all HTML templates
[cacert-boardvoting.git] / templates / motion.html
index 66e4ce0..8fc7530 100644 (file)
@@ -1,21 +1,19 @@
 {{ template "header" . }}
-<a href="/motions/">Show all votes</a>
 {{ $voter := .Voter }}
-<table class="list">
-    <thead>
-    <th>Status</th>
-    <th>Motion</th>
-    {{ if $voter}}
-    <th>Actions</th>
-    {{ end }}
-    </thead>
-    <tbody>
-    <tr>
-        {{ with .Decision }}
-        {{ template "motion_fragment" .}}
+<div class="column">
+    <div class="ui basic segment">
+        <div class="ui floated right secondary menu">
+            <a href="/motions/" class="item" title="Show all votes">All votes</a>
+            {{ if $voter }}<a href="/motions/?unvoted=1" class="item" title="Show my outstanding votes">My outstanding votes</a>{{ end }}
+        </div>
+    </div>
+</div>
+{{ with .Decision }}
+<div class="column">
+    <div class="ui raised segment">
+        {{ template "motion_fragment" . }}
         {{ if $voter }}{{ template "motion_actions" . }}{{ end }}
-        {{ end}}
-    </tr>
-    </tbody>
-</table>
+    </div>
+</div>
+{{ end}}
 {{ template "footer" . }}
\ No newline at end of file