only show the premiums section if there actually are premiums

pull/1/head
Andromeda Yelton 2012-10-24 11:34:22 -04:00
parent 9eb0323768
commit 4a87253ca7
1 changed files with 32 additions and 30 deletions

View File

@ -407,6 +407,7 @@ $j(document).ready(function(){
</div>
</div>
{% if status == 'ACTIVE' %}
{% if premiums %}
<div class="jsmodule">
<a href="{% url pledge work_id %}"><h3 class="jsmod-title"><span>Premiums</span></h3></a>
<div class="jsmod-content">
@ -437,6 +438,7 @@ $j(document).ready(function(){
</ul>
</div>
</div>
{% endif %}
<div class="jsmodule">
<a href="{% url pledge work_id %}"><h3 class="jsmod-title"><span>Acknowledgements</span></h3></a>
<div class="jsmod-content">