myblog/myapp/templates/zinnia/_entry_detail_base.html
{% load comments i18n zinnia %}
<section>
<div class="content">
<div id="entry-{{ object.pk }}" class="hentry{% if object.featured %} featured{% endif %}">
<div class="pure-g">
{% if object.image and continue_reading %}
<div class="pure-u-1 pure-u-lg-1-6">
{% block entry-image %}
<div class="entry-image">
<p>
{% if continue_reading %}<a href="{{ object.get_absolute_url }}" title="{{ object.title }}" rel="bookmark">{% endif %}
<img src="{{ object.image.url }}" alt="{{ object.title }}" class="left th" width="95%"/>
{% if continue_reading %}</a>{% endif %}
</p>
</div>
{% endblock entry-image %}
</div>
{% endif %}
<div class="pure-u-1 pure-u-lg-{% if continue_reading %}5-6{% else %}1{% endif %}">
{% block entry-header %}
<div class="entry-header">
{% if not continue_reading and object.image %}<img class="entry-image" src="{{ object.image.url }}" alt="{{ object.title }}" align="right"/>{% endif %}
{% block entry-title %}
<h1 class="entry-title"><a href="{{ object.get_absolute_url }}" title="{{ object.title }}" rel="bookmark">{{ object.title|widont }}</a></h1>
{% endblock entry-title %}
{% block entry-info %}
<p class="entry-details">
{% block entry-published %}
{% trans "Published" %}
<abbr class="published" title="{{ object.creation_date|date:"c" }}">{{ object.creation_date|date:"DATE_FORMAT" }}</abbr>
{% endblock entry-published %}
{% block entry-categories %}
{% with categories=object.categories.all %}
{% if categories|length %}{% trans "in" %}
{% for category in categories %}
<a href="{{ category.get_absolute_url }}"
title="{% blocktrans %}Show all entries in {{ category }}{% endblocktrans %}"
rel="tag category">{{ category }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% endblock entry-categories %}
{% endblock entry-info %}
-
{% block entry-last-update %}
{% trans "Last update on" %} <abbr class="updated" title="{{ object.last_update|date:"c" }}">{{ object.last_update|date:"DATE_FORMAT" }}</abbr>.
</p>
{% endblock entry-last-update %}
</div>
{% endblock entry-header %}
{% block entry-body %}
<div class="entry-body panel">
{% block entry-content %}
<div class="entry-content">{{ object_content|safe }}</div>
{% endblock entry-content %}
{% block continue-reading %}
{% if continue_reading and object_content.has_more %}
<p class="continue-reading">
<a href="{{ object.get_absolute_url }}"
title="{% blocktrans with object=object.title percent=object_content.remaining_percent|floatformat:0 %}{{ percent }}% of {{ object }} still remains to read.{% endblocktrans %}"
rel="bookmark"
class="button secondary tiny">
{% trans "Continue reading" %}
</a>
</p>
{% endif %}
{% endblock continue-reading %}
</div>
{% endblock entry-body %}
{% block entry-footer %}
<div class="entry-footer">
{% block entry-tags %}
<i class="fi-price-tag"></i>
<strong>{% trans "Tags" %}</strong> :
{% for tag in object.tags_list %}
<span class="label">
<a href="{% url 'zinnia:tag_detail' tag %}"
title="{% blocktrans %}Show all entries tagged by {{ tag }}{% endblocktrans %}"
rel="tag"
style="color: #fff">{{ tag }}</a>
</span>
{% empty %}
<span>{% trans "No tags" %}</span>
{% endfor %}
{% endblock entry-tags %}
{% block entry-discussions %}
<br/>
<i class="fi-comments"></i>
<strong>{% trans "Discussions" %}</strong> :
{% block entry-comments %}
{% with comment_count=object.comment_count %}
{% if comment_count %}
<a href="{{ object.get_absolute_url }}#comments"
title="{% blocktrans with object=object.title %}Comments on {{ object }}{% endblocktrans %}">
{% blocktrans count comment_count=comment_count %}{{ comment_count }} comment{% plural %}{{ comment_count }} comments{% endblocktrans %}
</a>
{% else %}
{% if object.comments_are_open %}
{% trans "No comments yet." %}
<a href="{{ object.get_absolute_url }}#comment-form"
title="{% blocktrans with object=object.title %}Leave a comment on {{ object }}{% endblocktrans %}">
{% trans "Be first to comment!" %}
</a>
{% else %}
{% trans "Comments are closed." %}
{% endif %}
{% endif %}
{% endwith %}
{% endblock entry-comments %}
{% block entry-pingbacks %}
{% endblock entry-pingbacks %}
{% block entry-trackbacks %}
{% endblock entry-trackbacks %}
{% endblock entry-discussions %}
</div>
{% endblock entry-footer %}
</div>
</div>
</div>
</section>