Skip to content

Commit

Permalink
Merge pull request #4 from libremente/master
Browse files Browse the repository at this point in the history
Add Mobile Support
  • Loading branch information
caesar2164 authored Feb 6, 2017
2 parents 99c8ba4 + fd4fe56 commit ee095e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grademebutton/grademebutton.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def workbench_scenarios():
help="This is the text displayed on the button.",
)

# Decorate the view in order to support multiple devices e.g. mobile
# See: https://openedx.atlassian.net/wiki/display/MA/Course+Blocks+API
# section 'View @supports(multi_device) decorator'
@XBlock.supports('multi_device')
def student_view(self, context=None):
"""
Build the fragment for the default student view
Expand Down

0 comments on commit ee095e9

Please sign in to comment.