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
893d2251
Commit
893d2251
authored
Sep 19, 2013
by
Felipe Montoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Something for the user dashboard
parent
5f786454
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/instructor/views/legacy.py
+2
-2
lms/templates/dashboard.html
+2
-2
No files found.
lms/djangoapps/instructor/views/legacy.py
View file @
893d2251
...
@@ -56,7 +56,7 @@ import track.views
...
@@ -56,7 +56,7 @@ import track.views
from
mitxmako.shortcuts
import
render_to_string
from
mitxmako.shortcuts
import
render_to_string
from
xblock.field_data
import
DictFieldData
from
xblock.field_data
import
DictFieldData
from
xblock.fields
import
ScopeIds
from
xblock.fields
import
ScopeIds
from
django.utils.translation
import
ugettext
as
_u
from
bulk_email.models
import
CourseEmail
from
bulk_email.models
import
CourseEmail
from
html_to_text
import
html_to_text
from
html_to_text
import
html_to_text
...
@@ -108,7 +108,7 @@ def instructor_dashboard(request, course_id):
...
@@ -108,7 +108,7 @@ def instructor_dashboard(request, course_id):
# assemble some course statistics for output to instructor
# assemble some course statistics for output to instructor
def
get_course_stats_table
():
def
get_course_stats_table
():
datatable
=
{
'header'
:
[
'Statistic'
,
'Value'
],
datatable
=
{
'header'
:
[
'Statistic'
,
'Value'
],
'title'
:
'Course Statistics At A Glance'
,
'title'
:
_u
(
'Course Statistics At A Glance'
)
,
}
}
data
=
[[
'# Enrolled'
,
CourseEnrollment
.
objects
.
filter
(
course_id
=
course_id
,
is_active
=
1
)
.
count
()]]
data
=
[[
'# Enrolled'
,
CourseEnrollment
.
objects
.
filter
(
course_id
=
course_id
,
is_active
=
1
)
.
count
()]]
data
+=
[[
'Date'
,
timezone
.
now
()
.
isoformat
()]]
data
+=
[[
'Date'
,
timezone
.
now
()
.
isoformat
()]]
...
...
lms/templates/dashboard.html
View file @
893d2251
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
<input
name=
"course_id"
id=
"email_settings_course_id"
type=
"hidden"
/>
<input
name=
"course_id"
id=
"email_settings_course_id"
type=
"hidden"
/>
<label>
${_("Receive course emails")}
<input
type=
"checkbox"
id=
"receive_emails"
name=
"receive_emails"
/></label>
<label>
${_("Receive course emails")}
<input
type=
"checkbox"
id=
"receive_emails"
name=
"receive_emails"
/></label>
<div
class=
"submit"
>
<div
class=
"submit"
>
<input
type=
"submit"
id=
"submit"
value=
"
{_(Save Settings
)}"
/>
<input
type=
"submit"
id=
"submit"
value=
"
${_("
Save
Settings
"
)}"
/>
</div>
</div>
</form>
</form>
...
@@ -393,7 +393,7 @@
...
@@ -393,7 +393,7 @@
<input
name=
"course_id"
id=
"unenroll_course_id"
type=
"hidden"
/>
<input
name=
"course_id"
id=
"unenroll_course_id"
type=
"hidden"
/>
<input
name=
"enrollment_action"
type=
"hidden"
value=
"unenroll"
/>
<input
name=
"enrollment_action"
type=
"hidden"
value=
"unenroll"
/>
<div
class=
"submit"
>
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"
{_(Unregister
)}"
/>
<input
name=
"submit"
type=
"submit"
value=
"
${_("
Unregister
"
)}"
/>
</div>
</div>
</form>
</form>
...
...
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