X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fsingle_motion.html;h=61611adf1468151d0485800717371d9eb1aaa031;hb=27e9c554929138818e62ae4e624dd3450a84b556;hp=585e1170d79a8a42cf8a4f477c75f0bf3ec1935f;hpb=224b4a836fd7588b653baf91b004a7ae62ec49c9;p=motion.git diff --git a/templates/single_motion.html b/templates/single_motion.html index 585e117..61611ad 100644 --- a/templates/single_motion.html +++ b/templates/single_motion.html @@ -1,35 +1,64 @@ {% extends "base.html" %} {% block title -%} -Motion: {{motion.name}} +{{_('Motion')}}: {{motion.name}} {%- endblock %} {% block body %} {%- include 'motion.html' %} {%- if votes %} -
-
- Motion Votes +
+
+ {{_('Motion Votes')}}
-
+
{%- for row in votes %} -
{{row.email}}: {{row.result}}
+
{{row.email}}: {{row.result}}{%- if row.proxyemail %} : {_('given by')}} {{row.proxyemail}}{%- endif %}
{%- endfor %}
{%- endif %} + {%- if motion.running %} + {%- if may_vote %} -
-{%- for vote in ['yes','no','abstain'] %} - +
+
+

{{_('My vote')}}

+{%- if proxyname %} +{{_('Given by %(pn)s', pn=proxyname[0][0])}} + +{%- endif %} + +{%- for vote in ['yes', 'no', 'abstain'] %} + {%- endfor %} + +{%- for p in proxyvote %} +

{{_('Vote for %(email)s', email=p.email)}}

+{%- if p.owneremail and p.result%} +{{_('Voted by %(email)s', email=p.owneremail)}} {%- endif %} +
+{%- for vote in ['yes', 'no', 'abstain'] %} + +{%- endfor %} +
+{%- endfor %} +{%- endif %} + {%- if may_cancel %}
- - + +
+
+{%- endif %} +{%- if may_finish %} +
+
{%- endif %} {%- endif %} -Back +{{_('Back')}} {%- endblock %} +
+