Skip to content

Commit

Permalink
Merge pull request #8680 from gabiudrescu/fix_8679
Browse files Browse the repository at this point in the history
add sylius version to the footer in admin
  • Loading branch information
lchrusciel committed Oct 16, 2017
2 parents e7ef720 + fe3326c commit 9cae3f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
{{ sonata_block_render_event('sylius.admin.layout.sidebar_down') }}
{% endblock %}

{% block footer %}
{{ 'sylius.ui.powered_by'|trans }} <a href="http://sylius.org" target="_blank">Sylius</a>.
{% block post_content %}
<div class="ui divider"></div>
{{ 'sylius.ui.powered_by'|trans }} <a href="http://sylius.org" target="_blank">Sylius v{{ sylius_meta.version }}</a>
{% endblock %}

{% block javascripts %}
Expand Down
2 changes: 2 additions & 0 deletions src/Sylius/Bundle/CoreBundle/Resources/config/app/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ twig:
exception_controller: "FOS\\RestBundle\\Controller\\ExceptionController::showAction"
globals:
sylius: "@sylius.context.shopper"
sylius_meta:
version: !php/const:Sylius\Bundle\CoreBundle\Application\Kernel::VERSION

sonata_block:
blocks:
Expand Down

0 comments on commit 9cae3f2

Please sign in to comment.