-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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,38 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for a view template to display a list of rows. | ||
* | ||
* Available variables: | ||
* - attributes: HTML attributes for the container. | ||
* - rows: A list of rows for this list. | ||
* - attributes: The row's HTML attributes. | ||
* - content: The row's contents. | ||
* - title: The title of this group of rows. May be empty. | ||
* - list: @todo. | ||
* - type: Starting tag will be either a ul or ol. | ||
* - attributes: HTML attributes for the list element. | ||
* | ||
* @see template_preprocess_views_view_list() | ||
*/ | ||
#} | ||
{% if attributes -%} | ||
<div{{ attributes }}> | ||
{% endif %} | ||
{% if title %} | ||
<h3 class="text-base font-normal uppercase text-ubc-blue-sea">{{ title }}</h3> | ||
{% endif %} | ||
|
||
<{{ list.type }}{{ list.attributes }}> | ||
|
||
{% for row in rows %} | ||
<li{{ row.attributes }}> | ||
{{- row.content -}} | ||
</li> | ||
{% endfor %} | ||
|
||
</{{ list.type }}> | ||
|
||
{% if attributes -%} | ||
</div> | ||
{% endif %} |