1
0
Fork 0
* Add loop check for rows on home page
merge-requests/59/head
Nikos Roussos 2015-09-19 18:16:13 +03:00
parent bb67032fb1
commit 5bfe690cee
2 changed files with 9 additions and 2 deletions

View File

@ -174,7 +174,8 @@ a.satellite-item:hover {
}
.satellite-img-full {
max-width: 245px;
width: 100%;
max-width: 300px;
border-radius: 5px;
}

View File

@ -47,7 +47,7 @@
{% block content %}
<div class="row sats">
{% for sat in satellites %}
<div class="col-md-4 col-sm-6 col-xs-12 satellite-group-item"
<div class="col-md-4 satellite-group-item"
data-selector="{{ sat.name|lower }}{{ sat.norad_cat_id }}{{ sat.names|lower }}">
<a href="{% url 'satellite' norad=sat.norad_cat_id %}" class="satellite-item">
<div class="row">
@ -71,6 +71,12 @@
</div>
</a>
</div>
{% if forloop.counter|divisibleby:3 %}
</div>
{% if not loop.last %}
<div class="row">
{% endif %}
{% endif %}
{% endfor %}
</div>