Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
71a6779d
Commit
71a6779d
authored
9 years ago
by
Matt Drayer
Browse files
Options
Downloads
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
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
common/test/acceptance/tests/lms/test_lms_index.py
+1
-2
1 addition, 2 deletions
common/test/acceptance/tests/lms/test_lms_index.py
lms/templates/index.html
+12
-10
12 additions, 10 deletions
lms/templates/index.html
with
14 additions
and
12 deletions
AUTHORS
+
1
−
0
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>
This diff is collapsed.
Click to expand it.
common/test/acceptance/tests/lms/test_lms_index.py
+
1
−
2
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
)
This diff is collapsed.
Click to expand it.
lms/templates/index.html
+
12
−
10
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"
>
...
...
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