* fix: video share page visual issues * fix: better video sizing * fixup! fix: better video sizing * docs: comment explaining width funkiness
40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
<%page expression_filter="h"/>
|
|
<%!
|
|
from django.utils.translation import gettext as _
|
|
%>
|
|
<%inherit file="courseware/courseware-chromeless.html"/>
|
|
|
|
<%block name="head_extra">
|
|
<!-- OpenGraph tags -->
|
|
<meta data-rh="true" property="og:type" content="website">
|
|
<meta data-rh="true" property="og:site_name" content="edX">
|
|
<meta data-rh="true" property="og:title" content="${social_sharing_metadata['video_title']}">
|
|
<meta data-rh="true" property="og:description" content="${social_sharing_metadata['video_description']}">
|
|
<meta data-rh="true" property="og:image" content="${social_sharing_metadata['video_thumbnail']}">
|
|
|
|
<!-- Twitter-specific video player tags -->
|
|
<meta data-rh="true" name="twitter:card" content="player">
|
|
<meta data-rh="true" name="twitter:site" content="@edxOnline">
|
|
<meta data-rh="true" name="twitter:player" content="${social_sharing_metadata['video_embed_url']}">
|
|
<meta data-rh="true" name="twitter:player:width" content="1280">
|
|
<meta data-rh="true" name="twitter:player:height" content="720">
|
|
</%block>
|
|
|
|
<%block name="bodyclass">view-in-course view-courseware courseware ${course.css_class or ''} public-video-page</%block>
|
|
|
|
<%block name="body_extra">
|
|
<nav class="public-video-share-cta" aria-label="Learn More">
|
|
% if org_logo:
|
|
<img class="org-logo" src="${org_logo}" alt="Organization Logo"/>
|
|
% endif
|
|
<div class="nav-links">
|
|
<a class="btn-learn-more btn" href="${learn_more_url}">
|
|
${_("Learn more about this course")}
|
|
</a>
|
|
<a class="btn-enroll btn" href="${enroll_url}">
|
|
${_("Enroll in this course")}
|
|
</a>
|
|
</div>
|
|
</nav>
|
|
</%block>
|