From 6cb4855b9e68a819583c60ccc20c917fc9de4e3f Mon Sep 17 00:00:00 2001 From: Andreas Valder <andreasv@fsmpi.rwth-aachen.de> Date: Thu, 1 Sep 2016 17:38:17 +0200 Subject: [PATCH] made tables responsive --- templates/log.html | 38 ++++++++++++++++++++------------------ templates/schedule.html | 2 +- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/templates/log.html b/templates/log.html index 188c0c0..687c9b3 100644 --- a/templates/log.html +++ b/templates/log.html @@ -6,26 +6,28 @@ <div class="panel-heading"> <h1 class="panel-title">Changelog</h1> </div> - <table class="table"> - <tr> - <th>Zeit</th> - <th>Wer</th> - <th>Pfad</th> - <th>alter Wert</th> - <th>neuer Wert</th> - <th></th> - </tr> - {% for i in changelog %} + <div class="table-responsive"> + <table class="table table-condensed"> <tr> - <td>{{i.when}}</td> - <td>{{i.who}}</td> - <td>{{i.path}}</td> - <td>"{{i.value_old}}"</td> - <td>"{{i.value_new}}"</td> - <td><a class="btn btn-default">undo</button></td> + <th>Zeit</th> + <th>Wer</th> + <th>Pfad</th> + <th>alter Wert</th> + <th>neuer Wert</th> + <th></th> </tr> - {% endfor %} - </table> + {% for i in changelog %} + <tr> + <td>{{i.when}}</td> + <td>{{i.who}}</td> + <td>{{i.path}}</td> + <td>"{{i.value_old}}"</td> + <td>"{{i.value_new}}"</td> + <td><a class="btn btn-default">undo</button></td> + </tr> + {% endfor %} + </table> + </div> </div> </div> {% endblock %} diff --git a/templates/schedule.html b/templates/schedule.html index 2a021eb..45b33f4 100644 --- a/templates/schedule.html +++ b/templates/schedule.html @@ -5,7 +5,7 @@ <div class="panel-heading"> <h1 class="panel-title">Drehplan</h1> </div> - <div class="panel-body row"> + <div class="panel-body row table-responsive"> <table class="table-bordered col-xs-12"> <tr><th></th>{% for d in days if (d.index < 5) or (d.lectures|length) > 0%}<th colspan="{{d.maxcol}}">{{ d.date.strftime("%A (%d.%m.%Y)") }}</th>{% endfor %}</tr> {% for t in times %} -- GitLab