From 75dd322721beb527c776bb668aa10c20fb6a10a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Thu, 7 Jul 2016 16:46:55 +0200 Subject: [PATCH] fixing and improving templates --- proposals/templates/proposals/_talk_list.html | 2 +- .../templates/proposals/talk_detail.html | 2 +- .../templates/proposals/topic_detail.html | 27 ++++++++++++------- proposals/templates/proposals/topic_list.html | 7 ++--- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/proposals/templates/proposals/_talk_list.html b/proposals/templates/proposals/_talk_list.html index ae52a05..f59a9ec 100644 --- a/proposals/templates/proposals/_talk_list.html +++ b/proposals/templates/proposals/_talk_list.html @@ -12,7 +12,7 @@ {% endfor %} in {% for topic in talk.topics.all %} - {{ topic.get_link }} + {{ topic }} {% if forloop.revcounter == 2 %} and {% elif not forloop.last %}, {% endif %} {% endfor %} diff --git a/proposals/templates/proposals/talk_detail.html b/proposals/templates/proposals/talk_detail.html index 4a68710..d2d5fd7 100644 --- a/proposals/templates/proposals/talk_detail.html +++ b/proposals/templates/proposals/talk_detail.html @@ -30,7 +30,7 @@ diff --git a/proposals/templates/proposals/topic_detail.html b/proposals/templates/proposals/topic_detail.html index 54be0ad..d051d83 100644 --- a/proposals/templates/proposals/topic_detail.html +++ b/proposals/templates/proposals/topic_detail.html @@ -14,6 +14,23 @@

{{ topic }}

+{% if request.user.is_superuser %} +edit
+{% endif %} +{{ topic.talks.count }} talk{{ topic.talks.count|pluralize }}
+ +Reviewers: + + {% if request|orga %}
{% csrf_token %} @@ -28,16 +45,6 @@
{% endif %} - {% endblock %} diff --git a/proposals/templates/proposals/topic_list.html b/proposals/templates/proposals/topic_list.html index 96d1da7..514652b 100644 --- a/proposals/templates/proposals/topic_list.html +++ b/proposals/templates/proposals/topic_list.html @@ -11,13 +11,14 @@