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

Fix mandates columns on mobile

parent 002ab738
......@@ -6,23 +6,28 @@
{% block representative_content %}
<div class="row">
<div class="col-sm-6 text-center"><h5>{% trans "Current mandates" %}</h5></div>
<div class="col-sm-6 text-center"><h5>{% trans "Past mandates" %}</h5></div>
</div>
<div class="row">
<div class="col-sm-6 current-mandates">
{% for mandate in mandates %}
{% if mandate.end_date|mandate_date:'d/m/Y' == 'present' %}
{% include "representatives/_mandate_block.html" with weight_threshold=100 %}
{% endif %}
{% endfor %}
<div class="col-sm-6 text-center">
<h5>{% trans "Current mandates" %}</h5>
<div class="col-sm-12 current-mandates">
{% for mandate in mandates %}
{% if mandate.end_date|mandate_date:'d/m/Y' == 'present' %}
{% include "representatives/_mandate_block.html" with weight_threshold=100 %}
{% endif %}
{% endfor %}
</div>
</div>
<div class="col-sm-6 past-mandates" >
{% for mandate in mandates %}
{% if mandate.end_date|mandate_date:'d/m/Y' != 'present' %}
{% include "representatives/_mandate_block.html" with weight_threshold=0 %}
{% endif %}
{% endfor %}
<div class="col-sm-6 text-center">
<h5>{% trans "Past mandates" %}</h5>
<div class="col-sm-12 past-mandates" >
{% for mandate in mandates %}
{% if mandate.end_date|mandate_date:'d/m/Y' != 'present' %}
{% include "representatives/_mandate_block.html" with weight_threshold=0 %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
......
Markdown is supported
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