index.html.twig 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends "MuzichMynetworkBundle::layout.html.twig" %}
  2. {% block title %}Mon réseau{% endblock %}
  3. {% block content %}
  4. {% if followeds_users %}
  5. <b>{{ 'users'|trans({}, 'network') }}</b>
  6. <ul id="followeds_users" class="inline">
  7. {% for user in followeds_users %}
  8. <li>
  9. <a href="{{ path('show_user', { 'slug': user.slug }) }}">{{ user.username }}</a>
  10. </li>
  11. {% endfor %}
  12. </ul>
  13. {% endif %}
  14. {% if followeds_groups %}
  15. <b>{{ 'groups'|trans({}, 'network') }}</b>
  16. <ul id="followeds_groups" class="inline">
  17. {% for group in followeds_groups %}
  18. <li>
  19. <a href="{{ path('show_group', { 'slug': group.slug }) }}">{{ group.name }}</a>
  20. </li>
  21. {% endfor %}
  22. </ul>
  23. {% endif %}
  24. {% if followers_users %}
  25. <b>{{ 'followed_by'|trans({}, 'network') }}</b>
  26. <ul id="followers_users" class="inline">
  27. {% for user in followers_users %}
  28. <li {% if user.hasLiveData('new', true) %}class="new"{% endif %}>
  29. <a href="{{ path('show_user', { 'slug': user.slug }) }}">{{ user.username }}</a>
  30. </li>
  31. {% endfor %}
  32. </ul>
  33. {% endif %}
  34. {% if followeds_users|length < 1 %}
  35. {% if followeds_groups|length < 1 %}
  36. {% if followers_users|length < 1 %}
  37. <br />
  38. {{ 'nothing'|trans({}, 'network') }}
  39. <br /><br />
  40. {% endif %}
  41. {% endif %}
  42. {% endif %}
  43. {% endblock %}