Skip to content

Commit

Permalink
add sylius version to the footer in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiudrescu committed Oct 12, 2017
1 parent a04bfe8 commit d0807a9
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{{ app_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 d0807a9

Please sign in to comment.