Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
9c59ebd6
Commit
9c59ebd6
authored
10 years ago
by
David Baumgold
Browse files
Options
Downloads
Patches
Plain Diff
For video module, don't use Mako unnecessarily
parent
57c38649
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/templates/video.html
+10
-8
10 additions, 8 deletions
lms/templates/video.html
with
10 additions
and
8 deletions
lms/templates/video.html
+
10
−
8
View file @
9c59ebd6
...
...
@@ -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"
>
' + _('D
ownload
video
') + '
</a>
') % d
ownload
_
video
_link}
<a
href=
"
${d
ownload
_
video
_link}"
>
${_('D
ownload
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment