Skip to content

Commit

Permalink
NGSTACK-673: use new syntax in default templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Feb 13, 2024
1 parent 2e28ea3 commit d259d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bundle/Resources/views/default/content/embed_inline.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{# location \Netgen\IbexaSiteApi\API\Values\Location #}

{% if location is defined %}
<a href="{{ ibexa_path(location) }}"{% if class is defined %} class="{{ class }}"{% endif %}>{{ content.name }}</a>
<a href="{{ location.path }}"{% if class is defined %} class="{{ class }}"{% endif %}>{{ content.name }}</a>
{% else %}
<a href="{{ ibexa_path(content) }}"{% if class is defined %} class="{{ class }}"{% endif %}>{{ content.name }}</a>
<a href="{{ content.path }}"{% if class is defined %} class="{{ class }}"{% endif %}>{{ content.name }}</a>
{% endif %}
4 changes: 2 additions & 2 deletions bundle/Resources/views/default/content/line.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{# location \Netgen\IbexaSiteApi\API\Values\Location #}

{% if location is defined %}
<p><a href="{{ ibexa_path(location) }}">{{ content.name }}</a></p>
<p><a href="{{ location.path }}">{{ content.name }}</a></p>
{% else %}
<p><a href="{{ ibexa_path(content) }}">{{ content.name }}</a></p>
<p><a href="{{ content.path }}">{{ content.name }}</a></p>
{% endif %}

0 comments on commit d259d11

Please sign in to comment.