Skip to content
Snippets Groups Projects
Unverified Commit 1106f6ac authored by Dillon Dumesnil's avatar Dillon Dumesnil
Browse files

AA-167: Making icon_class dynamic for LTI

parent bb14a649
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,6 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock): ...@@ -250,7 +250,6 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock):
""" """
block_settings_key = 'lti_consumer' block_settings_key = 'lti_consumer'
icon_class = 'problem'
display_name = String( display_name = String(
display_name=_("Display Name"), display_name=_("Display Name"),
...@@ -594,6 +593,12 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock): ...@@ -594,6 +593,12 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock):
raise LtiError(self.ugettext("Could not get user id for current request")) raise LtiError(self.ugettext("Could not get user id for current request"))
return six.text_type(six.moves.urllib.parse.quote(user_id)) return six.text_type(six.moves.urllib.parse.quote(user_id))
def get_icon_class(self):
""" Returns the icon class """
if self.graded and self.has_score: # pylint: disable=no-member
return 'problem'
return 'other'
@property @property
def resource_link_id(self): def resource_link_id(self):
""" """
......
...@@ -46,7 +46,7 @@ def is_requirement(line): ...@@ -46,7 +46,7 @@ def is_requirement(line):
setup( setup(
name='lti_consumer-xblock', name='lti_consumer-xblock',
version='1.3.0', version='1.3.1',
description='This XBlock implements the consumer side of the LTI specification.', description='This XBlock implements the consumer side of the LTI specification.',
packages=[ packages=[
'lti_consumer', 'lti_consumer',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment