Show Subscribe button depending the number of courses - refs BT#9893 #TMI

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent c8c6034aa7
commit 454443d86e
  1. 17
      main/template/default/session/about.tpl

@ -56,7 +56,7 @@
</div>
{% endif %}
{% if not is_subscribed %}
{% if courses|length == 1 and not is_subscribed %}
<div class="subscribe">
<a href="#" class="btn btn-success btn-lg btn-block"><i class="fa fa-book"></i> {{ "Subscribe"|get_lang }}</a>
</div>
@ -142,6 +142,19 @@
</div>
</div>
</div>
{% if courses|length == 1 and not is_subscribed %}
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="text-center">
<a href="#" class="btn btn-success btn-lg btn-block"><i class="fa fa-book"></i> {{ "Subscribe"|get_lang }}</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% if courses|length > 1 and not is_subscribed %}
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="text-center">
@ -149,5 +162,5 @@
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>

Loading…
Cancel
Save