# HG changeset patch # User nishanth # Date 1277873978 -19800 # Node ID 1279f00946877ffd6634cc4d30f2be42bf134c7b # Parent 911a24ae80d62970413bde8458e8f726f6aeccb4 now list of feedbacks and report are viewable only if there are feedbacks submitted. diff -r 911a24ae80d6 -r 1279f0094687 templates/list_feedbacks.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}}
{{feeds_list|unordered_list}} +{% else %} +No user has submitted a feedback yet. +{% endif %} {% endblock %} diff -r 911a24ae80d6 -r 1279f0094687 templates/show_report.html --- 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"}}
- {{workshop_report|unordered_list}} +{{workshop_report|unordered_list}} +{% else %} +There are no feedbacks submitted yet. +{% endif %} {% endblock %}