diff piecrust/admin/templates/list_source.html @ 886:dcdec4b951a1

admin: Get the admin panel working again.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 20 Jun 2017 21:13:08 -0700
parents 5e91bc0e3b4d
children dff873f11541
line wrap: on
line diff
--- a/piecrust/admin/templates/list_source.html	Tue Jun 20 21:12:35 2017 -0700
+++ b/piecrust/admin/templates/list_source.html	Tue Jun 20 21:13:08 2017 -0700
@@ -14,7 +14,12 @@
     <tbody>
         {% for p in pages %}
         <tr>
-            <td><time class="timeago" datetime="{{p.timestamp|iso8601}}">{{p.timestamp|datetime}}</time></td>
+            <td>{% if p.timestamp > 0 %}
+                <time class="timeago" datetime="{{p.timestamp|iso8601}}">{{p.timestamp|datetime}}</time>
+                {% else %}
+                <em>no date/time</em>
+                {% endif %}
+            </td>
             <td><a href="{{p.url}}">{{p.title}}</a></td>
             <td>{{p.author}}</td>
             <td>{{p.category}}</td>