Fixed layout on contest:index page

This commit is contained in:
Sebastian Lohff 2017-02-01 18:29:19 +01:00
parent bf685e392c
commit de2a8ebb12
1 changed files with 65 additions and 59 deletions

View File

@ -4,9 +4,9 @@
<h2>Welcome, {{ user }}</h2>
<div class="row">
<div class="col-sm-6">
{% if user.ref %}
{# user has a reference, we can start logging QSOs! #}
<div class="row">
{% if user.ref %}
{# user has a reference, we can start logging QSOs! #}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-success">
<div class="panel-heading">Ready for the contest!</div>
@ -18,9 +18,9 @@
</div>
</div>
</div>
</div>
{% else %}
<div class="row">
</div>
{% else %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-danger">
<div class="panel-heading">You don't have an exchange</div>
@ -37,11 +37,11 @@
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
{% if not user.cat %}
<div class="row">
{% if not user.cat %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-warning">
<div class="panel-heading">You don't have a category!</div>
@ -52,11 +52,11 @@
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
{% if user.is_staff %}
<div class="row">
{% if user.is_staff %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">You are staff!</div>
@ -65,15 +65,21 @@
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
</div>
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12">
{% include "contest/contestPanel.html" with contest=contest %}
</div>
<div class="col-sm-6">
<div class="col-sm-12">
{% include "contest/qrgPanel.html" with contest=contest qrgs=qrgs %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}