Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
90e0b0e4
Commit
90e0b0e4
authored
Jul 16, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename "Student Answers Dashboard" to "Instructor Tool".
parent
dae27b34
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
15 deletions
+15
-15
problem_builder/__init__.py
+1
-1
problem_builder/instructor_tool.py
+10
-10
problem_builder/public/css/instructor_tool.css
+0
-0
problem_builder/public/js/instructor_tool.js
+1
-1
problem_builder/templates/html/instructor_tool.html
+1
-1
problem_builder/tests/integration/test_instructor_tool.py
+0
-0
setup.py
+2
-2
No files found.
problem_builder/__init__.py
View file @
90e0b0e4
...
...
@@ -2,7 +2,7 @@ from .mentoring import MentoringBlock
from
.answer
import
AnswerBlock
,
AnswerRecapBlock
from
.choice
import
ChoiceBlock
from
.dashboard
import
DashboardBlock
from
.
student_answers_dashboard
import
StudentAnswersDashboard
Block
from
.
instructor_tool
import
InstructorTool
Block
from
.mcq
import
MCQBlock
,
RatingBlock
from
.mrq
import
MRQBlock
from
.message
import
MentoringMessageBlock
...
...
problem_builder/
student_answers_dashboard
.py
→
problem_builder/
instructor_tool
.py
View file @
90e0b0e4
...
...
@@ -18,7 +18,7 @@
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
#
"""
Student Answers Dashboard
: An XBlock for instructors to export student answers from a course.
Instructor Tool
: An XBlock for instructors to export student answers from a course.
All processing is done offline.
"""
...
...
@@ -39,16 +39,16 @@ def _(text):
@XBlock.needs
(
"i18n"
)
@XBlock.wants
(
'user'
)
class
StudentAnswersDashboard
Block
(
XBlock
):
class
InstructorTool
Block
(
XBlock
):
"""
StudentAnswersDashboard
Block: An XBlock for instructors to export student answers from a course.
InstructorTool
Block: An XBlock for instructors to export student answers from a course.
All processing is done offline.
"""
display_name
=
String
(
display_name
=
_
(
"Title (Display name)"
),
help
=
_
(
"Title to display"
),
default
=
_
(
"
Student Answers Dashboard
"
),
default
=
_
(
"
Instructor Tool
"
),
scope
=
Scope
.
settings
)
active_export_task_id
=
String
(
...
...
@@ -67,13 +67,13 @@ class StudentAnswersDashboardBlock(XBlock):
@property
def
display_name_with_default
(
self
):
return
"
Student Answers Dashboard
"
return
"
Instructor Tool
"
def
author_view
(
self
,
context
=
None
):
""" Studio View """
# Warn the user that this block will only work from the LMS. (Since the CMS uses
# different celery queues; our task listener is waiting for tasks on the LMS queue)
return
Fragment
(
u'<p>
Student Answers Dashboard
Block</p><p>This block only works from the LMS.</p>'
)
return
Fragment
(
u'<p>
Instructor Tool
Block</p><p>This block only works from the LMS.</p>'
)
def
check_pending_export
(
self
):
"""
...
...
@@ -106,16 +106,16 @@ class StudentAnswersDashboardBlock(XBlock):
_
(
'Long Answer'
):
'AnswerBlock'
,
}
html
=
loader
.
render_template
(
'templates/html/
student_answers_dashboard
.html'
,
'templates/html/
instructor_tool
.html'
,
{
'block_choices'
:
block_choices
}
)
fragment
=
Fragment
(
html
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/
student_answers_dashboard
.css'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/
student_answers_dashboard
.js'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/
instructor_tool
.css'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/
instructor_tool
.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/vendor/underscore-min.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/vendor/backbone-min.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/vendor/backbone.paginator.min.js'
))
fragment
.
initialize_js
(
'
StudentAnswersDashboard
Block'
)
fragment
.
initialize_js
(
'
InstructorTool
Block'
)
return
fragment
@property
...
...
problem_builder/public/css/
student_answers_dashboard
.css
→
problem_builder/public/css/
instructor_tool
.css
View file @
90e0b0e4
File moved
problem_builder/public/js/
student_answers_dashboard
.js
→
problem_builder/public/js/
instructor_tool
.js
View file @
90e0b0e4
function
StudentAnswersDashboard
Block
(
runtime
,
element
)
{
function
InstructorTool
Block
(
runtime
,
element
)
{
'use strict'
;
var
$element
=
$
(
element
);
...
...
problem_builder/templates/html/
student_answers_dashboard
.html
→
problem_builder/templates/html/
instructor_tool
.html
View file @
90e0b0e4
{% load i18n %}
<h2>
{% trans "
Student Answers Dashboard
" %}
</h3>
<h2>
{% trans "
Instructor Tool
" %}
</h3>
<div
class=
"data-export-options"
>
<div
class=
"data-export-header"
>
...
...
problem_builder/tests/integration/test_
student_answers_dashboard
.py
→
problem_builder/tests/integration/test_
instructor_tool
.py
View file @
90e0b0e4
This diff is collapsed.
Click to expand it.
setup.py
View file @
90e0b0e4
...
...
@@ -54,8 +54,8 @@ BLOCKS = [
'pb-choice = problem_builder:ChoiceBlock'
,
'pb-dashboard = problem_builder:DashboardBlock'
,
'pb-data-export = problem_builder:
StudentAnswersDashboardBlock'
,
# Deprecated; use pb-student-answers-dashboard
instead
'pb-
student-answers-dashboard = problem_builder:StudentAnswersDashboard
Block'
,
'pb-data-export = problem_builder:
InstructorToolBlock'
,
# Deprecated; use pb-instructor-tool
instead
'pb-
instructor-tool = problem_builder:InstructorTool
Block'
,
]
setup
(
...
...
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