12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- {% extends "MuzichCoreBundle::layout.html.twig" %}
-
- {% block title %}Recherche{% endblock %}
-
- {% block main_content %}
-
- {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': null} %}
-
- <div id="results_search_form">
- {% include "MuzichCoreBundle:GlobalSearch:form.html.twig" with {'form': form } %}
- </div>
-
- {% if results.users|length or results.groups|length or results.elements|length %}
-
- {% if results.users %}
-
- <b>{{ 'search.users'|trans({}, 'network') }}</b>
-
- <ul id="search_users" class="inline">
- {% for user in results.users %}
- <li>
- <a href="{{ path('show_user', { 'slug': user.slug }) }}">{{ user.username }}</a>
- </li>
- {% endfor %}
- </ul>
-
- {% endif %}
-
- {% if results.groups %}
-
- <b>{{ 'search.groups'|trans({}, 'network') }}</b>
-
- <ul id="search_groups" class="inline">
- {% for group in results.groups %}
- <li>
- <a href="{{ path('show_group', { 'slug': group.slug }) }}">{{ group.name }}</a>
- </li>
- {% endfor %}
- </ul>
-
- {% endif %}
-
- {% if results.elements %}
-
- {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
- 'noelements_filter' : true,
- 'elements' : results.elements
- }%}
-
- {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
- 'display_more_button' : display_more_button,
- 'elements_length' : results.elements|length,
- 'more_path' : 'global_search_elements_empty'
- }%}
-
- {% endif %}
-
- {% elseif app.request.getMethod == 'POST' %}
- <p>
- {{ 'global_search.no_results'|trans({}, 'userui') }}
- </p>
- {% endif %}
-
- {% endblock %}
|