forked from openfun/richie-site-factory
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π(edulib) remove footer of program glimpse
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
sites/funmooc/src/backend/templates/courses/cms/fragment_program_glimpse.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% load i18n cms_tags extra_tags thumbnail %} | ||
{% comment %}Obviously, the context template variable "program" is required and must be a Program page extension{% endcomment %} | ||
{% with program_page=program.extended_object %} | ||
<a href="{{ program.extended_object.get_absolute_url }}" class="program-glimpse program-glimpse--link {% if program.extended_object.publisher_is_draft %}program-glimpse--draft{% endif %}" > | ||
<div class="program-glimpse__media"> | ||
{% get_page_plugins "program_cover" program_page as plugins or %} | ||
<div class="program-glimpse__empty">{% trans 'Cover' %}</div> | ||
{% endget_page_plugins %} | ||
{% blockplugin plugins.0 %} | ||
<img src="{% thumbnail instance.picture 300x170 crop upscale subject_location=instance.picture.subject_location %}" | ||
srcset=" | ||
{% thumbnail instance.picture 300x170 crop upscale subject_location=instance.picture.subject_location %} 300w | ||
{% if instance.picture.width >= 600 %},{% thumbnail instance.picture 600x340 crop upscale subject_location=instance.picture.subject_location %} 600w{% endif %} | ||
{% if instance.picture.width >= 900 %},{% thumbnail instance.picture 900x510 crop upscale subject_location=instance.picture.subject_location %} 900w{% endif %} | ||
" | ||
sizes="300px" | ||
alt="" | ||
/> | ||
{% endblockplugin %} | ||
</div> | ||
<div class="program-glimpse__content"> | ||
<div class="program-glimpse__wrapper"> | ||
<p class="program-glimpse__title">{{ program_page.get_title }}</p> | ||
<p> | ||
{% show_placeholder "program_excerpt" program_page %} | ||
</p> | ||
</div> | ||
<div class="program-glimpse__footer"> | ||
</div> | ||
</div> | ||
</a> | ||
{% endwith %} |