{% extends "layout/default.html" %}

{% set title = _("Notifications") %}

{% block body %}

<div class="card-panel blue-grey darken-1">
  <h1>{{_('Notifications')}}</h1>

   {% if g.all_notifs == [] %}
     <center><h3>{{_("You do not have notifications")}}</h3></center>
   {% else %}
     <ul class="collection">
     {% for notif in g.all_notifs %}
     <li class="collection-item avatar">
       <i class="large circle fa {{ notif.icon }} {{ notif.icon_color }}"></i>
       <span class="title">{{ notif.title }}</span>
       <p>{{ notif.text }}<br>
       </p>
       <a href="{{ url_for('core.delete_notifications' , id=notif.id) }}" class="secondary-content"><i class="fa fa-times" aria-hidden="true"></i></a>
     </li>
     {% endfor %}
     </ul>
   {% endif %}

</div>

{% endblock %}
