side.html.twig 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% if app.user %}
  2. <div id="user_statusbox" class="nicebox">
  3. {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  4. {% render "MuzichUserBundle:Event:infoBar" %}
  5. {% endif %}
  6. </div>
  7. {% if not app.user.PasswordSet and not app.request.get('open') == 'change_password' %}
  8. <div class="nicebox choose_password flashing">
  9. <a href="{{ path('my_account', {'open':'change_password'}) }}">
  10. {{ 'my_account.choose_password'|trans({}, 'userui') }}
  11. </a>
  12. </div>
  13. {% endif %}
  14. {% else %}
  15. <div class="side_margin_top"></div>
  16. <div class="center">
  17. <a id="know_more" class="helpbox button" href="{{ path('helpbox_bootstrap', {'ressource_id':'know_more'}) }}" title="{{ 'help.know_more'|trans({}, 'navigationui') }}">
  18. {{ 'help.know_more'|trans({}, 'navigationui') }}
  19. </a>
  20. <a id="launch_tour" class="button" href="#" title="{{ 'help.maunch_tour'|trans({}, 'navigationui') }}">
  21. {{ 'help.launch_tour'|trans({}, 'navigationui') }}
  22. </a>
  23. </div>
  24. {% endif %}
  25. <div id="searchbox" class="nicebox">
  26. {% render "MuzichCoreBundle:Search:renderGlobalSearchForm" %}
  27. </div>
  28. {% include 'MuzichCoreBundle:Layout:social.html.twig' %}
  29. {% if app.user %}
  30. {% render 'MuzichCoreBundle:Core:renderSideMenu' %}
  31. {% endif %}