fix temporary solution student view of course tools - refs #2681

pull/2715/head
Alex Aragón 7 years ago
parent d9c519def7
commit c27cca249d
  1. 27
      main/template/default/course_home/activity.html.twig

@ -1,3 +1,4 @@
{% if app.user.status != 5 %}
<div class="accordion course-accordion" id="course-tools">
{% for block in blocks %}
<div class="card">
@ -47,4 +48,28 @@
</div>
</div>
{% endfor %}
</div>
</div>
{% else %}
<div class="row">
{% for block in blocks %}
{% if 'homepage_view'|api_get_setting == 'activity_big' %}
{% for item in block.content %}
<div class="col-6 col-md-2 ">
<div class="tools mt-3 mb-3 p-2">
<div class="big_icon">
{{ item.tool.image|raw }}
</div>
<div class="content pt-2 pb-2">
{{ item.extra|raw }}
{{ item.link|raw }}
<div class="view">
{{ item.visibility|raw }}
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
Loading…
Cancel
Save