diff --git a/app/helpers/gradebooks_helper.rb b/app/helpers/gradebooks_helper.rb index 1e017638963..026e500e7d3 100644 --- a/app/helpers/gradebooks_helper.rb +++ b/app/helpers/gradebooks_helper.rb @@ -69,6 +69,11 @@ module GradebooksHelper :icon_class => 'icon-filmstrip', :screenreader_text => I18n.t('icons.media_submission', 'Media Submission') } + when 'student_annotation' + { + icon_class: 'icon-annotate', + screenreader_text: I18n.t('Student Annotation') + } end end diff --git a/spec/helpers/gradebooks_helper_spec.rb b/spec/helpers/gradebooks_helper_spec.rb index 46629553fb0..4925a1e4bdc 100644 --- a/spec/helpers/gradebooks_helper_spec.rb +++ b/spec/helpers/gradebooks_helper_spec.rb @@ -226,6 +226,11 @@ describe GradebooksHelper do expect(score_display).to eq '-' end end + + it "shows an 'annotate' icon when the submission is a student annotation" do + submission.submission_type = 'student_annotation' + expect(score_icon['class']).to include 'icon-annotate' + end end end