reversefavs.html.twig 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends 'stdgrid.html.twig' %}
  2. {% block meta %}
  3. {{ parent() }}
  4. {% endblock %}
  5. {% block title %}Welcome!{% endblock %}
  6. {% block stylesheets %}
  7. {{ parent() }}
  8. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public.css') }}"
  9. media="screen and (min-width: 1300px)">
  10. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_mid.css') }}"
  11. media="screen and (max-width: 1300px)">
  12. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_small.css') }}"
  13. media="screen and (max-width: 750px)">
  14. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/simple_stream.css') }}">
  15. {% endblock %}
  16. {% block header %}
  17. {{ parent() }}
  18. {% endblock %}
  19. {% block left %}
  20. {{ parent() }}
  21. {% endblock %}
  22. {% block body %}
  23. <div class="content">
  24. <div class="main">
  25. <div class="simple-stream">
  26. <nav class='main-nav'>
  27. <ul>
  28. <li>
  29. <a href="{{ path('main_public') }}"
  30. class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'><p>Reverse
  31. Favourites</p></a>
  32. </li>
  33. </ul>
  34. </nav>
  35. <div class="notes-wrap">
  36. <div class="timeline">
  37. {% if notes is defined and notes is not empty %}
  38. {% for note in notes %}
  39. {% set id = note.getId() - 1 %}
  40. {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %}
  41. {% endfor %}
  42. {% else %}
  43. <h1>This is {{ user_nickname }}'s reverse favorites stream, but nobody
  44. favored {{ user_nickname }}'s notes yet.</h1>
  45. {% endif %}
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. {% endblock body %}
  52. {% block javascripts %}{% endblock %}