showGroup.html.twig 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends "MuzichHomeBundle::layout.html.twig" %}
  2. {% block title %}{{ group.name }}{% endblock %}
  3. {% block content %}
  4. <span class="follow_link following">
  5. {% if his_group %}
  6. <a href="{{ path('group_edit', { 'slug': group.slug }) }}" >
  7. {{ 'group.edit'|trans({}, 'groups') }}
  8. </a> |
  9. {% endif %}
  10. <a href="{{ path('follow', { 'type': 'group', 'id': group.id, 'token': user.personalHash }) }}"
  11. class="{% if following %}following{% else %}notfollowing{% endif %}">
  12. {% if following %}
  13. {{ 'group.notfollow'|trans({}, 'groups') }}
  14. {% else %}
  15. {{ 'group.follow'|trans({}, 'groups') }}
  16. {% endif %}
  17. </a>
  18. </span>
  19. <h2>{{ group.name }}</h2>
  20. {% if his_group or group.open %}
  21. <div id="element_add_box" style="display: none;">
  22. <a href="#" id="element_add_close_link" class="button">
  23. &lt;&lt; {{ 'group.add_element_box.close'|trans({}, 'navigationui') }}
  24. </a>
  25. <form novalidate name="{{ add_form_name }}" action="{{ path('element_add', {'group_slug' : group.slug}) }}" method="post" {{ form_enctype(add_form) }}>
  26. {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form, 'form_name': add_form_name } %}
  27. <input type="submit" class="button" >
  28. </form>
  29. </div>
  30. <a href="#" id="element_add_link" class="button">
  31. {{ 'group.add_element'|trans({}, 'navigationui') }} &gt;&gt;
  32. </a>
  33. <br />
  34. {% endif %}
  35. {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {'no_group_name' : true} %}
  36. <div class="elements_loader_div">
  37. <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  38. </div>
  39. {% if more_count is defined %}
  40. {% if elements|length %}
  41. <span class="elements_more">
  42. <a href="{{ path('search_elements_show_more_empty', {
  43. 'type' : 'group',
  44. 'object_id': group.id
  45. }) }}" class="elements_more" >
  46. {{ 'more'|trans({}, 'userui') }}
  47. </a>
  48. </span>
  49. {% endif %}
  50. {% endif %}
  51. {% endblock %}