side.html.twig 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 app.user %}
  10. {% render(controller("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="center">
  23. <a id="know_more" class="helpbox button" href="{{ path('helpbox_bootstrap', {'ressource_id':'know_more'}) }}" title="{{ 'help.know_more'|trans({}, 'navigationui') }}">
  24. {{ 'help.know_more'|trans({}, 'navigationui') }}
  25. </a>
  26. {% if display_launch_demo %}
  27. <a id="launch_tour" class="button" href="#" title="{{ 'help.maunch_tour'|trans({}, 'navigationui') }}">
  28. {{ 'help.launch_tour'|trans({}, 'navigationui') }}
  29. </a>
  30. {% endif %}
  31. </div>
  32. {% endif %}
  33. {% endif %}
  34. <div id="searchbox" class="nicebox">
  35. {% render(controller("MuzichCoreBundle:Search:renderGlobalSearchForm")) %}
  36. </div>
  37. {% include 'MuzichCoreBundle:Layout:social.html.twig' %}
  38. {% if app.user %}
  39. {% render(controller('MuzichCoreBundle:Core:renderSideMenu')) %}
  40. {% endif %}