Don't show requirement as completed when user not logged - refs BT#9889 #TMI

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 2ddd9791dd
commit 850fdcf8b8
  1. 17
      main/template/default/sequence_resource/session_requirements.tpl

@ -9,13 +9,16 @@
<div class="big-icon">
<img src="{{ 'item-sequence.png'|icon(48) }}" width="48" height="48">
<p class="sequence-course">{{ session.name }}</p>
<span class="label {{ session.status ? 'label-success' : 'label-danger' }}">
{% if session.status %}
<i class="fa fa-check"></i> {{ 'Complete'|get_lang }}
{% else %}
<i class="fa fa-exclamation-triangle"></i> {{ 'Incomplete'|get_lang }}
{% endif %}
</span>
{% if _u.logged %}
<span class="label {{ session.status ? 'label-success' : 'label-danger' }}">
{% if session.status %}
<i class="fa fa-check"></i> {{ 'Complete'|get_lang }}
{% else %}
<i class="fa fa-exclamation-triangle"></i> {{ 'Incomplete'|get_lang }}
{% endif %}
</span>
{% endif %}
</div>
</div>

Loading…
Cancel
Save