Permalink
Browse files

Better handling of case where no readings have been appended in info.…

…html.
  • Loading branch information...
1 parent f455c36 commit 597f12d9cbd655bf99b74390d3b5dc67a0971242 @alexsdutton alexsdutton committed Jan 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 openorg_timeseries/templates/timeseries/info.html
@@ -51,7 +51,7 @@
<dt>Interval between readings</dt>
<dd>{{ series.info.interval|prettify_seconds }}</dd>
<dt>Last reading</dt>
- <dd>{{ series.info.updated }} ({{ series.info.updated|timesince }} ago)</dd>
+ <dd>{% if series.info.updated %}{{ series.info.updated }} ({{ series.info.updated|timesince }} ago){% else %}no readings yet{% endif %}</dd>
</dl>

0 comments on commit 597f12d

Please sign in to comment.