41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
<!-- Nav tabs -->
|
|
<ul class="nav nav-tabs" style="width:100%" id="log_tab" role="tablist">
|
|
{% for tab in tabs %}
|
|
<li class="nav-item">
|
|
<a class="nav-link {{ tab.tab_active }}" id="log-{{ tab.id }}-tab" data-toggle="tab" href="#log-{{ tab.id }}" role="tab" aria-controls="log-{{ tab.id }}" aria-selected="{% if tab.tab_active %}true{% else %}false{% endif %}">{{ tab.label }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<div class="tab-content">
|
|
{% for tab in tabs %}
|
|
<div class="tab-pane {{ tab.tab_active }}" id="log-{{ tab.id }}" role="tabpanel" aria-labelledby="log-{{ tab.id }}-tab">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">{{ label_server }}</th>
|
|
<th scope="col">{{ label_message }}</th>
|
|
<th scope="col">{{ label_date }}</th>
|
|
{% if tab.has_users %}<th scope="col">{{ label_users }}</th>{% endif %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for entry in tab.entries %}
|
|
<tr>
|
|
<th scope="row"><i class="fas fa-{{ entry.type_icon }}" title="{{ entry.type_title }}"></i> {{ entry.server }} {{ entry.ip }}</th>
|
|
<td>{{ entry.message|raw }}</td>
|
|
<td>{{ entry.datetime_format }}</td>
|
|
{% if tab.has_users %}<td>{{ entry.user_list|raw }}</td>{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% if tab.no_logs %}
|
|
<tr>
|
|
<td colspan="4" class="cell-center">{{ label_no_logs }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div> |