Author: sevein
Date: Wed Dec  1 13:03:48 2010
New Revision: 43

Log:
Print site title/description if it is not emtpy.

Modified:
   trunk/templates/report.html

Modified: trunk/templates/report.html
==============================================================================
--- trunk/templates/report.html Wed Dec  1 12:55:46 2010        (r42)
+++ trunk/templates/report.html Wed Dec  1 13:03:48 2010        (r43)
@@ -57,8 +57,12 @@
         <tr class="{% cycle 'odd' 'even' %}">
           <td class="date"><abbr title="{{ item.created_at|pretty_date }} ({{ 
item.created_at|time:"H:i:s" }})">{{ item.created_at|date:"SHORT_DATE_FORMAT" 
}}</abbr></td>
           <td>
-            <p class="site_title">{{ item.site_title }}</p>
-            <p class="site_description">{{ item.site_description }}</p>
+            {% if item.site_title %}
+              <p class="site_title">{{ item.site_title }}</p>
+            {% endif %}
+            {% if item.site_description %}
+              <p class="site_description">{{ item.site_description }}</p>
+            {% endif %}
           </td>
           <td>{{ item.get_full_version }}</td>
           <td><abbr title="{{ item.address }}">{{ item.get_hostname 
}}</abbr></td>

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to