Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
b74b4c65
Commit
b74b4c65
authored
Sep 01, 2016
by
Nicolas Joyard
Browse files
Fix mandates columns on mobile
parent
002ab738
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/representatives/representative_detail_mandates.html
View file @
b74b4c65
...
...
@@ -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 "
Pas
t 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
%}
{% end
i
f %}
{% endfor %}
<div
class=
"col-sm-6 text-center"
>
<h5>
{% trans "
Curren
t 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
%}
{% endf
or
%}
</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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment