From bb4e215e32f5e784f5f7d5b803392af8f692629e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 7 Oct 2016 16:33:59 +0200 Subject: [PATCH] Fix external projet display (fix #245), fix more date display --- app/templates/agenda/includes/event_date.html | 4 ++-- app/templates/projects/project_detail.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/agenda/includes/event_date.html b/app/templates/agenda/includes/event_date.html index c34460f5..ed5824c8 100644 --- a/app/templates/agenda/includes/event_date.html +++ b/app/templates/agenda/includes/event_date.html @@ -27,7 +27,7 @@ {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} {{ period.date_from|date:"H\hi" }} - {{ period.date_to|date:"H\hi" }}
{% else %} - {% if forloop.last %} {% trans "and"%} {% elif not forloop.first %}, {% endif %} + {% if forloop.last or event.periods.all|length == 2 %} {% trans "and"%} {% elif not forloop.first %}, {% endif %} {{ period.date_from|date:"H\hi" }} {% endif %} {% endfor %} @@ -42,7 +42,7 @@ {{ period.date_from|date:"j F" }} {% trans "from" %} {{ period.date_from|date:"H\hi" }} {% trans "to" %} {{ period.date_to|date:"H\hi" }}
{% else %} {% if event.periods.all|length > 1 and not forloop.last %} - {{ period.date_from|date:"j" }}, + {{ period.date_from|date:"j" }}{% if event.periods.all|length == 2 %} {% trans "and" %} {% else %}, {% endif %} {% else %} {{ period.date_from|date:"j F" }} {% if event.periods.all|length > 1 and forloop.first %} {% trans "and" %}{% endif %} diff --git a/app/templates/projects/project_detail.html b/app/templates/projects/project_detail.html index 2c9d607d..e48e389e 100644 --- a/app/templates/projects/project_detail.html +++ b/app/templates/projects/project_detail.html @@ -116,7 +116,7 @@ {% block page_sub_content %} - {% if project.type == 'external project' %} + {% if project.type == 'external' %}
-- 2.39.5