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
cad673e9
Commit
cad673e9
authored
Aug 20, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the course template pages to be templates/courseware/
parent
375d484f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
28 additions
and
59 deletions
+28
-59
lms/djangoapps/courseware/views.py
+6
-6
lms/templates/courseware/course_navigation.html
+0
-0
lms/templates/courseware/courseware.html
+4
-4
lms/templates/courseware/grade_summary.html
+3
-3
lms/templates/courseware/gradebook.html
+3
-3
lms/templates/courseware/info.html
+3
-3
lms/templates/courseware/instructor_dashboard.html
+3
-3
lms/templates/courseware/progress.html
+5
-5
lms/templates/courseware/progress_graph.js
+0
-0
lms/templates/gradebook_profilegraphs.html
+0
-31
lms/templates/wiki/base.html
+1
-1
No files found.
lms/djangoapps/courseware/views.py
View file @
cad673e9
...
...
@@ -154,7 +154,7 @@ def index(request, course_id, chapter=None, section=None,
# Add a list of all the errors...
context
[
'course_errors'
]
=
modulestore
()
.
get_item_errors
(
course
.
location
)
result
=
render_to_response
(
'courseware.html'
,
context
)
result
=
render_to_response
(
'courseware
/courseware
.html'
,
context
)
except
:
# In production, don't want to let a 500 out for any reason
if
settings
.
DEBUG
:
...
...
@@ -215,7 +215,7 @@ def course_info(request, course_id):
course
=
get_course_with_access
(
request
.
user
,
course_id
,
'load'
)
staff_access
=
has_access
(
request
.
user
,
course
,
'staff'
)
return
render_to_response
(
'info.html'
,
{
'course'
:
course
,
return
render_to_response
(
'
courseware/
info.html'
,
{
'course'
:
course
,
'staff_access'
:
staff_access
,})
...
...
@@ -288,7 +288,7 @@ def progress(request, course_id, student_id=None):
}
context
.
update
()
return
render_to_response
(
'progress.html'
,
context
)
return
render_to_response
(
'
courseware/
progress.html'
,
context
)
...
...
@@ -316,7 +316,7 @@ def gradebook(request, course_id):
}
for
student
in
enrolled_students
]
return
render_to_response
(
'gradebook.html'
,
{
'students'
:
student_info
,
return
render_to_response
(
'
courseware/
gradebook.html'
,
{
'students'
:
student_info
,
'course'
:
course
,
'course_id'
:
course_id
,
# Checked above
...
...
@@ -331,7 +331,7 @@ def grade_summary(request, course_id):
# For now, just a static page
context
=
{
'course'
:
course
,
'staff_access'
:
True
,}
return
render_to_response
(
'grade_summary.html'
,
context
)
return
render_to_response
(
'
courseware/
grade_summary.html'
,
context
)
@cache_control
(
no_cache
=
True
,
no_store
=
True
,
must_revalidate
=
True
)
...
...
@@ -342,5 +342,5 @@ def instructor_dashboard(request, course_id):
# For now, just a static page
context
=
{
'course'
:
course
,
'staff_access'
:
True
,}
return
render_to_response
(
'instructor_dashboard.html'
,
context
)
return
render_to_response
(
'
courseware/
instructor_dashboard.html'
,
context
)
lms/templates/course_navigation.html
→
lms/templates/course
ware/course
_navigation.html
View file @
cad673e9
File moved
lms/templates/courseware.html
→
lms/templates/courseware
/courseware
.html
View file @
cad673e9
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
inherit
file=
"
/
main.html"
/>
<
%
namespace
name=
'static'
file=
'
/
static_content.html'
/>
<
%
block
name=
"bodyclass"
>
courseware
</
%
block>
<
%
block
name=
"title"
><title>
${course.number} Courseware
</title></
%
block>
...
...
@@ -21,7 +21,7 @@
<
%
static:js
group=
'courseware'
/>
<
%
include
file=
"mathjax_include.html"
/>
<
%
include
file=
"
/
mathjax_include.html"
/>
<!-- TODO: http://docs.jquery.com/Plugins/Validation -->
<script
type=
"text/javascript"
>
...
...
@@ -30,7 +30,7 @@
</script>
</
%
block>
<
%
include
file=
"course_navigation.html"
args=
"active_page='courseware'"
/>
<
%
include
file=
"
/courseware/
course_navigation.html"
args=
"active_page='courseware'"
/>
<section
class=
"container"
>
<div
class=
"course-wrapper"
>
...
...
lms/templates/grade_summary.html
→
lms/templates/
courseware/
grade_summary.html
View file @
cad673e9
<
%
inherit
file=
"main.html"
/>
<
%
inherit
file=
"
/
main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
/
static_content.html'
/>
<
%
include
file=
"course_navigation.html"
args=
"active_page=''"
/>
<
%
include
file=
"
/courseware/
course_navigation.html"
args=
"active_page=''"
/>
<section
class=
"container"
>
<div
class=
"gradebook-summary-wrapper"
>
...
...
lms/templates/gradebook.html
→
lms/templates/
courseware/
gradebook.html
View file @
cad673e9
<
%
inherit
file=
"main.html"
/>
<
%
inherit
file=
"
/
main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
/
static_content.html'
/>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/flot/jquery.flot.js')}"
></script>
...
...
@@ -28,7 +28,7 @@
</
%
block>
<
%
include
file=
"course_navigation.html"
args=
"active_page=''"
/>
<
%
include
file=
"
/courseware/
course_navigation.html"
args=
"active_page=''"
/>
<section
class=
"container"
>
<div
class=
"gradebook-wrapper"
>
...
...
lms/templates/info.html
→
lms/templates/
courseware/
info.html
View file @
cad673e9
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
inherit
file=
"
/
main.html"
/>
<
%
namespace
name=
'static'
file=
'
/
static_content.html'
/>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'course'
/>
...
...
@@ -7,7 +7,7 @@
<
%
block
name=
"title"
><title>
${course.number} Course Info
</title></
%
block>
<
%
include
file=
"course_navigation.html"
args=
"active_page='info'"
/>
<
%
include
file=
"
/courseware/
course_navigation.html"
args=
"active_page='info'"
/>
<
%!
from
courseware
.
courses
import
get_course_info_section
%
>
...
...
lms/templates/instructor_dashboard.html
→
lms/templates/
courseware/
instructor_dashboard.html
View file @
cad673e9
<
%
inherit
file=
"main.html"
/>
<
%
inherit
file=
"
/
main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
/
static_content.html'
/>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'course'
/>
</
%
block>
<
%
include
file=
"course_navigation.html"
args=
"active_page='instructor'"
/>
<
%
include
file=
"
/courseware/
course_navigation.html"
args=
"active_page='instructor'"
/>
<section
class=
"container"
>
<div
class=
"instructor-dashboard-wrapper"
>
...
...
lms/templates/progress.html
→
lms/templates/
courseware/
progress.html
View file @
cad673e9
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
inherit
file=
"
/
main.html"
/>
<
%
namespace
name=
'static'
file=
'
/
static_content.html'
/>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'course'
/>
</
%
block>
<
%
namespace
name=
"pro
file_graphs"
file=
"profile_graphs
.js"
/>
<
%
namespace
name=
"pro
gress_graph"
file=
"/courseware/progress_graph
.js"
/>
<
%
block
name=
"title"
><title>
${course.number} Progress
</title></
%
block>
...
...
@@ -18,11 +18,11 @@
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/flot/jquery.flot.stack.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/flot/jquery.flot.symbol.js')}"
></script>
<script>
$
{
pro
file_graphs
.
body
(
grade_summary
,
course
.
grade_cutoffs
,
"grade-detail-graph"
)}
$
{
pro
gress_graph
.
body
(
grade_summary
,
course
.
grade_cutoffs
,
"grade-detail-graph"
)}
</script>
</
%
block>
<
%
include
file=
"course_navigation.html"
args=
"active_page='progress'"
/>
<
%
include
file=
"
/courseware/
course_navigation.html"
args=
"active_page='progress'"
/>
<section
class=
"container"
>
<div
class=
"profile-wrapper"
>
...
...
lms/templates/
profile_graphs
.js
→
lms/templates/
courseware/progress_graph
.js
View file @
cad673e9
File moved
lms/templates/gradebook_profilegraphs.html
deleted
100644 → 0
View file @
375d484f
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
"profile_graphs"
file=
"profile_graphs.js"
/>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/flot/jquery.flot.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/flot/jquery.flot.stack.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/flot/jquery.flot.symbol.js')}"
></script>
% for s in students:
<script>
$
{
profile_graphs
.
body
(
s
[
'grade_info'
][
'grade_summary'
],
"grade-detail-graph-"
+
str
(
s
[
'id'
]))}
</script>
%endfor
</
%
block>
<
%
include
file=
"navigation.html"
args=
"active_page=''"
/>
<section
class=
"container"
>
<div
class=
"gradebook-wrapper"
>
<section
class=
"gradebook-content"
>
<h1>
Gradebook
</h1>
<ol>
% for s in students:
<li>
<h2><a
href=
/profile/${s['id']}
>
${s['username']}
</a></h2>
<div
id=
"grade-detail-graph-${s['id']}"
style=
"width:1000px;height:300px;"
></div>
</li>
% endfor
</ol>
</section>
</div>
</section>
lms/templates/wiki/base.html
View file @
cad673e9
...
...
@@ -47,7 +47,7 @@
{% block body %}
{% if course %}
{% include "course_navigation.html" with active_page_context="wiki" %}
{% include "course
ware/course
_navigation.html" with active_page_context="wiki" %}
{% endif %}
<section
class=
"container wiki {{ selected_tab }}"
>
...
...
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