2015-03-03 09:34:09 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Logs" %}{% endblock %}
|
|
|
|
{% block content %}
|
2019-07-31 08:03:48 +00:00
|
|
|
<!-- Page Heading -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<h1 class="page-header">{% trans "Logs" %}</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
2015-03-03 09:34:09 +00:00
|
|
|
|
2019-07-31 08:03:48 +00:00
|
|
|
{% include 'errors_block.html' %}
|
2015-03-03 09:34:09 +00:00
|
|
|
|
2019-07-31 08:03:48 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
{% if not logs %}
|
2015-03-16 14:51:51 +00:00
|
|
|
<div class="col-lg-12">
|
2019-07-31 08:03:48 +00:00
|
|
|
<div class="alert alert-warning alert-dismissable">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
|
|
<i class="fa fa-exclamation-triangle"></i> <strong>{% trans "Warning" %}:</strong> {% trans "You don't have any Logs" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% include "paging.html" %}
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>{% trans "Date" %}</th>
|
|
|
|
<th>{% trans "User" %}</th>
|
|
|
|
<th>{% trans "Instance" %}</th>
|
|
|
|
<th>{% trans "Message" %}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for log in logs %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ log.id }}</td>
|
|
|
|
<td style="width:130px;">{{ log.date|date:"M d H:i:s" }}</td>
|
|
|
|
<td>{{ log.user }}</td>
|
|
|
|
<td>{{ log.instance }}</td>
|
|
|
|
<td>{{ log.message }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-03-16 14:51:51 +00:00
|
|
|
</div>
|
2019-07-31 08:03:48 +00:00
|
|
|
{% include "paging.html" %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-23 09:38:33 +00:00
|
|
|
{% endblock %}
|