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