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
71a6779d
Commit
71a6779d
authored
Feb 03, 2016
by
Matt Drayer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11138 from fghaas/no-video-if-unset
lms: Only show welcome video if show_homepage_promo_video is set
parents
b35bfe04
e1ce4059
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
AUTHORS
+1
-0
common/test/acceptance/tests/lms/test_lms_index.py
+1
-2
lms/templates/index.html
+12
-10
No files found.
AUTHORS
View file @
71a6779d
...
...
@@ -264,3 +264,4 @@ Mariana Araújo <simbelm.ne@gmail.com>
Muhammad Ayub Khan <ayub.khan@arbisoft.com>
Kaloian Doganov <doganov@gmail.com>
Sanford Student <sstudent@edx.org>
Florian Haas <florian@hastexo.com>
common/test/acceptance/tests/lms/test_lms_index.py
View file @
71a6779d
...
...
@@ -48,9 +48,8 @@ class LmsIndexPageTest(BaseLmsIndexTest):
# Ensure the introduction video element is not shown
self
.
assertFalse
(
self
.
page
.
intro_video_element
.
visible
)
# @fghaas: The below presence check can now be modified along with your changeset
# Still need to figure out how to swap platform settings in the context of a bok choy test
# but we can at least prevent accidental exposure with these validations going forward
# Note: 'present' is a DOM check, whereas 'visible' is an actual browser/screen check
self
.
assert
Tru
e
(
self
.
page
.
video_modal_element
.
present
)
self
.
assert
Fals
e
(
self
.
page
.
video_modal_element
.
present
)
self
.
assertFalse
(
self
.
page
.
video_modal_element
.
visible
)
lms/templates/index.html
View file @
71a6779d
...
...
@@ -53,16 +53,18 @@ from django.core.urlresolvers import reverse
</section>
<section
id=
"video-modal"
class=
"modal home-page-video-modal video-modal"
>
<div
class=
"inner-wrapper"
>
<
%
youtube_video_id =
homepage_promo_video_youtube_id
if
self
.
stanford_theme_enabled
()
:
youtube_video_id =
"2gmreZObCY4"
%
>
<iframe
title=
"YouTube Video"
width=
"640"
height=
"360"
src=
"//www.youtube.com/embed/${youtube_video_id}?showinfo=0"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
</section>
% if show_homepage_promo_video:
<section
id=
"video-modal"
class=
"modal home-page-video-modal video-modal"
>
<div
class=
"inner-wrapper"
>
<
%
youtube_video_id =
homepage_promo_video_youtube_id
if
self
.
stanford_theme_enabled
()
:
youtube_video_id =
"2gmreZObCY4"
%
>
<iframe
title=
"YouTube Video"
width=
"640"
height=
"360"
src=
"//www.youtube.com/embed/${youtube_video_id}?showinfo=0"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
</section>
% endif
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
...
...
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