Commit b74b4c65 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Fix mandates columns on mobile

parent 002ab738
...@@ -6,18 +6,22 @@ ...@@ -6,18 +6,22 @@
{% block representative_content %} {% block representative_content %}
<div class="row"> <div class="row">
<div class="col-sm-6 text-center"><h5>{% trans "Current mandates" %}</h5></div> <div class="col-sm-6 text-center">
<div class="col-sm-6 text-center"><h5>{% trans "Past mandates" %}</h5></div> <h5>{% trans "Current mandates" %}</h5>
</div>
<div class="row"> <div class="col-sm-12 current-mandates">
<div class="col-sm-6 current-mandates">
{% for mandate in mandates %} {% for mandate in mandates %}
{% if mandate.end_date|mandate_date:'d/m/Y' == 'present' %} {% if mandate.end_date|mandate_date:'d/m/Y' == 'present' %}
{% include "representatives/_mandate_block.html" with weight_threshold=100 %} {% include "representatives/_mandate_block.html" with weight_threshold=100 %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
<div class="col-sm-6 past-mandates" > </div>
<div class="col-sm-6 text-center">
<h5>{% trans "Past mandates" %}</h5>
<div class="col-sm-12 past-mandates" >
{% for mandate in mandates %} {% for mandate in mandates %}
{% if mandate.end_date|mandate_date:'d/m/Y' != 'present' %} {% if mandate.end_date|mandate_date:'d/m/Y' != 'present' %}
{% include "representatives/_mandate_block.html" with weight_threshold=0 %} {% include "representatives/_mandate_block.html" with weight_threshold=0 %}
...@@ -25,5 +29,6 @@ ...@@ -25,5 +29,6 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment