{% 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> </div> {% endblock %}