From f53a6ed7ce84ba602a0deb9531c86f919f2b57cb Mon Sep 17 00:00:00 2001 From: numahell Date: Tue, 18 Oct 2016 23:41:26 +0200 Subject: [PATCH] Improve talk detail display --- .../templates/proposals/talk_detail.html | 76 +++++++++++-------- 1 file changed, 44 insertions(+), 32 deletions(-) diff --git a/proposals/templates/proposals/talk_detail.html b/proposals/templates/proposals/talk_detail.html index 32e9fbc..7635d26 100644 --- a/proposals/templates/proposals/talk_detail.html +++ b/proposals/templates/proposals/talk_detail.html @@ -12,14 +12,47 @@ {% trans "Edit" %}
{% endif %} -

{% trans "Format:" %}

- -

{{ talk.event }}

- -

{% trans "Abstract:" %}

-

{% if talk.abstract %}{{ talk.abstract }}{% else %}{% trans "No abstract provided." %}{% endif %}

+{% if moderate_perm %} + +
+
{% trans "Format:" %}
+
{{ talk.event }}
+
{% trans "Topics:" %}
+ {% for topic in talk.topics.all %} +
{{ topic }}
+ {% if not forloop.last %}, {% endif %} + {% empty %} +
{% trans "No topics." %}
+ {% endfor %} + +
{% trans "Track:" %}
+
{% if talk.track %} + {{ talk.track }} + {% else %} + {% trans "No assigned yet." %} + {% endif %}
+ +
Horaire
+
{% if talk.start_date %} + {{ talk.start_date|date:"l d b" }}, + {{ talk.start_date|date:"H:i" }} – + {{ talk.slot.end|date:"H:i" }} + {% else %}{% trans "not defined" %} + {% endif %} +
+
Salle
+
{% if talk.room %} + {{ talk.room }} + {% else %}{% trans "not defined" %} + {% endif %} +
+ +
+ +{% endif %} +

{% trans "Description:" %}

{% if talk.description %}{{ talk.description|linebreaksbr }}{% else %}{% trans "No description provided." %}{% endif %}

@@ -34,31 +67,18 @@ {% trans "No speakers." %} {% endfor %} -

{% trans "Topics:" %}

- -{% for topic in talk.topics.all %} -{% if forloop.first %}{% endif %} -{% empty %} -{% trans "No topics." %} -{% endfor %} - {% if moderate_perm %} +{% if not talk.track %}

{% trans "Track:" %}

- -{% if talk.track %} -

{{ talk.track }}

-{% else %} -

{% trans "No assigned yet." %}

-{% for topic in talk.topics.distinct %} +

{% trans "No assigned yet." %}

+ {% for topic in talk.topics.distinct %} {% if forloop.first %}

{% endif %} {% if topic.track %} {% trans "Assign to" %} {{ topic.track }} {% endif %} {% if forloop.last %}

{% endif %} -{% endfor %} + {% endfor %} {% endif %} {% endif %} @@ -69,19 +89,11 @@ {% if moderate_perm %} -

{% trans "Informations" %}

- - -

{% trans "Moderation" %}

{% trans "Status:" %}

-{{ talk.accepted|yesno:"Accepted,Declined,Pending decision" }}
+{{ talk.accepted|yesno:"Accepted,Declined,Pending decision" }}
{% if talk.accepted == None %}

{% trans "Vote:" %}