From ee6fd8f24aabe00e28a3a9607f88461ecbc28d78 Mon Sep 17 00:00:00 2001 From: Nabil Date: Mon, 14 Aug 2017 14:36:17 +0200 Subject: [PATCH] postcard changes --- ablog/templates/postcard2.html | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/ablog/templates/postcard2.html b/ablog/templates/postcard2.html index 84993d4..683d1dd 100644 --- a/ablog/templates/postcard2.html +++ b/ablog/templates/postcard2.html @@ -1,55 +1,54 @@ {% if post.published and post.date != post.update %} -
  • {% if fa %}{% else %}{{ gettext('Update') }}:{% endif %} - {{ post.update.strftime(gettext(ablog.post_date_format)) }}
  • + {% if fa %}{% else %}{{ gettext('Update') }}:{% endif %} + {{ post.update.strftime(gettext(ablog.post_date_format)) }}
    {% endif %} {% if post.author %} -
  • {% if fa %}{% else %}{{ gettext('Author') }}:{% endif %} + {% if fa %}{% else %}{{ gettext('Author') }}:{% endif %} {% for coll in post.author %} {% if coll|length %} {{ coll }}{% if loop.index < post.author|length %},{% endif %} {% else %}{{ coll }}{% if loop.index < post.author|length %},{% endif %}{% endif %} - {% endfor %}
  • + {% endfor %}
    {% endif %} {% if post.location %} -
  • {% if fa %}{% else %}{{ gettext('Location') }}:{% endif %} + {% if fa %}{% else %}{{ gettext('Location') }}:{% endif %} {% for coll in post.location %} {% if coll|length %} {{ coll }}{% if loop.index < post.location|length %},{% endif %} {% else %}{{ coll }}{% if loop.index < post.location|length %},{% endif %}{% endif %} - {% endfor %}
  • + {% endfor %}
    {% endif %} {% if post.language %} -
  • {% if fa %}{% else %}{{ gettext('Language') }}:{% endif %} - {% for coll in post.language %} + {% if fa %}{% else %}{{ gettext('Language') }}:{% endif %} + {% for coll in post.language %} {% if coll|length %} {{ coll }}{% if loop.index < post.language|length %},{% endif %} {% else %}{{ coll }}{% if loop.index < post.language|length %},{% endif %}{% endif %} - {% endfor %}
  • + {% endfor %}
    {% endif %} {% if post.category %} -
  • {% if fa %}{% else %}{{ gettext('Category') }}:{% endif %} + {% if fa %}{% else %}{{ gettext('Category') }}:{% endif %} {% for coll in post.category %} {% if coll|length %} {{ coll }}{% if loop.index < post.category|length %},{% endif %} {% else %}{{ coll }}{% if loop.index < post.category|length %},{% endif %}{% endif %} - {% endfor %}
  • + {% endfor %}
    {% endif %} {% if post.tags %} -
  • {% if post.tags|length > 1 %}{% if fa %}{% else %}{{ gettext('Tags') }}:{% endif %} + {% if post.tags|length > 1 %}{% if fa %}{% else %}{{ gettext('Tags') }}:{% endif %} {% else %}{% if fa %}{% else %}{{ gettext('Tag') }}:{% endif %}{% endif %} {% for coll in post.tags %} {% if coll|length %} {{ coll }}{% if loop.index < post.tags|length %}{% endif %} {% else %}{{ coll }}{% if loop.index < post.tags|length %}{% endif %}{% endif %} - {% endfor %}
  • + {% endfor %}
    {% endif %} {% if ablog.disqus_shortname and (ablog[pagename].published or ablog.disqus_drafts) %} -
  • {% if fa %}{% endif %} {% if not fa %}comment(s){% endif %} -
  • {% endif %}