Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
feat: improve the quality of the link template (#54)
Browse files Browse the repository at this point in the history
This PR removes unnecessary dashes
  • Loading branch information
yhuard authored and emeryro committed Mar 7, 2019
1 parent dc17683 commit 8d2ea6e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/ec/packages/ec-component-link/link.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@
{# Print the result #}

<a href="{{ _link.path }}" class="{{ _css_class }}"{{ _extra_attributes|raw }}>
{%- if _icon.name is not empty -%}
{%- if _link.icon_position == 'before' -%}
{%- include '../ec-component-icon/icon.html.twig' with icon|merge({extra_classes: 'ecl-link__icon'}) -%}
{{- '&nbsp;' -}}
{%- if _icon.name is not empty %}
{% if _link.icon_position == 'before' %}
{% include '../ec-component-icon/icon.html.twig' with icon|merge({extra_classes: 'ecl-link__icon'}) %}
{{- '&nbsp;' }}
{%- endif -%}
<span class="ecl-link__label">{{ _link.label }}</span>
{%- if _link.icon_position == 'after' -%}
{{- '&nbsp;' -}}
{%- include '../ec-component-icon/icon.html.twig' with icon|merge({extra_classes: 'ecl-link__icon'}) -%}
{%- endif -%}
{%- else -%}
{{- _link.label -}}
{%- endif -%}
{%- if _link.icon_position == 'after' %}
{{- '&nbsp;' }}
{%- include '../ec-component-icon/icon.html.twig' with icon|merge({extra_classes: 'ecl-link__icon'}) %}
{% endif %}
{% else %}
{{- _link.label }}
{%- endif %}
</a>

{% endspaceless %}

0 comments on commit 8d2ea6e

Please sign in to comment.