side.html.twig 1.4KB

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