You are here

opigno-notifications-header-dropdown.html.twig in Opigno notifications 3.x

Default theme implementation to display the notifications dropdown block.

Available variables:

  • notifications: the list of notifiations (ILT + LM + standard ones);
  • notifications_count: the amount of unread notifications.

File

templates/opigno-notifications-header-dropdown.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the notifications dropdown block.
  5. *
  6. * Available variables:
  7. * - notifications: the list of notifiations (ILT + LM + standard ones);
  8. * - notifications_count: the amount of unread notifications.
  9. */
  10. #}
  11. <div class="notifications-block">
  12. {% if notifications_count != 0 %}
  13. <a class="all-read use-ajax" href="{{ path('opigno_notification.mark_read_all') }}">
  14. {{ 'mark all as read'|t }}
  15. </a>
  16. {% endif %}
  17. {% if notifications is not empty %}
  18. <ul class="notification-list">
  19. {% for notification in notifications %}
  20. <li class="notification-item">{{ notification }}</li>
  21. {% endfor %}
  22. </ul>
  23. {% endif %}
  24. <div class="view-notifications">
  25. <a class="btn btn-rounded" href="{{ path('view.opigno_notifications.page_all') }}">
  26. {{ 'view all notifications'|t }}
  27. </a>
  28. </div>
  29. </div>