[chronojump-server] Fixed the problem in stations list template when there are not stations
- From: Marcos Venteo Garcia <mventeo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Fixed the problem in stations list template when there are not stations
- Date: Sun, 25 Jun 2017 22:45:27 +0000 (UTC)
commit 28503ad1e357f336e850c9ec86b0132c449a6a5b
Author: Marcos Venteo <mventeo gmail com>
Date: Mon Jun 26 00:45:01 2017 +0200
Fixed the problem in stations list template when there are not stations
chronojumpserver/templates/station_list.html | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/chronojumpserver/templates/station_list.html b/chronojumpserver/templates/station_list.html
index 9b6afb6..8defb85 100644
--- a/chronojumpserver/templates/station_list.html
+++ b/chronojumpserver/templates/station_list.html
@@ -21,6 +21,7 @@
</div>
<div class="col-sm-8">
+ {% if stations|length > 0 %}
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Detall de l'EstaciĆ³ <span
id="stationName">{{stations[0].name}}</span></h2>
@@ -47,6 +48,7 @@
<table id="exercises" class="table table-hovered">
</table>
</div>
+ {% endif %}
</div>
</div>
{% endblock %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]