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
6cc91693
Commit
6cc91693
authored
Apr 14, 2017
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily enable mobile support for testing purposes
parent
a4cc464c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
problem_builder/dashboard.py
+1
-0
problem_builder/mentoring.py
+2
-0
No files found.
problem_builder/dashboard.py
View file @
6cc91693
...
@@ -382,6 +382,7 @@ class DashboardBlock(StudioEditableXBlockMixin, ExportMixin, XBlock):
...
@@ -382,6 +382,7 @@ class DashboardBlock(StudioEditableXBlockMixin, ExportMixin, XBlock):
if
child_isinstance
(
mentoring_block
,
child_id
,
MCQBlock
):
if
child_isinstance
(
mentoring_block
,
child_id
,
MCQBlock
):
yield
child_id
yield
child_id
@XBlock.supports
(
"multi_device"
)
# Mark as mobile-friendly
def
student_view
(
self
,
context
=
None
):
# pylint: disable=unused-argument
def
student_view
(
self
,
context
=
None
):
# pylint: disable=unused-argument
"""
"""
Standard view of this XBlock.
Standard view of this XBlock.
...
...
problem_builder/mentoring.py
View file @
6cc91693
...
@@ -439,6 +439,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerWithNestedXBlocksMixin,
...
@@ -439,6 +439,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerWithNestedXBlocksMixin,
return
Score
(
score
,
int
(
round
(
score
*
100
)),
correct
,
incorrect
,
partially_correct
)
return
Score
(
score
,
int
(
round
(
score
*
100
)),
correct
,
incorrect
,
partially_correct
)
@XBlock.supports
(
"multi_device"
)
# Mark as mobile-friendly
def
student_view
(
self
,
context
):
def
student_view
(
self
,
context
):
from
.questionnaire
import
QuestionnaireAbstractBlock
# Import here to avoid circular dependency
from
.questionnaire
import
QuestionnaireAbstractBlock
# Import here to avoid circular dependency
...
@@ -1068,6 +1069,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
...
@@ -1068,6 +1069,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
def
show_extended_feedback
(
self
):
def
show_extended_feedback
(
self
):
return
self
.
extended_feedback
and
self
.
max_attempts_reached
return
self
.
extended_feedback
and
self
.
max_attempts_reached
@XBlock.supports
(
"multi_device"
)
# Mark as mobile-friendly
def
student_view
(
self
,
context
):
def
student_view
(
self
,
context
):
fragment
=
Fragment
()
fragment
=
Fragment
()
children_contents
=
[]
children_contents
=
[]
...
...
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