X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fmotion.html;h=edc637a28e82d3dee6aa3f4713c690e914c319ff;hb=f3cf764d5e9ab3f2fa1327dc5db02de90fd91434;hp=2f0d6b7769f7352d3219305ad0250517a2f4c1e8;hpb=931ab6bf330e83ac72e3114af5909f05b396b17a;p=motion.git
diff --git a/templates/motion.html b/templates/motion.html
index 2f0d6b7..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}}
-
+
-
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 %}