X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fmotion.html;h=9e7f2a8904779bbcae93e3979ab73ae18ef2bb89;hb=987c5c0e05127d16c13a8539c9770af679a1d859;hp=687d2a30505a1250c5819ad4c1ac59c297232c6d;hpb=2f6d14ef5785b7c7bb67b57ed9253b080ebf2f72;p=motion.git diff --git a/templates/motion.html b/templates/motion.html index 687d2a3..9e7f2a8 100644 --- a/templates/motion.html +++ b/templates/motion.html @@ -1,17 +1,32 @@ -
-
- # - {{motion.name}} ({{ 'Running' if motion.running else 'Finished' }}) -
Posed: {{motion.posed}}
Votes until: {{motion.deadline}}
+
+
+ {{motion.name}} ({{ 'Running' if motion.running else ('Canceled' if motion.canceled != None else 'Finished') }}) + {{motion.type}} +
# {{motion.identifier}}
+
+
Proposed: {{motion.posed|timestamp}} (UTC) by {{motion.poser}}
+{%- if motion.canceled != None %} +
Canceled: {{motion.canceled|timestamp}} (UTC) by {{motion.canceler}}
+{%- else %} +
Votes until: {{motion.deadline|timestamp}} (UTC)
+{%- endif %}
-
-

{{motion.content}}

+
+

{{motion.content|markdown}}

{%- if motion.yes or motion.no or motion.abstain %}

{%- for vote in ['yes', 'no', 'abstain'] %} -{{vote|capitalize}} {{motion[vote]}}
+{{vote|capitalize}} {{motion[vote]}}
{%- endfor %}

+{%- endif %} +{%- if motion.canceled != None %} +

Cancelation reason: {{motion.cancelation_reason}}

{%- endif %}
{%- block content %}{% endblock %}