-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from localgovdrupal/1.x
adds service catalogue view template
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...unformatted--irish-service-landing-page-items--irish-service-landing-page-items.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |