diff --git a/lti_consumer/lti_consumer.py b/lti_consumer/lti_consumer.py index 943ada3d23ba9135361cebf0e7c2a88453ad2306..9a1d9108199fef3a28a50f1a1c475aa404bea37b 100644 --- a/lti_consumer/lti_consumer.py +++ b/lti_consumer/lti_consumer.py @@ -250,7 +250,6 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock): """ block_settings_key = 'lti_consumer' - icon_class = 'problem' display_name = String( display_name=_("Display Name"), @@ -594,6 +593,12 @@ class LtiConsumerXBlock(StudioEditableXBlockMixin, XBlock): raise LtiError(self.ugettext("Could not get user id for current request")) 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 def resource_link_id(self): """ diff --git a/setup.py b/setup.py index 0f007a0142ced2cba48cc805baebc9b82d1e6ac4..fa34929b94701da80056c34f657fdac7787d0647 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ def is_requirement(line): setup( name='lti_consumer-xblock', - version='1.3.0', + version='1.3.1', description='This XBlock implements the consumer side of the LTI specification.', packages=[ 'lti_consumer',