-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3415664 by sime, joshua1234511, richardgaunt, alexskrypnyk, fi…
…onamorrison23: Contextual links are broken (#1311) Co-authored-by: Joshua Fernandes <“[email protected]”> Co-authored-by: richardgaunt <[email protected]> Co-authored-by: Richard Gaunt <[email protected]>
- Loading branch information
1 parent
e4d7c0a
commit 4c4afb9
Showing
3 changed files
with
35 additions
and
13 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
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
28 changes: 28 additions & 0 deletions
28
web/themes/contrib/civictheme/templates/misc/links.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,28 @@ | ||
{# | ||
/** | ||
* @file | ||
* CivicTheme templete override implementation for a set of links. | ||
*/ | ||
#} | ||
{% if links -%} | ||
{%- if heading -%} | ||
{%- if heading.level -%} | ||
<{{ heading.level }}{{ heading.attributes }}>{{ heading.text }}</{{ heading.level }}> | ||
{%- else -%} | ||
<h2{{ heading.attributes }}>{{ heading.text }}</h2> | ||
{%- endif -%} | ||
{%- endif -%} | ||
<ul{{ attributes }} class="{{ modifier_class }}"> | ||
{%- for item in links -%} | ||
<li{{ item.attributes }}> | ||
{%- if item.link -%} | ||
{{ item.link }} | ||
{%- elseif item.text_attributes -%} | ||
<span{{ item.text_attributes }}>{{ item.text }}</span> | ||
{%- else -%} | ||
{{ item.text }} | ||
{%- endif -%} | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
{%- endif %} |