side.html.twig 1.5KB

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