The modified attribute no longer has a default value.

This allows for templates using {% if article.modified %}
instead of {% if article.modified != article.published %} .
This commit is contained in:
Florian Jacob 2013-11-17 23:40:11 +01:00
commit bd9d1b9539
54 changed files with 115 additions and 251 deletions

View file

@ -2,7 +2,7 @@
<abbr class="published" title="{{ article.date.isoformat() }}">
Published: {{ article.locale_date }}
</abbr>
{% if article.modified != article.date %}
{% if article.modified %}
<br />
<abbr class="modified" title="{{ article.modified.isoformat() }}">
Updated: {{ article.locale_modified }}

View file

@ -28,7 +28,7 @@
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</abbr>
{% if article.modified != article.date %}
{% if article.modified %}
<abbr class="modified" title="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</abbr>

View file

@ -6,7 +6,10 @@
{{ translations.translations_for(page) }}
{{ page.content }}
<p>
Last updated: {{ page.locale_modified }}
</p>
{% if page.modified %}
<p>
Last updated: {{ page.locale_modified }}
</p>
{% endif %}
{% endblock %}