2014-12-29 22:08:56 +00:00
|
|
|
{% extends "base.html" %}
|
2017-08-14 20:18:28 +00:00
|
|
|
|
2014-12-29 22:08:56 +00:00
|
|
|
{% block content_title %}{% endblock %}
|
2017-08-14 20:18:28 +00:00
|
|
|
|
|
|
|
{% block header_extra %}
|
2017-08-17 16:25:45 +00:00
|
|
|
{% if MG_LANG_FILTER_TAGS or MG_FILTER_TAGS %}
|
|
|
|
<ul class="mg-tag-filters">
|
2017-08-14 23:39:41 +00:00
|
|
|
{% if MG_LANG_FILTER_TAGS %}
|
2017-08-17 16:25:45 +00:00
|
|
|
<li><button class="mg-tag-filter" onclick='toggleLangTagFilter.bind(this)({{ MG_LANG_FILTER_TAGS|tojson }})'>lang</button></li>
|
2017-08-14 23:39:41 +00:00
|
|
|
{% endif %}
|
2017-08-14 20:18:28 +00:00
|
|
|
{% if MG_FILTER_TAGS %}
|
|
|
|
{% for filter_tag in MG_FILTER_TAGS %}
|
2017-08-17 16:25:45 +00:00
|
|
|
<li><button class="mg-tag-filter" onclick="toggleTagFilter.bind(this)('{{ filter_tag }}')">{{ filter_tag.replace('lang:', '') }}</button></li>
|
2017-08-14 20:18:28 +00:00
|
|
|
{% endfor %}
|
2017-08-17 16:25:45 +00:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2017-08-14 20:18:28 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-12-29 22:08:56 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="uk-width-medium-4-5">
|
|
|
|
|
|
|
|
{% if articles %}
|
2017-08-17 16:25:45 +00:00
|
|
|
<ul class="mg-articles">
|
2015-11-07 19:22:59 +00:00
|
|
|
{% for article in (articles_page.object_list if articles_page else articles) %}
|
2017-08-17 16:25:45 +00:00
|
|
|
<li>
|
2017-08-14 20:18:28 +00:00
|
|
|
{% if not MG_NO_EXCERPT and loop.index == 1 %}
|
2017-08-09 00:11:13 +00:00
|
|
|
{% include "partials/article-excerpt.html" %}
|
2015-01-01 20:06:34 +00:00
|
|
|
{% else %}
|
2017-08-09 00:11:13 +00:00
|
|
|
{% include "partials/article-short.html" %}
|
2015-01-01 20:06:34 +00:00
|
|
|
{% endif %}
|
2017-08-17 16:25:45 +00:00
|
|
|
</li>
|
2014-12-29 22:08:56 +00:00
|
|
|
{% endfor %}
|
2017-08-17 16:25:45 +00:00
|
|
|
</ul>
|
2015-01-01 20:06:34 +00:00
|
|
|
{% if DEFAULT_PAGINATION and articles_paginator.num_pages > 1 %}
|
|
|
|
<ul class="uk-pagination">
|
|
|
|
{% if articles_previous_page %}<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}"><i class="uk-icon-angle-double-left"></i></a></li>{% endif %}
|
|
|
|
{% if articles_previous_page %}<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">{{ articles_previous_page.number }}</a></li>{% endif %}
|
|
|
|
<li class="uk-active"><span>{{ articles_page.number }}</span></li>
|
|
|
|
{% if articles_next_page %}<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}"><i class="uk-icon-angle-double-right"></i></a></li>{% endif %}
|
|
|
|
{% if articles_next_page %}<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">{{ articles_next_page.number }}</a></li>{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2014-12-29 22:08:56 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|