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
fc53b50f
Commit
fc53b50f
authored
9 months ago
by
Eric Bremner
Committed by
Kevin Paxman
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6859: add template for all events block
parent
cd051d4e
No related branches found
No related tags found
1 merge request
!129
ISTWCMS-6859: add templates for other event views
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/views/views-view-unformatted--uw-view-events--event-block-all.html.twig
+49
-0
49 additions, 0 deletions
...ew-unformatted--uw-view-events--event-block-all.html.twig
with
49 additions
and
0 deletions
templates/views/views-view-unformatted--uw-view-events--event-block-all.html.twig
0 → 100644
+
49
−
0
View file @
fc53b50f
{%
if
node_data
%}
{%
set
new_node_data
=
[]
%}
{%
for
nd
in
node_data
%}
{%
set
new_node_data
=
new_node_data
|
merge
([
nd
|
merge
(
{
'#uw_index'
:
loop.index
,
'#uw_row_count'
:
rows
|
length
}
)
])
%}
{%
endfor
%}
{%
for
data
in
new_node_data
%}
<div
class=
"views-row"
>
{%
include
'@components/card/card--teaser/_card--teaser.twig'
with
{
'teaser'
:
data
,
}
%}
</div>
{%
endfor
%}
{%
else
%}
{%
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
,
'#uw_row_count'
:
rows
|
length
}
)
}
)
%}
<div
{{
row.attributes.addClass
(
row_classes
)
}}
>
{{
-
row.content
-
}}
</div>
{%
endfor
%}
{%
endif
%}
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