X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fmotion.html;h=edc637a28e82d3dee6aa3f4713c690e914c319ff;hb=1653400a1d07f3433e1f8e10f484de9f88593c3f;hp=bcead1fc573ae89ec89326a2b3874b049ef0d9a6;hpb=224b4a836fd7588b653baf91b004a7ae62ec49c9;p=motion.git diff --git a/templates/motion.html b/templates/motion.html index bcead1f..edc637a 100644 --- a/templates/motion.html +++ b/templates/motion.html @@ -1,32 +1,37 @@ -
-
- {{motion.name}} ({{ 'Running' if motion.running else ('Canceled' if motion.canceled != None else 'Finished') }}) +
+
+ {{motion.name}} ({{ _('Running') if motion.running else (_('Canceled') if motion.canceled != None else _('Finished')) }}) {{motion.type}} -
# {{motion.identifier}}
+
# {{motion.identifier}} +{%- if singlemotion == False %} + {{ _('Vote') if motion.running else _('Result') }} +{%- endif %} +
-
Posed: {{motion.posed|timestamp}} by {{motion.poser}}
+
{{_('Proposed')}}: {{_('%(dt)s (UTC) by %(user)s', dt=motion.posed|timestamp, user=motion.poser)}}
{%- if motion.canceled != None %} -
Canceled: {{motion.canceled|timestamp}} by {{motion.canceler}}
+
{{_('Canceled')}}: {{_('%(dt)s (UTC) by %(user)s', dt=motion.canceled|timestamp, user=motion.poser)}}
{%- else %} -
Votes until: {{motion.deadline|timestamp}}
+
{{_('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}}

+

{{_('Cancelation reason')}}: {{motion.cancelation_reason}}

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