<div class="card border border-dark ">
<div class="card-header border-0">
<h3 class="card-title">
<i class="fas fa-bell fa-2x mr-1"></i>
<a href="{% url 'alerts' site=data.site.name %}">Notifications </i></a>
</h3>
<!-- card tools -->
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse">
<i class="fas fa-minus"></i>
</button>
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
</button>
</div>
<!-- /.card-tools -->
</div>
<div class="card-body">
<table id="example1"
class="table table-hover table-bordered table-wrapper-scroll-y my-custom-scrollbar "
cellspacing="0">
<colgroup>
<col span="1" style="width: 25%;">
<col span="1" style="width: 75%;">
</colgroup>
<thead>
<tr class="bg-dark">
<th>Creation date </th>
<th>Message Text</th>
</tr>
</thead>
<tbody id="ravm">
{% for key, value in data.alerts.items%}
<tr>
<td class="text-{{value.severity}}">{{value.timestamp}}</td>
<td class="text-{{value.severity}}">{{value.message_text}}
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr class="bg-dark">
<th>Creation date </th>
<th>Message Text</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.card-body-->
<div class="card-footer bg-transparent">
<!-- /.row -->
</div>
</div>