Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
78d8b00a
Commit
78d8b00a
authored
Mar 12, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7286 from edx/avoid-needless-mako
For video module, don't use Mako unnecessarily
parents
48446b76
9c59ebd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
lms/templates/video.html
+10
-8
No files found.
lms/templates/video.html
View file @
78d8b00a
...
...
@@ -10,8 +10,12 @@
data-streams=
"${youtube_streams}"
${'
data-sub=
"{}"
'.
format
(
sub
)
if
sub
else
''}
${'
data-autoplay=
"{}"
'.
format
(
autoplay
)
if
autoplay
else
''}
%
if
sub:
data-sub=
"${sub}"
%
endif
%
if
autoplay:
data-autoplay=
"${autoplay}"
%
endif
data-sources=
'${sources}'
data-save-state-url=
"${ajax_url}"
...
...
@@ -104,14 +108,13 @@
<ul
class=
"wrapper-downloads"
>
% if download_video_link:
<li
class=
"video-sources video-download-button"
>
${('
<a
href=
"%s"
>
' + _('Download video') + '
</a>
') % download_video_link}
<a
href=
"${download_video_link}"
>
${_('Download video')}
</a>
</li>
% endif
% if track:
<li
class=
"video-tracks video-download-button"
>
% if transcript_download_format:
${('
<a
href=
"%s"
>
' + _('Download transcript') + '
</a>
') % track
}
<a
href=
"${track}"
>
${_('Download transcript')}
</a>
<div
class=
"a11y-menu-container"
>
<a
class=
"a11y-menu-button"
href=
"#"
title=
"${'.' + transcript_download_format}"
>
${'.' + transcript_download_format}
</a>
<ol
class=
"a11y-menu-list"
>
...
...
@@ -131,14 +134,13 @@
</ol>
</div>
% else:
${('
<a
href=
"%s"
class=
"external-track"
>
' + _('Download transcript') + '
</a>
') % track
}
<a
href=
"${track}"
class=
"external-track"
>
${_('Download transcript')}
</a>
% endif
</li>
% endif
% if handout:
<li
class=
"video-handout video-download-button"
>
${('
<a
href=
"%s"
target=
"_blank"
>
' + _('Download Handout') + '
</a>
') % handout}
<a
href=
"${handout}"
target=
"_blank"
>
${_('Download Handout')}
</a>
</li>
% endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment