Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_fdsu_theme_resp
Commits
44bfa364
Commit
44bfa364
authored
1 year ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6611: adding template for views view unformatted, which adds index to variables
parent
b0d210ef
No related branches found
No related tags found
1 merge request
!114
ISTWCMS-6611: adding template for views view unformatted, which adds index to variables
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/views/views-view-unformatted.html.twig
+40
-0
40 additions, 0 deletions
templates/views/views-view-unformatted.html.twig
with
40 additions
and
0 deletions
templates/views/views-view-unformatted.html.twig
0 → 100644
+
40
−
0
View file @
44bfa364
{#
/**
* @file
* Default theme implementation 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()
*
* @ingroup themeable
*/
#}
{%
if
title
%}
<h3>
{{
title
}}
</h3>
{%
endif
%}
{%
for
row
in
rows
%}
{%
set
row_classes
=
[
default_row_class
?
'views-row'
,
]
%}
{%
set
row
=
row
|
merge
(
{
content
:
row.content
|
merge
(
{
'#uw_index'
:
loop.index
}
)
}
)
%}
<div
{{
row.attributes.addClass
(
row_classes
)
}}
>
{{
-
row.content
-
}}
</div>
{%
endfor
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment