Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some tweets have no date?

  • Loading branch information...
commit 5cbc57339adb7169587ddcc5ae77b36becd570f7 1 parent 6d3fedc
@mitsuhiko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  flask_website/templates/_twitter.html
View
2  flask_website/templates/_twitter.html
@@ -5,7 +5,7 @@
<li>
<a href="http://twitter.com/{{ tweet.user }}">{{ tweet.user }}</a>:
{{ tweet.text|urlize }}
- <span class=meta>&mdash; {{ tweet.pub_date|timedeltaformat }} ago via {{ tweet.via }}</span>
+ <span class=meta>&mdash; {% if tweet.pub_date %}{{ tweet.pub_date|timedeltaformat }} ago {% endif %}via {{ tweet.via }}</span>
{%- endfor %}
</ul>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.