copy about "following requirements" will now only show if bade.prerequisites is s set

This commit is contained in:
Joe Curlee 2013-05-24 12:52:30 -05:00
Родитель 8f8e231cf3
Коммит 4a94977f22
1 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -82,13 +82,14 @@
<h3 id="myModalLabel">Apply for the {{badge.name}} badge</h3>
</div>
<div class="modal-body">
<h4>In order to earn this badge you need to make sure you have met the following requirements:</h4>
<ul>
{% for req in badge.prerequisites %}
<li>{{req}}</li>
{% endfor %}
</ul>
{% if badge.prerequisites|length > 0 %}
<h4>In order to earn this badge you need to make sure you have met the following requirements:</h4>
<ul>
{% for req in badge.prerequisites %}
<li>{{req}}</li>
{% endfor %}
</ul>
{% endif %}
<h4>Upload photos or videos that show your work</h4>