Skip to content

Commit

Permalink
fix reading unavaiable and not needed css (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harvel218 authored Jan 14, 2022
1 parent 596021f commit e1c3583
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
8 changes: 0 additions & 8 deletions src/Resources/views/CrudUi/create.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@

{{ sonata_block_render_event(event_prefix ~ '.after_content', {'resource': resource}) }}
{% endblock %}

{% block stylesheets %}
{{ parent() }}

<link rel="stylesheet" href="{{ absolute_url(asset('bundles/bitbagsyliuscmsplugin/css/style.css')) }}">

{{ sonata_block_render_event(event_prefix ~ '.stylesheets') }}
{% endblock %}
8 changes: 0 additions & 8 deletions src/Resources/views/CrudUi/update.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,3 @@

{{ sonata_block_render_event(event_prefix ~ '.after_content', {'resource': resource}) }}
{% endblock %}

{% block stylesheets %}
{{ parent() }}

<link rel="stylesheet" href="{{ asset('bundles/bitbagsyliuscmsplugin/css/style.css') }}">

{{ sonata_block_render_event(event_prefix ~ '.stylesheets') }}
{% endblock %}
13 changes: 0 additions & 13 deletions src/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
{% extends '@SyliusAdmin/layout.html.twig' %}

{% block stylesheets %}
{{ parent() }}

{% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'bundles/bitbagsyliuscmsplugin/css/style.css'} %}
{% endblock %}


{% block javascripts %}
{{ parent() }}

{{ sonata_block_render_event(event_prefix ~ '.javascripts') }}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
}
</style>

{% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'assets/shop/css/style.css'} %}

{{ sonata_block_render_event('sylius.shop.layout.stylesheets') }}
{{ sylius_template_event('sylius.shop.layout.stylesheets') }}
{% endblock %}
Expand Down

0 comments on commit e1c3583

Please sign in to comment.