Better base template

This commit is contained in:
Sebastian Lohff 2017-01-22 22:55:35 +01:00
parent d995feaad2
commit 3dd9930d0f
1 changed files with 5 additions and 50 deletions

View File

@ -1,59 +1,14 @@
{% extends "base.html" %}
{% block content %}
<h2>Welcome!</h2>
<div class="row">
<div class="col-sm-12">
I have {{ call_count }} callsigns in my Database!
</div>
</div>
<div class="row">
<div class="col-sm-6">
Calldatabase event log
<table class="table table-inverse">
<thead class="thead-inverse">
<tr>
<th>Date</th>
<th>Type</th>
<th>Callsign</th>
<th>Event</th>
</tr>
</thead>
<tbody>
{% for log in call_log %}
<tr>
<td>{{ log.log_time }}</td>
<td>{{ log.getTopic }}</td>
<td>{{ log.callsign|default:"-" }}</td>
<td>{{ log.text }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="col-sm-6">
<div class="panel panel-default">
Databas source versions
<table class="table table-inverse">
<thead class="thead-inverse">
<tr>
<th>Date</th>
<th>Source</th>
<th>Version</th>
</tr>
</thead>
<tbody>
{% for log in call_import %}
<tr>
<td>{{ log.last_version_time }}</td>
<td>{{ log.datasource }}</td>
<td>{{ log.version }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="panel-heading">Header</div>
<div class="panel-body">
Body
</div>
</div>
</div>
</div>
{% endblock %}