parent
73b76c5a93
commit
75813e6d20
@ -1,27 +1,49 @@ |
||||
{% for hot_course in hot_courses %} |
||||
{% if hot_course.extra_info.title %} |
||||
<div class="col-md-4"> |
||||
<div class="items-course"> |
||||
<div class="items-course-image"> |
||||
<a href="{{ hot_course.extra_info.course_public_url }}"><img class="img-responsive" src="{{ hot_course.extra_info.course_image_large }}" alt="{{ hot_course.extra_info.title|e }}"/></a> |
||||
</div> |
||||
<div class="items-course-info"> |
||||
<h4 class="title"> |
||||
<a title="{{ hot_course.extra_info.title}}" href="{{ hot_course.extra_info.course_public_url }}">{{ hot_course.extra_info.title}}</a> |
||||
</h4> |
||||
<div class="teachers">{{ hot_course.extra_info.teachers }}</div> |
||||
<div class="ranking"> |
||||
{{ hot_course.extra_info.rating_html }} |
||||
</div> |
||||
<div class="toolbar"> |
||||
<div class="btn-group" role="group"> |
||||
{{ hot_course.extra_info.description_button }} |
||||
{{ hot_course.extra_info.register_button }} |
||||
{{ hot_course.extra_info.unsubscribe_button }} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% for item in hot_courses %} |
||||
{% if item.title %} |
||||
<div class="col-md-4 col-sm-4 col-xs-6"> |
||||
<div class="items"> |
||||
<div class="image"> |
||||
<img src="{{ item.course_image_large }}" class="img-responsive"> |
||||
{% if item.categoryName != '' %} |
||||
<span class="category">{{ item.categoryName }}</span> |
||||
<div class="cribbon"></div> |
||||
{% endif %} |
||||
<div class="black_shadow"> |
||||
<div class="author-card"> |
||||
{% for teacher in item.teachers %} |
||||
{% set counter = counter + 1 %} |
||||
{% if counter <= 3 %} |
||||
<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> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
<div class="description"> |
||||
<h4 class="title"> |
||||
<a title="{{ item.title}}" href="{{ item.course_public_url }}">{{ item.title}}</a> |
||||
</h4> |
||||
<div class="ranking"> |
||||
{{ item.rating_html }} |
||||
</div> |
||||
<div class="toolbar"> |
||||
<div class="btn-group" role="group"> |
||||
{{ item.description_button }} |
||||
{{ item.register_button }} |
||||
{{ item.unsubscribe_button }} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endfor %} |
||||
|
Loading…
Reference in new issue