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

Fix mandates columns on mobile

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