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
e729cc32
Commit
e729cc32
authored
Jul 05, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix url confusion for course/info and course/about
parent
9d1dc37b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
86 deletions
+85
-86
lms/djangoapps/courseware/views.py
+1
-2
lms/djangoapps/student/views.py
+3
-1
lms/static/sass/application.css
+80
-82
lms/urls.py
+1
-1
No files found.
lms/djangoapps/courseware/views.py
View file @
e729cc32
...
...
@@ -275,7 +275,6 @@ def jump_to(request, probname=None):
@ensure_csrf_cookie
def
course_info
(
request
,
course_id
):
# This is the advertising page for a student to look at the course before signing up
csrf_token
=
csrf
(
request
)[
'csrf_token'
]
try
:
...
...
@@ -283,4 +282,4 @@ def course_info(request, course_id):
except
KeyError
:
raise
Http404
(
"Course not found"
)
return
render_to_response
(
'
portal/course_about
.html'
,
{
'csrf'
:
csrf_token
,
'course'
:
course
})
return
render_to_response
(
'
info
.html'
,
{
'csrf'
:
csrf_token
,
'course'
:
course
})
lms/djangoapps/student/views.py
View file @
e729cc32
...
...
@@ -474,9 +474,11 @@ def accept_name_change(request):
@ensure_csrf_cookie
def
course_info
(
request
):
# This is the advertising page for a student to look at the course before signing up
csrf_token
=
csrf
(
request
)[
'csrf_token'
]
course
=
settings
.
COURSES_BY_ID
[
course_id
]
# TODO: Couse should be a model
return
render_to_response
(
'
course_info.html'
,
{
'csrf'
:
csrf_token
})
return
render_to_response
(
'
portal/course_about.html'
,
{
'csrf'
:
csrf_token
,
'course'
:
course
})
def
about
(
request
):
return
render_to_response
(
'about.html'
,
None
)
...
...
lms/static/sass/application.css
View file @
e729cc32
...
...
@@ -1171,7 +1171,6 @@ h1.top-header, div.course-wrapper section.course-content ol.vert-mod > li header
border-bottom
:
1px
solid
#eddfaa
;
border-top
:
1px
solid
#fff
;
font-size
:
12px
;
height
:
46px
;
line-height
:
46px
;
margin
:
-22.652px
-22.652px
22.652px
;
text-shadow
:
0
1px
0
#fff
;
}
...
...
@@ -1185,7 +1184,6 @@ h1.top-header, div.course-wrapper section.course-content ol.vert-mod > li header
color
:
#7e691a
;
text-decoration
:
none
;
}
.topbar
a
.block-link
,
nav
.sequence-nav
a
.block-link
,
.topbar
nav
.sequence-nav
ol
a
,
nav
.sequence-nav
ol
.topbar
a
,
nav
.sequence-nav
ol
a
{
background
:
#f2e7bf
;
border-left
:
1px
solid
#e4d080
;
-webkit-box-shadow
:
inset
1px
0
0
#faf7e9
;
-moz-box-shadow
:
inset
1px
0
0
#faf7e9
;
...
...
@@ -4622,17 +4620,17 @@ section.course-index div#accordion ul.ui-accordion-content {
margin
:
0
;
padding
:
1em
1.5em
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
{
background
:
transparent
;
border
:
1px
solid
transparent
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
-ms-border-radius
:
4px
;
-o-border-radius
:
4px
;
border-radius
:
4px
;
margin-bottom
:
11.326px
;
position
:
relative
;
padding
:
5px
36px
5px
10px
;
}
margin-bottom
:
11.326px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
{
border
:
1px
solid
transparent
;
background
:
transparent
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
-ms-border-radius
:
4px
;
-o-border-radius
:
4px
;
border-radius
:
4px
;
position
:
relative
;
padding
:
5px
36px
5px
10px
;
text-decoration
:
none
;
display
:
block
;
color
:
#666
;
}
...
...
@@ -4643,80 +4641,80 @@ section.course-index div#accordion ul.ui-accordion-content {
color
:
#666
;
font-weight
:
normal
;
display
:
block
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
:after
{
background
:
transparent
;
border-top
:
1px
solid
#b4b4b4
;
border-right
:
1px
solid
#b4b4b4
;
content
:
""
;
display
:
block
;
height
:
12px
;
margin-top
:
-6px
;
opacity
:
0
;
position
:
absolute
;
top
:
50%
;
right
:
30px
;
-webkit-transform
:
rotate
(
45deg
);
-moz-transform
:
rotate
(
45deg
);
-ms-transform
:
rotate
(
45deg
);
-o-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
width
:
12px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
:hover
{
background-image
:
-webkit-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
-moz-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
-ms-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
-o-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
border-color
:
#c8c8c8
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
:hover:after
{
opacity
:
1
;
right
:
15px
;
-webkit-transition-property
:
all
;
-moz-transition-property
:
all
;
-ms-transition-property
:
all
;
-o-transition-property
:
all
;
transition-property
:
all
;
-webkit-transition-duration
:
0.2s
;
-moz-transition-duration
:
0.2s
;
-ms-transition-duration
:
0.2s
;
-o-transition-duration
:
0.2s
;
transition-duration
:
0.2s
;
-webkit-transition-timing-function
:
linear
;
-moz-transition-timing-function
:
linear
;
-ms-transition-timing-function
:
linear
;
-o-transition-timing-function
:
linear
;
transition-timing-function
:
linear
;
-webkit-transition-delay
:
0
;
-moz-transition-delay
:
0
;
-ms-transition-delay
:
0
;
-o-transition-delay
:
0
;
transition-delay
:
0
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
:hover
>
a
p
{
color
:
#333
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
:active
{
-webkit-box-shadow
:
inset
0
1px
14px
0
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
inset
0
1px
14px
0
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
inset
0
1px
14px
0
rgba
(
0
,
0
,
0
,
0.1
);
top
:
1px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
:active:after
{
opacity
:
1
;
right
:
15px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
:after
{
background
:
transparent
;
border-top
:
1px
solid
#b4b4b4
;
border-right
:
1px
solid
#b4b4b4
;
content
:
""
;
display
:
block
;
height
:
12px
;
margin-top
:
-6px
;
opacity
:
0
;
position
:
absolute
;
top
:
50%
;
right
:
30px
;
-webkit-transform
:
rotate
(
45deg
);
-moz-transform
:
rotate
(
45deg
);
-ms-transform
:
rotate
(
45deg
);
-o-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
width
:
12px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
:hover
{
background-image
:
-webkit-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
-moz-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
-ms-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
-o-linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
background-image
:
linear-gradient
(
-90deg
,
rgba
(
245
,
245
,
245
,
0.4
),
rgba
(
230
,
230
,
230
,
0.4
));
border-color
:
#c8c8c8
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
:hover:after
{
opacity
:
1
;
right
:
15px
;
-webkit-transition-property
:
all
;
-moz-transition-property
:
all
;
-ms-transition-property
:
all
;
-o-transition-property
:
all
;
transition-property
:
all
;
-webkit-transition-duration
:
0.2s
;
-moz-transition-duration
:
0.2s
;
-ms-transition-duration
:
0.2s
;
-o-transition-duration
:
0.2s
;
transition-duration
:
0.2s
;
-webkit-transition-timing-function
:
linear
;
-moz-transition-timing-function
:
linear
;
-ms-transition-timing-function
:
linear
;
-o-transition-timing-function
:
linear
;
transition-timing-function
:
linear
;
-webkit-transition-delay
:
0
;
-moz-transition-delay
:
0
;
-ms-transition-delay
:
0
;
-o-transition-delay
:
0
;
transition-delay
:
0
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
:hover
>
a
p
{
color
:
#333
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
:active
{
-webkit-box-shadow
:
inset
0
1px
14px
0
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
inset
0
1px
14px
0
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
inset
0
1px
14px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
a
:active:after
{
opacity
:
1
;
right
:
15px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
{
background
:
#f0f0f0
;
background-image
:
-webkit-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
-moz-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
-ms-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
-o-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
border-color
:
#c8c8c8
;
font-weight
:
bold
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
>
a
p
{
color
:
#333
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
>
a
{
background
:
#f0f0f0
;
background-image
:
-webkit-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
-moz-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
-ms-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
-o-linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
background-image
:
linear-gradient
(
-90deg
,
#f5f5f5
,
#e6e6e6
);
border-color
:
#c8c8c8
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
>
a
:after
{
opacity
:
1
;
right
:
15px
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
>
a
p
{
color
:
#333
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
span
.subtitle
{
font-weight
:
normal
;
}
section
.course-index
div
#accordion
ul
.ui-accordion-content
li
.active
:after
{
opacity
:
1
;
right
:
15px
;
}
@-moz-document
url-prefix
()
{
a
.add-fullscreen
{
...
...
lms/urls.py
View file @
e729cc32
...
...
@@ -73,7 +73,7 @@ if settings.COURSEWARE_ENABLED:
# Multicourse related:
url
(
r'^courses/?$'
,
'courseware.views.courses'
,
name
=
"courses"
),
url
(
r'^courses/(?P<course_id>[^/]*)/info$'
,
'
util.views.
info'
,
name
=
"info"
),
url
(
r'^courses/(?P<course_id>[^/]*)/info$'
,
'
courseware.views.course_
info'
,
name
=
"info"
),
url
(
r'^courses/(?P<course_id>[^/]*)/book$'
,
'staticbook.views.index'
,
name
=
"book"
),
url
(
r'^courses/(?P<course_id>[^/]*)/enroll$'
,
'student.views.enroll'
,
name
=
"enroll"
),
url
(
r'^courses/(?P<course_id>[^/]*)/courseware/?$'
,
'courseware.views.index'
,
name
=
"courseware"
),
...
...
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