summaryrefslogtreecommitdiff
path: root/templates/motions.html
blob: fa1c07c81f6359ca54c70e78739691567d61ea21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <title>CAcert Board Decisions</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="/static/styles.css"/>
</head>
<body>
<a href="?unvoted=1">Show my outstanding votes</a><br/>
{{ if .Decisions }}
<table class="list">
    <thead>
    <tr>
        <th>Status</th>
        <th>Motion</th>
        <th>Actions</th>
    </tr>
    </thead>
    <tbody>
    {{range .Decisions }}
    <tr>
        <td class="{{.Status}}">
            {{ if eq .Status 0 }}Pending {{ .Due}}
            {{ else if eq .Status 1}}Approved {{ .Modified}}
            {{ else if eq .Status -1}}Declined {{ .Modified}}
            {{ else if eq .Status -2}}Withdrawn {{ .Modified}}
            {{ else }}Unknown
            {{ end }}
        </td>
        <td>
            <i><a href="/motions?motion={{ .Tag}}">{{ .Tag}}</a></i><br />
            <b>{{ .Title}}</b><br />
            <pre>{{ wrap 76 .Content }}</pre>
            <br />
            <i>Due: {{.Due}}</i><br/>
            <i>Proposed: {{.Proposer}} ({{.Proposed}})</i><br/>
            <i>Vote type: {{.VoteType}}</i><br/>
            <i>Aye|Naye|Abstain: {{.Ayes}}|{{.Nayes}}|{{.Abstains}}</i><br />
            {{ if .Votes }}
            <i>Votes:</i><br/>
            {{ range .Votes}}
            <i>{{ .Name }}: {{ .Vote}}</i><br />
            {{ end }}
            {{ else}}
            <i><a href="/motions?motion={{.Tag}}&showvotes=1">Show Votes</a></i>
            {{ end }}
        </td>
        <td>
            {{ if eq .Status 0 }}
            <ul>
                <li><a href="/vote/{{ .Tag }}/aye">Aye</a></li>
                <li><a href="/vote/{{ .Tag }}/abstain">Abstain</a></li>
                <li><a href="/vote/{{ .Tag }}/naye">Naye</a></li>
                <li><a href="/proxy/{{ .Tag }}">Proxy Vote</a></li>
                <li><a href="/motion/{{ .Tag }}">Modify</a></li>
                <li><a href="/motions?motion={{ .Tag }}&withdraw=1">Withdraw</a></li>
            </ul>
            {{ end }}
        </td>
    </tr>
    {{end}}
    </tbody>
</table>
{{else}}
<p>There are no motions in the system yet.</p>
{{end}}
</body>
</html>