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
f303bc02
Commit
f303bc02
authored
Jun 27, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hook up about and jobs pages. Use named route for root.
parent
4d7cef8d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
8 deletions
+14
-8
lms/djangoapps/student/views.py
+5
-0
lms/templates/course_navigation.html
+1
-3
lms/templates/login_modal.html
+2
-2
lms/templates/navigation.html
+2
-1
lms/templates/signup_modal.html
+1
-1
lms/urls.py
+3
-1
No files found.
lms/djangoapps/student/views.py
View file @
f303bc02
...
...
@@ -472,3 +472,8 @@ def course_info(request):
# TODO: Couse should be a model
return
render_to_response
(
'course_info.html'
,
{
'csrf'
:
csrf_token
})
def
about
(
request
):
return
render_to_response
(
'about.html'
,
None
)
def
jobs
(
request
):
return
render_to_response
(
'jobs.html'
,
None
)
lms/templates/course_navigation.html
View file @
f303bc02
...
...
@@ -6,9 +6,7 @@ def url_class(url):
return
"
active
"
return
""
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<nav
class=
"${active_page} course-material"
>
<div
class=
"inner-wrapper"
>
...
...
lms/templates/login_modal.html
View file @
f303bc02
...
...
@@ -37,7 +37,7 @@
</section>
<script
type=
"text/javascript"
>
function
getCookie
(
name
)
{
(
function
getCookie
(
name
)
{
var
cookieValue
=
null
;
if
(
document
.
cookie
&&
document
.
cookie
!=
''
)
{
var
cookies
=
document
.
cookie
.
split
(
';'
);
...
...
@@ -78,6 +78,6 @@ function postJSON(url, data, callback) {
}
}
);
});
});
)(
this
)
// new Modal({el: $(".login-modal")}).render()
</script>
lms/templates/navigation.html
View file @
f303bc02
...
...
@@ -2,9 +2,10 @@
## one for people who aren't. Assume a Course object is passed to the former,
## instead of using settings.COURSE_TITLE
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<header
class=
"app"
aria-label=
"Global Navigation"
>
<section
class=
"wrapper"
>
<a
href=
"${
MITX_ROOT_URL
}"
class=
"logo"
>
<a
href=
"${
reverse('root')
}"
class=
"logo"
>
<img
src=
"${static.url('images/logo.png')}"
/>
</a>
<nav
class=
"find-courses"
>
...
...
lms/templates/signup_modal.html
View file @
f303bc02
...
...
@@ -7,7 +7,7 @@
<hr>
</header>
<form
id=
"
login
_form"
method=
"post"
>
<form
id=
"
enroll
_form"
method=
"post"
>
<label>
E-mail
</label>
<input
name=
"email"
type=
"email"
placeholder=
"E-mail"
>
<label>
Password
</label>
...
...
lms/urls.py
View file @
f303bc02
...
...
@@ -11,7 +11,9 @@ if settings.DEBUG:
admin
.
autodiscover
()
urlpatterns
=
(
''
,
url
(
r'^$'
,
'student.views.index'
),
# Main marketing page, or redirect to courseware
url
(
r'^$'
,
'student.views.index'
,
name
=
"root"
),
# Main marketing page, or redirect to courseware
url
(
r'^about$'
,
'student.views.about'
,
name
=
"about"
),
url
(
r'^jobs$'
,
'student.views.jobs'
,
name
=
"jobs"
),
url
(
r'^dashboard$'
,
'student.views.dashboard'
),
url
(
r'^course_info$'
,
'student.views.course_info'
),
url
(
r'^change_email$'
,
'student.views.change_email_request'
),
...
...
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