43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
{{ 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>
|
|
<p>Nothing to see yet.</p>
|
|
{{ end }}
|
|
{{ end }}
|