Commit ac0c8bd3 authored by Matthieu Gautier's avatar Matthieu Gautier

Do some cosmetic on news from the radio

Related #34
parent 0ca8a4ba
......@@ -14,3 +14,7 @@
border: 2px solid #b9b9b9;
background-color: #eee;
}
.card.blog > .summary {
font-style: italic;
}
{% load i18n ideascube_tags %}
<a class="card blog" href="{% url 'blog:content_detail' pk=content.pk %}">
<h3>{{ content }}</h3>
<h5>
{% trans "draft" as draft %}
{% if content.status == content.DRAFT %}
<span class="draft">{% fa 'edit' 'fa-fw' %}{{ draft }}</span>
{% endif %}
{{ content.published_at|date:"SHORT_DATE_FORMAT" }} ⚫ {{ content.author }}
</h5>
<div class="summary">
{% if content.image %}
<img src="{% media content 'image' %}">
{% endif %}
{% if content.summary %}
{{ content.summary|safe }}
{% else %}
{{ content.text|summarize_html:300|safe }}
{% endif %}
</div>
</a>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment