Skip to content
Snippets Groups Projects
Commit 49426a64 authored by Ivica Puljic's avatar Ivica Puljic Committed by Ivica Puljic
Browse files

Issue #3373097 by pivica: More blocks in base views template for easier override

parent 9a2ff67c
No related branches found
No related tags found
No related merge requests found
......@@ -43,50 +43,64 @@
%}
{% block view %}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if title %}
{{ title }}
{% endif %}
{{ title_suffix }}
{% block title %}
{{ title_prefix }}
{% if title %}
{{ title }}
{% endif %}
{{ title_suffix }}
{% endblock %}
{% if header %}
<header class="views__header">
{{ header }}
</header>
{% block header %}
<header class="views__header">
{{ header }}
</header>
{% endblock %}
{% endif %}
{{ exposed }}
{% if attachment_before %}
<div class="views__attachment">
{{ attachment_before }}
</div>
{% block attachment_before %}
<div class="views__attachment">
{{ attachment_before }}
</div>
{% endblock %}
{% endif %}
<div class="views__content">
{% if rows %}
{{ rows }}
{% elseif empty %}
{{ empty }}
{% block content %}
<div class="views__content">
{% if rows %}
{{ rows }}
{% elseif empty %}
{{ empty }}
{% endif %}
</div>
{% if pager %}
{% set pager = pager|merge({'#attributes': {'class': ['views__pager']}}) %}
{{ pager }}
{% endif %}
</div>
{% if pager %}
{% set pager = pager|merge({'#attributes': {'class': ['views__pager']}}) %}
{{ pager }}
{% endif %}
{% endblock %}
{% if attachment_after %}
<div class="views__attachment">
{{ attachment_after }}
</div>
{% block attachment_after %}
<div class="views__attachment">
{{ attachment_after }}
</div>
{% endblock %}
{% endif %}
{% if more %}
{{ more }}
{% endif %}
{% if footer %}
<footer class="views__footer">
{{ footer }}
</footer>
{% block footer %}
<footer class="views__footer">
{{ footer }}
</footer>
{% endblock %}
{% endif %}
{% if feed_icons %}
<div class="views__feed">
{{ feed_icons }}
</div>
{% block feed_icons %}
<div class="views__feed">
{{ feed_icons }}
</div>
{% endblock %}
{% endif %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment