Skip to content

Commit

Permalink
Merge pull request #224 from localgovdrupal/1.x
Browse files Browse the repository at this point in the history
adds service catalogue view template
  • Loading branch information
markconroy authored Jun 27, 2022
2 parents 77df1b9 + 99a0661 commit 5525dc1
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{#
/**
* @file
* Theme override to display a view of unformatted rows.
*
* 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()
*/
#}

{% if title %}
<h3>{{ title }}</h3>
{% endif %}

<div class="lgd-row">
{% for row in rows %}
{%
set row_classes = [
default_row_class ? 'views-row',
]
%}
<div{{ row.attributes.addClass(row_classes) }}>
{{- row.content -}}
</div>
{% endfor %}
</div>

0 comments on commit 5525dc1

Please sign in to comment.