зеркало из https://github.com/mozilla/CSOL-site.git
split asm content into two columns
This commit is contained in:
Родитель
0f5597d5cc
Коммит
36a7c9cbd1
|
@ -4451,6 +4451,7 @@ module.exports = function (app) {
|
|||
]
|
||||
res.render('landing/after-school-matters.html', {
|
||||
orgs: orgs,
|
||||
split_column_number:Math.ceil(orgs.length / 2)
|
||||
});
|
||||
});
|
||||
};
|
|
@ -7,8 +7,12 @@
|
|||
<p><a href="http://www.afterschoolmatters.org/about">After School Matters®</a> is a non-profit organization that offers Chicago high school teens innovative out-of-school activities through Science, Sports, Tech, Words and nationally recognized Gallery programs.</p>
|
||||
<p>Check out the variety of programs offered by After School Matters as part of the Chicago Summer of Learning below. You can contact 312-742-4182 to learn more and enroll in programs that excite you.</p>
|
||||
</div>
|
||||
<ul class="orgs unstyled">
|
||||
<div class="row">
|
||||
{% for org in orgs %}
|
||||
{% if loop.index == 1 or loop.index == split_column_number %}
|
||||
<div class="span6">
|
||||
<ul class="orgs unstyled">
|
||||
{% endif %}
|
||||
{% if org.region != 'Cancelled' %}
|
||||
<li>
|
||||
<h4>
|
||||
|
@ -30,6 +34,12 @@
|
|||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if loop.index == (split_column_number - 1) %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Загрузка…
Ссылка в новой задаче