forked from rc/aircox
update
This commit is contained in:
38
aircox/templates/aircox/page_item.html
Normal file
38
aircox/templates/aircox/page_item.html
Normal file
@ -0,0 +1,38 @@
|
||||
{% load i18n easy_thumbnails_tags aircox %}
|
||||
{% comment %}
|
||||
Context variables:
|
||||
- object: the actual diffusion
|
||||
- show_headline: if True, display headline
|
||||
{% endcomment %}
|
||||
|
||||
<article class="media">
|
||||
<div class="media-left">
|
||||
<img src="{% thumbnail object.cover 128x128 crop=scale %}"
|
||||
class="small-cover">
|
||||
</div>
|
||||
<div class="media-content">
|
||||
<h5 class="title is-5 has-text-weight-normal">
|
||||
{% block title %}
|
||||
{% if object.is_published %}
|
||||
<a href="{{ object.get_absolute_url }}">{{ object.title }}</a>
|
||||
{% else %}
|
||||
{{ object.title }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</h5>
|
||||
<div class="subtitle is-6 has-text-weight-light">
|
||||
{% block subtitle %}
|
||||
{% if object.category %}{{ object.category.title }}{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% if show_headline %}
|
||||
<div class="">
|
||||
{% block headline %}
|
||||
{{ object.headline|safe }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
|
Reference in New Issue
Block a user