Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Video AG Infrastruktur
website
Commits
614d4e44
Commit
614d4e44
authored
8 years ago
by
Andreas Valder
Browse files
Options
Downloads
Patches
Plain Diff
fixed player download button
parent
df0b42b1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/macros.html
+6
-4
6 additions, 4 deletions
templates/macros.html
templates/play.html
+12
-8
12 additions, 8 deletions
templates/play.html
with
18 additions
and
12 deletions
templates/macros.html
+
6
−
4
View file @
614d4e44
...
...
@@ -49,7 +49,7 @@
{% endmacro %}
{% macro player(lecture, videos) %}
<script
src=
"{{url_for('static', filename='
/
mediaelementjs/mediaelement-and-player.min.js')}}"
></script>
<script
src=
"{{url_for('static', filename='mediaelementjs/mediaelement-and-player.min.js')}}"
></script>
<link
rel=
"stylesheet"
href=
"{{url_for('static', filename='mediaelementjs/mediaelementplayer.css')}}"
/>
<video
class=
"mejs-player"
width=
"640"
height=
"360"
style=
"width: 100%; height: 100%;"
>
{% for v in videos %}
...
...
@@ -93,7 +93,9 @@
<button
class=
"btn btn-primary dropdown-toggle{% if videos|length is equalto 0 %} disabled{% endif %}"
type=
"button"
data-toggle=
"dropdown"
>
Download
<span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
{% for v in videos %}
{% if v.downloadable %}
<li><a
href=
"{{ config.VIDEOPREFIX }}/{{v.path}}"
>
{{ valuecheckbox(['videos',v.id,'visible'], v.visible) }} {{v.format_description}} ({{v.file_size|filesizeformat(true)}})
</a></li>
{% endif %}
{% if v.downloadable %}
<li><a
href=
"{{ config.VIDEOPREFIX }}/{{v.path}}"
>
{{ valuecheckbox(['videos',v.id,'visible'], v.visible) }} {{v.format_description}} ({{v.file_size|filesizeformat(true)}})
</a></li>
{% endif %}
{% endfor %}
</ul>
<noscript>
...
...
@@ -147,7 +149,7 @@ $('#embedcodebtn').popover(
</span>
<span
class=
"col-sm-3 col-xs-12"
>
<span
class=
"pull-right"
>
<span
class=
"dropdown"
>
<span>
{{ video_download_btn(videos) }}
</span>
<a
href=
"{{url_for('play', id=lecture.id)}}"
class=
"btn btn-default {% if videos|length is equalto 0 %}disabled{% endif %}"
>
...
...
This diff is collapsed.
Click to expand it.
templates/play.html
+
12
−
8
View file @
614d4e44
...
...
@@ -10,15 +10,19 @@
<h1
class=
"panel-title"
><strong>
{{ course.title }}
</strong>
: {{ lecture.title}}
</h1>
</div>
<div
class=
"panel-body"
>
<p
class=
"col-xs-12"
style=
"padding: 0px;"
>
<span><a
href=
"{{url_for('course_id', numid=course.id)}}#lecture-{{lecture.id}}"
class=
"btn btn-default"
>
Zur Veranstaltungsseite
</a><span>
<span
class=
"pull-right"
>
<span>
{{ video_embed_btn(lecture.id) }}
</span>
<span>
{{ video_download_btn(videos) }}
</span>
</span>
</p>
<div
class=
"row"
style=
"padding: 0px;"
>
<div
class=
"col-sm-6 col-xs-12"
style=
"padding-bottom: 5px;"
>
<span>
<a
href=
"{{url_for('course_id', numid=course.id)}}#lecture-{{lecture.id}}"
class=
"btn btn-default"
>
Zur Veranstaltungsseite
</a>
<span>
</div>
<div
class=
"col-sm-6 col-xs-12"
>
<div
class=
"pull-right"
style=
"margin-left: 10px;"
>
{{ video_download_btn(videos) }}
</div>
<div
class=
"pull-right"
>
{{ video_embed_btn(lecture.id) }}
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
style=
"padding: 0px"
>
{{ player(lecture, videos) }}
</div>
</div>
...
...
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