Commit 486cfd77 authored by Matthieu Gautier's avatar Matthieu Gautier

Merge branch 'news++' into 'master'

News++

Closes #24

See merge request !24
parents 99d14b8e d313f37c
......@@ -5,8 +5,7 @@
{% block twothird %}
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
<h5><a href="{% url 'blog:index' %}">&lt; {% trans 'View all posts' %}</a></h5>
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
<h2><span class="theme create">{% trans 'Blog' %}</span> {{ content }}</h2>
<h2>{{ content }}</h2>
<h5>{{ content.published_at|date:"SHORT_DATE_FORMAT" }} ⚫ {{ content.author }}</h5>
<div class="text">{{ content.text|safe }}</div>
{% endblock twothird %}
......
{% extends 'two-third-third.html' %}
{% load i18n ideascube_tags %}
{% block twothird %}
{% block blog_title %}
<h2>
<a href="{% url 'blog:index' %}" class="theme create">
{% trans "News" %}
</a>
</h2>
{% endblock blog_title %}
{% for content in content_list %}
{% include 'blog/content_card.html' %}
<hr />
{% endfor %}
{% include "ideascube/pagination.html" %}
{% endblock twothird %}
{% block third %}
{% if user.is_staff %}
<div class="card tinted admin">
{% fa 'plus' 'fa-fw' %} <a href="{% url 'blog:content_create' %}">{% trans "Add news" %}</a>
</div>
{% endif %}
{% url 'blog:index' as index %}
{% include 'search/filter_cloud.html' %}
{% include 'search/box.html' with action=index %}
{% include 'search/order_by.html' %}
{% include 'search/filter_by_lang.html' %}
{% include 'ideascube/includes/tag_cloud.html' with url="blog:index" tags=available_tags %}
{% endblock third %}
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