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
71a00bf9
Commit
71a00bf9
authored
Dec 30, 2015
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Move Course Handouts to Course Resources and Tools."
This reverts commit e8909e4439f22a7568d95a7672ab60d4a36f7322.
parent
e75f7950
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
151 additions
and
58 deletions
+151
-58
common/lib/xmodule/xmodule/course_module.py
+2
-2
common/test/acceptance/pages/studio/settings_advanced.py
+1
-1
lms/static/sass/course/_info.scss
+128
-39
lms/templates/courseware/info.html
+20
-16
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
71a00bf9
...
@@ -423,13 +423,13 @@ class CourseFields(object):
...
@@ -423,13 +423,13 @@ class CourseFields(object):
scope
=
Scope
.
settings
scope
=
Scope
.
settings
)
)
has_children
=
True
has_children
=
True
info_s
ection
_name
=
String
(
info_s
idebar
_name
=
String
(
display_name
=
_
(
"Course Home Sidebar Name"
),
display_name
=
_
(
"Course Home Sidebar Name"
),
help
=
_
(
help
=
_
(
"Enter the heading that you want students to see above your course handouts on the Course Home page. "
"Enter the heading that you want students to see above your course handouts on the Course Home page. "
"Your course handouts appear in the right panel of the page."
"Your course handouts appear in the right panel of the page."
),
),
scope
=
Scope
.
settings
,
default
=
_
(
'Course Resources and Tools'
)
)
scope
=
Scope
.
settings
,
default
=
'Course Handouts'
)
show_timezone
=
Boolean
(
show_timezone
=
Boolean
(
help
=
_
(
help
=
_
(
"True if timezones should be shown on dates in the courseware. "
"True if timezones should be shown on dates in the courseware. "
...
...
common/test/acceptance/pages/studio/settings_advanced.py
View file @
71a00bf9
...
@@ -176,7 +176,7 @@ class AdvancedSettingsPage(CoursePage):
...
@@ -176,7 +176,7 @@ class AdvancedSettingsPage(CoursePage):
'advertised_start'
,
'advertised_start'
,
'announcement'
,
'announcement'
,
'display_name'
,
'display_name'
,
'info_s
ection
_name'
,
'info_s
idebar
_name'
,
'is_new'
,
'is_new'
,
'issue_badges'
,
'issue_badges'
,
'max_student_enrollments_allowed'
,
'max_student_enrollments_allowed'
,
...
...
lms/static/sass/course/_info.scss
View file @
71a00bf9
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
div
.info-wrapper
{
div
.info-wrapper
{
background-color
:
$homepage-background
;
background-color
:
$homepage-background
;
border-top
:
none
;
section
.updates
{
section
.updates
{
@extend
.content
;
@extend
.content
;
...
@@ -57,8 +56,7 @@ div.info-wrapper {
...
@@ -57,8 +56,7 @@ div.info-wrapper {
@include
text-align
(
left
);
@include
text-align
(
left
);
@extend
%t-strong
;
@extend
%t-strong
;
@extend
%t-title6
;
@extend
%t-title6
;
margin-bottom
:
0
;
margin-bottom
:
$baseline
;
@include
padding
(
12px
,
26px
,
20px
,
0
);
font-style
:
normal
;
font-style
:
normal
;
}
}
...
@@ -95,6 +93,7 @@ div.info-wrapper {
...
@@ -95,6 +93,7 @@ div.info-wrapper {
padding
:
$baseline
;
padding
:
$baseline
;
list-style-type
:
none
;
list-style-type
:
none
;
margin-bottom
:
lh
(
1
.5
);
margin-bottom
:
lh
(
1
.5
);
background-color
:
$white
;
ol
,
ul
{
ol
,
ul
{
ol
,
ul
{
ol
,
ul
{
...
@@ -163,20 +162,24 @@ div.info-wrapper {
...
@@ -163,20 +162,24 @@ div.info-wrapper {
}
}
}
}
section
.
course-date
s
{
section
.
handout
s
{
@include
padding
(
32px
,
30px
,
20px
,
30px
)
;
padding
:
20px
30px
;
margin
:
0
;
margin
:
0
;
@extend
.sidebar
;
@extend
.sidebar
;
background
:
rgba
(
0
,
0
,
0
,
0
);
background
:
rgba
(
0
,
0
,
0
,
0
);
box-shadow
:
none
;
box-shadow
:
none
;
font-size
:
14px
;
font-size
:
14px
;
a
{
color
:
$link-color
;
}
&
:after
{
&
:after
{
left
:
-1px
;
left
:
-1px
;
right
:
auto
;
right
:
auto
;
}
}
.course-info-heading
{
h1
{
@include
text-align
(
left
);
@include
text-align
(
left
);
@extend
%t-strong
;
@extend
%t-strong
;
@extend
%t-title6
;
@extend
%t-title6
;
...
@@ -185,60 +188,146 @@ div.info-wrapper {
...
@@ -185,60 +188,146 @@ div.info-wrapper {
font-style
:
normal
;
font-style
:
normal
;
}
}
@media
print
{
ul
{
background
:
transparent
!
important
;
margin-bottom
:
14px
;
}
}
}
section
.handouts
{
ol
{
margin
:
$baseline
;
margin-bottom
:
14px
;
border-top
:
(
$baseline
/
4
)
solid
$gray-l5
;
li
{
.course-info-heading
{
@include
text-align
(
left
);
@include
text-align
(
left
);
@extend
%t-strong
;
@extend
%t-title6
;
a
{
margin-top
:
$baseline
;
display
:
block
;
margin-bottom
:
(
$baseline
/
2
);
padding
:
0
;
padding
:
0
;
font-style
:
normal
;
color
:
$link-color
;
&
:hover
,
&
:focus
{
background
:
transparent
;
}
}
}
h1
{
&
.expandable
,
@include
text-align
(
left
);
&
.collapsable
{
@extend
%t-strong
;
margin
:
0
16px
14px
16px
;
@extend
%t-title7
;
@include
transition
(
all
.2s
linear
0s
);
margin-bottom
:
0
;
h4
{
color
:
$link-color
;
font-size
:
1em
;
font-weight
:
normal
;
padding-left
:
30px
;
}
}
}
&
.collapsable
{
background
:
$white
;
border-radius
:
3px
;
padding
:
14px
0
;
box-shadow
:
0
0
1px
1px
$shadow-l1
,
0
1px
3px
rgba
(
0
,
0
,
0
,
.25
);
h4
{
margin-bottom
:
16px
;
}
}
&
.multiple
{
a
{
a
{
color
:
$link-color
;
display
:
inline-block
;
padding
:
0
;
&
:hover
,
&
:focus
{
background
:
transparent
;
}
}
}
}
ul
{
ul
{
margin
:
(
$baseline
/
2
)
0
;
background
:
none
;
margin
:
0
;
li
{
border-bottom
:
0
;
border-top
:
1px
solid
#e6e6e6
;
font-size
:
0
.9em
;
margin
:
0
;
padding
:
15px
30px
;
a
{
display
:
inline-block
;
padding
:
0
;
padding
:
0
;
list-style
:
none
;
>
li
{
&
:hover
,
margin
:
(
$baseline
/
4
)
0
;
&
:focus
{
background
:
transparent
;
}
}
}
}
div
.hitarea
{
background-image
:
url('
#{
$static-path
}
/images/treeview-default.gif')
no-repeat
;
display
:
block
;
height
:
100%
;
margin-left
:
0
;
max-height
:
20px
;
position
:
absolute
;
width
:
100%
;
&
:hover
,
&
:focus
{
opacity
:
0
.6
;
filter
:
alpha
(
opacity
=
60
);
+
h4
{
@extend
a
:hover
;
text-decoration
:
underline
;
}
}
}
}
ol
{
&
.expandable-hitarea
{
background-position
:
-72px
0px
;
}
&
.collapsable-hitarea
{
background-position
:
-55px
-23px
;
}
}
h3
{
border-bottom
:
0
;
box-shadow
:
none
;
color
:
#888
;
font-size
:
1em
;
margin-bottom
:
0
;
}
p
{
letter-spacing
:
0
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
text-transform
:
none
;
display
:
inline-block
;
list-style
:
none
;
a
{
@include
font-size
(
14
)
;
padding-right
:
8px
;
>
li
{
&
:before
{
margin
:
(
$baseline
/
4
)
0
;
color
:
$gray-l3
;
border-bottom
:
2px
solid
$gray-l4
;
content
:
"•"
;
display
:
inline-block
;
padding-right
:
8px
;
}
}
li
:last-child
{
&
:first-child
{
border
:
none
;
&
:before
{
content
:
""
;
padding-right
:
0
;
}
}
}
}
}
}
}
}
...
...
lms/templates/courseware/info.html
View file @
71a00bf9
...
@@ -38,6 +38,15 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
...
@@ -38,6 +38,15 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
ToggleElementVisibility();
ToggleElementVisibility();
</
%
static:require
_module
>
</
%
static:require
_module
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/jquery.treeview.js')}"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
document
).
ready
(
function
(){
$
(
".handouts"
).
treeview
({
collapsed
:
true
,
unique
:
true
/*, cookieId: "treeview-book-nav", persist: "cookie"*/
});
});
</script>
</
%
block>
<
%
block
name=
"bodyclass"
>
view-in-course view-course-info ${course.css_class or ''}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-in-course view-course-info ${course.css_class or ''}
</
%
block>
<section
class=
"container"
>
<section
class=
"container"
>
<div
class=
"home"
>
<div
class=
"home"
>
...
@@ -54,7 +63,6 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
...
@@ -54,7 +63,6 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
% endif
% endif
</div>
</div>
<div
class=
"info-wrapper"
>
<div
class=
"info-wrapper"
>
<div
class=
"course-updates"
>
% if user.is_authenticated():
% if user.is_authenticated():
<section
class=
"updates"
>
<section
class=
"updates"
>
% if studio_url is not None and masquerade and masquerade.role == 'staff':
% if studio_url is not None and masquerade and masquerade.role == 'staff':
...
@@ -64,31 +72,27 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
...
@@ -64,31 +72,27 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
</a>
</a>
</div>
</div>
% endif
% endif
<h1
class=
"course-info-heading"
>
${_("Course Updates and News")}
</h1>
<h1>
${_("Course Updates and News")}
</h1>
${get_course_info_section(request, masquerade_user, course, 'updates')}
${get_course_info_section(request, masquerade_user, course, 'updates')}
</section>
</section>
<section
aria-label=
"${_('Handout Navigation')}"
class=
"handouts"
>
% if SelfPacedConfiguration.current().enable_course_home_improvements:
% if SelfPacedConfiguration.current().enable_course_home_improvements:
<section
aria-label=
"${_('Important Course Dates')}"
class=
"course-dates"
>
<h1>
${_("Important Course Dates")}
</h1>
<h1
class=
"course-info-heading"
>
${_("Important Course Dates")}
</h1>
${get_course_date_summary(course, user)}
${get_course_date_summary(course, user)}
</section>
% endif
% endif
<h1>
${_(course.info_sidebar_name)}
</h1>
${get_course_info_section(request, masquerade_user, course, 'handouts')}
</section>
% else:
% else:
<section
class=
"updates"
>
<section
class=
"updates"
>
<h1
class=
"course-info-heading"
>
${_("Course Updates and
News")}
</h1>
<h1>
${_("Course Updates
&
News")}
</h1>
${get_course_info_section(request, masquerade_user, course, 'guest_updates')}
${get_course_info_section(request, masquerade_user, course, 'guest_updates')}
</section>
</section>
% endif
</div>
% if user.is_authenticated():
<section
aria-label=
"${_('Handout Navigation')}"
class=
"handouts"
>
<h1
class=
"course-info-heading"
>
${_(course.info_section_name)}
</h1>
${get_course_info_section(request, masquerade_user, course, 'handouts')}
</section>
% else:
<section
aria-label=
"${_('Handout Navigation')}"
class=
"handouts"
>
<section
aria-label=
"${_('Handout Navigation')}"
class=
"handouts"
>
<h1
class=
'course-info-heading'
>
${_("Course Handouts")}
</h1>
<h1
>
${_("Course Handouts")}
</h1>
${get_course_info_section(request
, course, 'guest_handouts')}
${get_course_info_section(request, masquerade_user
, course, 'guest_handouts')}
</section>
</section>
% endif
% endif
</div>
</div>
...
...
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