X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fmotion.html;h=edc637a28e82d3dee6aa3f4713c690e914c319ff;hb=7f7b44cb967ae9b99ddcbf3879c92d448570d49c;hp=687d2a30505a1250c5819ad4c1ac59c297232c6d;hpb=2f6d14ef5785b7c7bb67b57ed9253b080ebf2f72;p=motion.git diff --git a/templates/motion.html b/templates/motion.html index 687d2a3..edc637a 100644 --- a/templates/motion.html +++ b/templates/motion.html @@ -1,17 +1,37 @@ -
-
- # - {{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}} +{%- if singlemotion == False %} + {{ _('Vote') if motion.running else _('Result') }} +{%- endif %} +
+
+
{{_('Proposed')}}: {{_('%(dt)s (UTC) by %(user)s', dt=motion.posed|timestamp, user=motion.poser)}}
+{%- if motion.canceled != None %} +
{{_('Canceled')}}: {{_('%(dt)s (UTC) by %(user)s', dt=motion.canceled|timestamp, user=motion.poser)}}
+{%- else %} +
{{_('Votes until')}}: {{_('%(dt)s (UTC)', dt=motion.deadline|timestamp)}}
+{%- 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 %}