now list of feedbacks and report are viewable only if there are feedbacks submitted.
authornishanth
Wed, 30 Jun 2010 10:29:38 +0530
changeset 71 1279f0094687
parent 70 911a24ae80d6
child 72 665287ab8e3a
now list of feedbacks and report are viewable only if there are feedbacks submitted.
templates/list_feedbacks.html
templates/show_report.html
--- a/templates/list_feedbacks.html	Wed Jun 30 10:24:15 2010 +0530
+++ b/templates/list_feedbacks.html	Wed Jun 30 10:29:38 2010 +0530
@@ -1,5 +1,9 @@
 {% extends "base.html" %}
 {% block content %}
+{% if feeds_list %}
 List of feedbacks submitted for the workshop {{event.title}}<br />
 {{feeds_list|unordered_list}}
+{% else %}
+No user has submitted a feedback yet.
+{% endif %}
 {% endblock %}
--- a/templates/show_report.html	Wed Jun 30 10:24:15 2010 +0530
+++ b/templates/show_report.html	Wed Jun 30 10:29:38 2010 +0530
@@ -1,6 +1,10 @@
 {% extends "base.html" %}
 {% block content %}
+{% if workshop_report %}
 Report of the workshop {{event.title}} conducted from {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}
 <br />
-	{{workshop_report|unordered_list}}
+{{workshop_report|unordered_list}}
+{% else %}
+There are no feedbacks submitted yet.
+{% endif %}
 {% endblock %}