Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
c10b1f61
Commit
c10b1f61
authored
Dec 09, 2015
by
Diana Huang
Committed by
Andy Armstrong
Dec 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update section names to match buttons.
parent
44196db2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
openassessment/templates/openassessmentblock/staff_area/oa_staff_area.html
+3
-3
openassessment/xblock/test/test_staff_area.py
+5
-5
No files found.
openassessment/templates/openassessmentblock/staff_area/oa_staff_area.html
View file @
c10b1f61
...
...
@@ -11,7 +11,7 @@
<div
class=
"openassessment__staff-tools wrapper--staff-tools wrapper--ui-staff is--hidden"
>
<div
class=
"staff-info ui-staff"
>
<h2
class=
"staff-info__title ui-staff__title"
>
<span
class=
"staff-info__title__copy"
>
{% trans "
Course Staff Tool
s" %}
</span>
<span
class=
"staff-info__title__copy"
>
{% trans "
Manage Individual Learner
s" %}
</span>
<button
class=
"ui-staff_close_button"
><span
class=
"sr"
>
{% trans "Close" %}
</span>
<i
class=
"icon fa fa-close"
aria-hidden=
"true"
></i></button>
</h2>
...
...
@@ -87,7 +87,7 @@
<div
class=
"openassessment__staff-info wrapper--staff-info wrapper--ui-staff is--hidden"
>
<div
class=
"staff-info ui-staff"
>
<h2
class=
"staff-info__title ui-staff__title"
>
<span
class=
"staff-info__title__copy"
>
{% trans "
Course Staff Information
" %}
</span>
<span
class=
"staff-info__title__copy"
>
{% trans "
View Assignment Statistics
" %}
</span>
<button
class=
"ui-staff_close_button"
><span
class=
"sr"
>
{% trans "Close" %}
</span>
<i
class=
"icon fa fa-close"
aria-hidden=
"true"
></i></button>
</h2>
...
...
@@ -168,7 +168,7 @@
<div
class=
"openassessment__staff-grading wrapper--staff-grading wrapper--ui-staff is--hidden"
>
<div
class=
"staff-grading ui-staff"
>
<h2
class=
"staff-grading__title ui-staff__title"
>
<span
class=
"staff-info__title__copy"
>
{% trans "
Staff Grading
" %}
</span>
<span
class=
"staff-info__title__copy"
>
{% trans "
Grade Available Responses
" %}
</span>
<button
class=
"ui-staff_close_button"
><span
class=
"sr"
>
{% trans "Close" %}
</span>
<i
class=
"icon fa fa-close"
aria-hidden=
"true"
></i></button>
</h2>
...
...
openassessment/xblock/test/test_staff_area.py
View file @
c10b1f61
...
...
@@ -81,12 +81,12 @@ class TestCourseStaff(XBlockHandlerTestCase):
xblock
.
scope_ids
.
usage_id
,
False
,
False
,
"Bob"
)
resp
=
self
.
request
(
xblock
,
'render_staff_area'
,
json
.
dumps
({}))
self
.
assertNotIn
(
"
Staff Info
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
self
.
assertNotIn
(
"
view assignment statistics
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
# If we ARE course staff, then we should see the debug info
xblock
.
xmodule_runtime
.
user_is_staff
=
True
resp
=
self
.
request
(
xblock
,
'render_staff_area'
,
json
.
dumps
({}))
self
.
assertIn
(
"
staff info
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
self
.
assertIn
(
"
view assignment statistics
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
@scenario
(
'data/basic_scenario.xml'
,
user_id
=
'Bob'
)
def
test_course_student_debug_info
(
self
,
xblock
):
...
...
@@ -113,7 +113,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# If the client requests the staff info directly, they should get an error
resp
=
self
.
request
(
xblock
,
'render_staff_area'
,
json
.
dumps
({}))
self
.
assertNotIn
(
"
course staff information
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
self
.
assertNotIn
(
"
view assignment statistics
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
self
.
assertIn
(
"do not have permission"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
# The container page should not contain a staff info section at all
...
...
@@ -130,7 +130,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# Verify that we can render without error
resp
=
self
.
request
(
xblock
,
'render_staff_area'
,
json
.
dumps
({}))
decoded_response
=
resp
.
decode
(
'utf-8'
)
.
lower
()
self
.
assertIn
(
"
course staff information
"
,
decoded_response
)
self
.
assertIn
(
"
view assignment statistics
"
,
decoded_response
)
# Confirm example-based-assessment does not show up; it is not date
# driven so its start / due dates are not relevant
...
...
@@ -154,7 +154,7 @@ class TestCourseStaff(XBlockHandlerTestCase):
# Verify that we can render without error
resp
=
self
.
request
(
xblock
,
'render_staff_area'
,
json
.
dumps
({}))
self
.
assertIn
(
"
course staff information
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
self
.
assertIn
(
"
view assignment statistics
"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
self
.
assertIn
(
"n/a"
,
resp
.
decode
(
'utf-8'
)
.
lower
())
@scenario
(
'data/basic_scenario.xml'
,
user_id
=
'Bob'
)
...
...
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