diff --git a/wcivf/apps/elections/templates/elections/election_view.html b/wcivf/apps/elections/templates/elections/election_view.html index f88e7cd96..ecf442b2b 100644 --- a/wcivf/apps/elections/templates/elections/election_view.html +++ b/wcivf/apps/elections/templates/elections/election_view.html @@ -5,9 +5,9 @@ {% block page_title %}{{ object.name }}{% endblock page_title %} {% block og_title_content %}{{ object.name }}{% endblock og_title_content %} {% block og_description_content %} - {% blocktrans trimmed with was_or_will_be=object.in_past|yesno:"was, will be" election=object.name date=object.election_date %}The {{ election }} {{ was_or_will_be }} held on {{ date }}.{% endblocktrans %}{% endblock og_description_content %} + {% blocktrans trimmed with was_or_will_be=object.in_past|yesno:"was, will be" election=object.name date=object.election_date|date:"j M Y" %}The {{ election }} {{ was_or_will_be }} held on {{ date }}.{% endblocktrans %}{% endblock og_description_content %} {% block twitter_title_content %}{{ object.name }}{% endblock twitter_title_content %}> -{% block twitter_description_content %}{% blocktrans trimmed with was_or_will_be=object.in_past|yesno:"was, will be" election=object.name date=object.election_date %}The {{ election }} {{ was_or_will_be }} held on {{ date }}.{% endblocktrans %}{% endblock twitter_description_content %}/> +{% block twitter_description_content %}{% blocktrans trimmed with was_or_will_be=object.in_past|yesno:"was, will be" election=object.name date=object.election_date|date:"j M Y" %}The {{ election }} {{ was_or_will_be }} held on {{ date }}.{% endblocktrans %}{% endblock twitter_description_content %}/> {% block content %} diff --git a/wcivf/apps/elections/templates/elections/includes/_election_list.html b/wcivf/apps/elections/templates/elections/includes/_election_list.html index ee02c559d..3a30a8044 100644 --- a/wcivf/apps/elections/templates/elections/includes/_election_list.html +++ b/wcivf/apps/elections/templates/elections/includes/_election_list.html @@ -1,8 +1,10 @@ {% load i18n %} + {% regroup elections by election_date as elections_by_type %} {% for election_group in elections_by_type %}
- {% blocktrans trimmed with registration_deadline=postelection.registration_deadline election_date=postelection.election.election_date%} + {% blocktrans trimmed with registration_deadline=postelection.registration_deadline election_date=postelection.election.election_date|date:"j M Y" %} Register before midnight on {{ registration_deadline }} to vote on {{ election_date }}. {% endblocktrans %}