|
@@ -48,28 +48,52 @@
|
|
|
</h4>
|
|
|
</div>
|
|
|
<div class="block-author">
|
|
|
- {% for teacher in item.teachers %}
|
|
|
- {% if item.teachers | length > 2 %}
|
|
|
- <a href="{{ teacher.url }}" class="ajax"
|
|
|
- data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
- <img src="{{ teacher.avatar }}"/>
|
|
|
- </a>
|
|
|
- {% else %}
|
|
|
- <a href="{{ teacher.url }}" class="ajax"
|
|
|
- data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
- <img src="{{ teacher.avatar }}"/>
|
|
|
- </a>
|
|
|
- <div class="teachers-details">
|
|
|
- <h5>
|
|
|
- <a href="{{ teacher.url }}" class="ajax"
|
|
|
- data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
- {{ teacher.firstname }} {{ teacher.lastname }}
|
|
|
- </a>
|
|
|
- </h5>
|
|
|
- <p>{{ 'Teacher' | get_lang }}</p>
|
|
|
+ {% if item.teachers | length > 6 %}
|
|
|
+ <a id="plist" data-trigger="focus" tabindex="0" role="button" class="btn btn-default panel_popover" data-toggle="popover" title="{{ 'CourseTeachers' | get_lang }}" data-html="true">
|
|
|
+ <i class="fa fa-graduation-cap" aria-hidden="true"></i>
|
|
|
+ </a>
|
|
|
+ <div id="popover-content-plist" class="hide">
|
|
|
+ {% for teacher in item.teachers %}
|
|
|
+ <div class="popover-teacher">
|
|
|
+ <a href="{{ teacher.url }}" class="ajax"
|
|
|
+ data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
+ <img src="{{ teacher.avatar }}"/>
|
|
|
+ </a>
|
|
|
+ <div class="teachers-details">
|
|
|
+ <h5>
|
|
|
+ <a href="{{ teacher.url }}" class="ajax"
|
|
|
+ data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
+ {{ teacher.firstname }} {{ teacher.lastname }}
|
|
|
+ </a>
|
|
|
+ </h5>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- {% endif %}
|
|
|
- {% endfor %}
|
|
|
+ {% endfor %}
|
|
|
+ </div>
|
|
|
+ {% else %}
|
|
|
+ {% for teacher in item.teachers %}
|
|
|
+ {% if item.teachers | length <= 2 %}
|
|
|
+ <a href="{{ teacher.url }}" class="ajax"
|
|
|
+ data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
+ <img src="{{ teacher.avatar }}"/>
|
|
|
+ </a>
|
|
|
+ <div class="teachers-details">
|
|
|
+ <h5>
|
|
|
+ <a href="{{ teacher.url }}" class="ajax"
|
|
|
+ data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
+ {{ teacher.firstname }} {{ teacher.lastname }}
|
|
|
+ </a>
|
|
|
+ </h5>
|
|
|
+ <p>{{ 'Teacher' | get_lang }}</p>
|
|
|
+ </div>
|
|
|
+ {% elseif item.teachers | length <= 6 %}
|
|
|
+ <a href="{{ teacher.url }}" class="ajax"
|
|
|
+ data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
|
+ <img src="{{ teacher.avatar }}"/>
|
|
|
+ </a>
|
|
|
+ {% endif %}
|
|
|
+ {% endfor %}
|
|
|
+ {% endif %}
|
|
|
</div>
|
|
|
{% if item.notifications %}
|
|
|
<div class="notifications">{{ item.notifications }}</div>
|