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
43b4cd40
Commit
43b4cd40
authored
Jan 30, 2014
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2359 from edx/talbs/lms-fix-oldhomepage
LMS: Quick Clean Up of Old Index
parents
1b7e144b
3554c52a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
119 deletions
+10
-119
lms/djangoapps/courseware/tests/test_microsites.py
+0
-6
lms/static/sass/base/_variables.scss
+7
-0
lms/static/sass/multicourse/_home.scss
+1
-2
lms/templates/index.html
+2
-111
No files found.
lms/djangoapps/courseware/tests/test_microsites.py
View file @
43b4cd40
...
...
@@ -114,12 +114,6 @@ class TestMicrosites(ModuleStoreTestCase, LoginEnrollmentTestCase):
# assert that footer template has been properly overriden on homepage
self
.
assertNotContains
(
resp
,
'This is a Test Microsite footer'
)
# assert that the edX partners section is not in the HTML
self
.
assertContains
(
resp
,
'<section class="university-partners university-partners2x6">'
)
# assert that the edX partners tag line is not in the HTML
self
.
assertContains
(
resp
,
'Explore free courses from'
)
def
test_microsite_course_enrollment
(
self
):
"""
...
...
lms/static/sass/base/_variables.scss
View file @
43b4cd40
...
...
@@ -285,6 +285,13 @@ $footer_margin: ($baseline/4) 0 ($baseline*1.5) 0;
// ====================
// VIEWS: homepage
$homepage__header--gradient__color--alpha
:
lighten
(
$blue
,
15%
);
$homepage__header--gradient__color--bravo
:
saturate
(
$blue
,
30%
);
$homepage__header--background
:
lighten
(
$blue
,
15%
);
// ====================
// IMAGES: backgrounds
$homepage-bg-image
:
'../images/homepage-bg.jpg'
;
...
...
lms/static/sass/multicourse/_home.scss
View file @
43b4cd40
...
...
@@ -7,8 +7,7 @@
}
>
header
{
background
:
$dashboard-profile-color
;
@include
background-image
(
url($homepage-bg-image)
);
@include
linear-gradient
(
$homepage__header--gradient__color--alpha
,
$homepage__header--gradient__color--bravo
);
background-size
:
cover
;
border-bottom
:
1px
solid
$border-color-3
;
box-shadow
:
0
1px
0
0
$course-header-bg
,
inset
0
-1px
5px
0
rgba
(
0
,
0
,
0
,
0
.1
);
...
...
lms/templates/index.html
View file @
43b4cd40
...
...
@@ -12,7 +12,7 @@
show_homepage_promo_video =
MicrositeConfiguration.get_microsite_configuration_value('show_homepage_promo_video',
True
)
homepage_promo_video_youtube_id =
MicrositeConfiguration.get_microsite_configuration_value('homepage_promo_video_youtube_id',
"
XNaiOGxWeto
")
show_partners =
MicrositeConfiguration.get_microsite_configuration_value('show_partners',
True
)
%
>
...
...
@@ -70,116 +70,6 @@
</header>
<section
class=
"container"
>
<section
class=
"highlighted-courses"
>
## Disable university partner logos and sites for non-edX sites
% if not self.theme_enabled() and show_partners:
<h2>
${_('Explore free courses from {span_start}{platform_name}{span_end} universities').format(platform_name="edX", span_start='
<span
class=
"edx"
>
', span_end='
</span>
')}
</h2>
<section
class=
"university-partners university-partners2x6"
>
<ol
class=
"partners"
>
<li
class=
"partner mit"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/mit/mit.png')}"
/>
<div
class=
"name"
>
<span>
MITx
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/harvard/harvard.png')}"
/>
<div
class=
"name"
>
<span>
HarvardX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/berkeley/berkeley.png')}"
/>
<div
class=
"name"
>
<span>
BerkeleyX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/ut/ut-rollover_350x150.png')}"
/>
<div
class=
"name"
>
<span>
UTx
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/mcgill/mcgill.png')}"
/>
<div
class=
"name"
>
<span>
McGillX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/anu/anu.png')}"
/>
<div
class=
"name"
>
<span>
ANUx
</span>
</div>
</a>
</li>
</ol>
<hr
/>
<ol
class=
"partners"
>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/wellesley/wellesley-rollover_350x150.png')}"
/>
<div
class=
"name"
>
<span>
WellesleyX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/georgetown/georgetown-rollover_350x150.png')}"
/>
<div
class=
"name"
>
<span>
GeorgetownX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/toronto/toronto.png')}"
/>
<div
class=
"name"
>
<span>
University of TorontoX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/epfl/epfl.png')}"
/>
<div
class=
"name"
>
<span>
EPFLx
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/delft/delft.png')}"
/>
<div
class=
"name"
>
<span>
DelftX
</span>
</div>
</a>
</li>
<li
class=
"partner"
>
<a
href=
"#"
>
<img
src=
"${static.url('images/university/rice/rice.png')}"
/>
<div
class=
"name"
>
<span>
RiceX
</span>
</div>
</a>
</li>
</ol>
</section>
% endif
% if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
<section
class=
"courses"
>
...
...
@@ -192,6 +82,7 @@
</ul>
</section>
% endif
</section>
</section>
</section>
...
...
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