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
95c784e9
Commit
95c784e9
authored
3 years ago
by
Eric Bremner
Committed by
Kevin Paxman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5413: adding template for bibcite reference table
parent
4dc10d52
No related branches found
No related tags found
1 merge request
!71
ISTWCMS-5413: adding template for bibcite reference table
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/reference/bibcite-reference--table.html.twig
+48
-0
48 additions, 0 deletions
templates/reference/bibcite-reference--table.html.twig
with
48 additions
and
0 deletions
templates/reference/bibcite-reference--table.html.twig
0 → 100644
+
48
−
0
View file @
95c784e9
{#
/**
* @file bibcite-reference-table.html.twig
* Theme implementation to present Reference data in table.
*
* Available variables:
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
* - content: All reference items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use
* {{ content|without('field_example') }} to temporarily suppress the printing
* of a given child element.
* - attributes: HTML attributes for the container element.
* - bibcite_reference: The bibcite_reference entity with limited access to object properties and methods.
* - view_mode: View mode; for example, "teaser" or "full".
* - rows: Data rows.
*
* @see template_preprocess_bibcite_reference_table()
*
* @ingroup themeable
*/
#}
{%
set
url
=
url
(
'entity.bibcite_reference.canonical'
,
{
'bibcite_reference'
:
1
}
)
%}
<div
{{
attributes
}}
>
{{
title_prefix
}}
{{
title_suffix
}}
<table>
{%
if
rows
%}
<tbody>
<tr
{{
row.attributes.addClass
(
row_classes
)
}}
>
<th
scope=
"row"
>
Title
</th>
<td><a
href=
"
{{
url
[
'#markup'
]
}}
"
>
{{
bibcite_reference.title.value
}}
</a></td>
</tr>
{%
for
row
in
rows
%}
{%
set
row_classes
=
[
not
no_striping
?
cycle
([
'odd'
,
'even'
],
loop.index0
),
]
%}
<tr
{{
row.attributes.addClass
(
row_classes
)
}}
>
<th
scope=
"row"
>
{{
-
row.title
-
}}
</th>
<td>
{{
-
row.element
-
}}
</td>
</tr>
{%
endfor
%}
</tbody>
{%
endif
%}
</table>
</div>
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