Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Jan 30, 2019
1 parent 30bef37 commit 92412c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% block page_title_admin %}
{% include '@ezdesign/parts/page_title.html.twig' with {
title: 'content_type.view.edit.title'|trans({ '%name%': content_type.name })|desc('Editing Content Type: %name%'),
contentType: content_type.identifier
content_type_identifier: content_type.identifier
} %}
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Resources/views/form_fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="ez-instant-filter__group-item">
{{ form_widget(form[choice.value]) }}
<svg class="ez-icon ez-icon--medium">
<use xlink:href="{{ ez_content_type_icon(choice.value.identifier) }}"></use>
<use xlink:href="{{ ez_content_type_icon(choice.value) }}"></use>
</svg>
</div>
{%- endif -%}
Expand Down
6 changes: 3 additions & 3 deletions src/bundle/Resources/views/parts/page_title.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<svg class="ez-icon ez-icon-{{ iconName }}">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#{{ iconName }}"></use>
</svg>
{% elseif contentType is defined %}
<svg class="ez-icon ez-icon-{{ contentType }}">
<use xlink:href="{{ ez_content_type_icon(contentType.identifier) }}"></use>
{% elseif content_type_identifier is defined %}
<svg class="ez-icon ez-icon-{{ content_type_identifier }}">
<use xlink:href="{{ ez_content_type_icon(content_type_identifier) }}"></use>
</svg>
{% endif %}
{{ title }}
Expand Down

0 comments on commit 92412c2

Please sign in to comment.