cacert-boardvoting/ui/html/pages/motions.html

44 lines
1.2 KiB
HTML
Raw Normal View History

2022-05-09 19:09:24 +00:00
{{ define "title" }}Motions{{ end }}
{{ define "main" }}
{{ $voter := .Voter }}
{{ $page := . }}
{{ if $voter }}
<div class="ui basic segment">
<div class="ui secondary pointing menu">
<a href="/motions/" class="{{ if not .Params.Flags.Unvoted }}active {{ end }}item" title="Show all motions">All
motions</a>
<a href="/motions/?unvoted=1" class="{{ if .Params.Flags.Unvoted }}active {{ end}}item"
title="My unvoted motions">My unvoted motions</a>
<div class="right item">
<a class="ui primary button" href="/newmotion/">New motion</a>
</div>
</div>
</div>
{{ end }}
{{ if .Motions }}
<div class="ui labeled icon menu">
{{ template "pagination" $page }}
</div>
{{ range .Motions }}
<div class="ui raised segment">
{{ template "motion_display" . }}
{{ if $voter }}{{ template "motion_actions" . }}{{ end }}
</div>
{{ end }}
<div class="ui labeled icon menu">
{{ template "pagination" $page }}
</div>
{{ else }}
<div class="ui basic segment">
<div class="ui icon message">
<i class="inbox icon"></i>
<div class="content">
<div class="header">No motions available</div>
</div>
</div>
</div>
2022-05-09 19:09:24 +00:00
<p>Nothing to see yet.</p>
{{ end }}
{{ end }}