Move our rows wrapper to view-unformatted template which is also called
This commit is contained in:
parent
2df41eb12b
commit
0ececda133
2 changed files with 38 additions and 3 deletions
|
@ -51,9 +51,8 @@
|
|||
{{ exposed }}
|
||||
{{ attachment_before }}
|
||||
|
||||
<div class="media-list">
|
||||
{{ rows }}
|
||||
</div>
|
||||
{{ rows }}
|
||||
|
||||
{{ empty }}
|
||||
{{ pager }}
|
||||
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation for an unformatted view display.
|
||||
*
|
||||
* If the display is configured to use Display Suite's alternating view modes,
|
||||
* column classes are added appropriate to the view modes.
|
||||
*
|
||||
* @see http://bulma.io/documentation/columns/basics
|
||||
*
|
||||
* Available variables:
|
||||
* - title: The title of this group of rows. May be empty.
|
||||
* - rows: A list of the view's row items.
|
||||
* - attributes: The row's HTML attributes.
|
||||
* - content: The row's content.
|
||||
* - view: The view object.
|
||||
* - default_row_class: A flag indicating whether default classes should be
|
||||
* used on rows.
|
||||
*
|
||||
* @see template_preprocess_views_view_unformatted()
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{#
|
||||
View rows can be configured to have default classes per view mode. A child
|
||||
template may define view_modes, which will be merged with the
|
||||
default_view_modes below.
|
||||
#}
|
||||
<div class="media-list">
|
||||
{% if title %}
|
||||
<h3{{ title_attributes }}>{{ title }}</h3>
|
||||
{% endif %}
|
||||
{% for row in rows %}
|
||||
{{ row.content }}
|
||||
{% endfor %}
|
||||
</div>
|
Loading…
Reference in a new issue