Commit 7c731e2c authored by Daniel W Bond's avatar Daniel W Bond

removed if block with loop.counter to break rows-- moved to CSS instead

parent ed901a91
......@@ -45,24 +45,22 @@
<div class="col-sm-10 col-sm-offset-1">
{% for letter in majors_by_letter %}
<legend><a name="{{ letter.grouper }}" href="#{{ letter.grouper }}">{{ letter.grouper }}</a></legend>
<div class="row">
{% for major in letter.list %}
<div class="major-row">
<div class="row">
{% for major in letter.list %}
<div class="col-md-6 minor-padding text-center">
<a href="{{ major.get_absolute_url }}" class="btn btn-primary btn-lg btn-block">
<a href="{{ major.get_absolute_url }}" class="btn btn-primary btn-block btn-lg">
{% if major.name|length > 39 %}
<small>{{ major.name }}</small></a>
<small>{{ major.name }}</small>
{% else %}
{{ major.name }}
{% endif %}
</a>
</div>
{% if forloop.counter|divisibleby:2 %}
</div>
<div class="row">
{% endif %}
{% endfor %}
</div>
<br />
{% endfor %}
</div>
</div>
<br />
{% empty %}
No majors in the database. :'-(
{% endfor %}
......
......@@ -148,6 +148,11 @@ outline-offset: none;
clear: both;
}}
@media (min-width: 992px) {
.major-row > .row > .col-md-6:nth-child(2n+1) {
clear: both;
}}
.wordwrap {
word-wrap: break-word;
}
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