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

{{_('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')}} {%- endblock %} +
+