prelom/django/templates/issues.html

40 lines
1.1 KiB
HTML

{% extends 'base.html' %}
{% block image %}{{ issue.image.url }}{% endblock %}
{% block twittercard %}summary{% endblock %}
{% block title %}{{ issue.name }}{% endblock %}
{% block description %}{{ issue.description }}{% endblock %}
{% block date %}{{ issue.get_date|date:"Y-m-d" }}{% endblock %}
{% block content %}
<div class="page-content">
<div class="ui container"><br><br>
{% if request.user.is_staff %}
<div class="ui center aligned basic segment">
<a href="{% url 'admin:journal_issue_changelist' %}"
class="ui blue icon button">
<i class="edit icon"></i>
Edit in admin
</a>
</div>
{% endif %}
<br />
<br />
<div class="ui stackable two column grid">
<div class="column">
{% for issue in object_list %}
<div class="row">
{% include 'issue_thumb.html' with issue=issue only %}
</div>
{% endfor %}
</div>
<div class="column right aligned">
{% include 'ads.html' %}
</div>
</div>
</div>
</div>
{% endblock %}