X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fmotion.html;h=edc637a28e82d3dee6aa3f4713c690e914c319ff;hb=1653400a1d07f3433e1f8e10f484de9f88593c3f;hp=a363c0e75ef433ede3469058369d949995595b50;hpb=c889a7fbfefd94479ee09b224b3274d05145a1dc;p=motion.git diff --git a/templates/motion.html b/templates/motion.html index a363c0e..edc637a 100644 --- a/templates/motion.html +++ b/templates/motion.html @@ -5,32 +5,33 @@ {%- elif motion.yes is defined %}{% if motion.yes != None and motion.no != None and motion.yes > motion.no %} alert-success{% else %} alert-danger{% endif %} {%- else %} bg-light{%- endif -%} "> - {{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}} {%- if singlemotion == False %} - {{ 'Vote' if motion.running else 'Result' }} + {{ _('Vote') if motion.running else _('Result') }} {%- endif %}
-
Proposed: {{motion.posed|timestamp}} (UTC) 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}} (UTC) by {{motion.canceler}}
+
{{_('Canceled')}}: {{_('%(dt)s (UTC) by %(user)s', dt=motion.canceled|timestamp, user=motion.poser)}}
{%- else %} -
Votes until: {{motion.deadline|timestamp}} (UTC)
+
{{_('Votes until')}}: {{_('%(dt)s (UTC)', dt=motion.deadline|timestamp)}}
{%- endif %} +

{{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 %}