assignmentListItemScore.handlebars 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <span class="non-screenreader" aria-hidden="true">
  2. {{#unless hideGrade}}
  3. {{#ifAll submission submission.excused}}
  4. {{#t}}Excused{{/t}}
  5. {{else}}
  6. {{#ifAll submission submission.submitted_or_graded}}
  7. {{#with submission}}
  8. {{#if notYetGraded}}
  9. <span class="score-display">
  10. {{#t "empty_points_possible"}}
  11. -/{{pointsPossible}} pts
  12. {{/t}}
  13. </span>
  14. &nbsp;&#124;&nbsp;
  15. <span class="grade-display">
  16. {{#t "not_yet_graded"}}
  17. <em>Not Yet Graded</em>
  18. {{/t}}
  19. </span>
  20. {{else}}
  21. <span class="score-display">
  22. {{#t "score_with_points_possible"}}
  23. <b>{{score}}</b>/{{pointsPossible}} pts
  24. {{/t}}
  25. </span>
  26. {{#ifAll gradeDisplay pointsPossible}}
  27. &nbsp;&#124;&nbsp;
  28. {{/ifAll}}
  29. {{#if gradeDisplay}}
  30. <span class="grade-display">
  31. <strong>
  32. {{gradeDisplay}}
  33. </strong>
  34. </span>
  35. {{/if}}
  36. {{/if}}
  37. {{/with}}
  38. {{else}}
  39. <span data-tooltip="" class="score-display" title='{{#t "no_submission"}}No Submission{{/t}}'>
  40. {{#t "empty_points_possible"}}
  41. -/{{pointsPossible}} pts
  42. {{/t}}
  43. </span>
  44. {{/ifAll}}
  45. {{/ifAll}}
  46. {{/unless}}
  47. </span>
  48. <span class="screenreader-only">
  49. {{#if hideGrade}}
  50. {{#t "assignment_grading_type_is_not_graded"}}
  51. This assignment will not be assigned a grade.
  52. {{/t}}
  53. {{else}}
  54. {{#ifAll submission submission.excused}}
  55. {{#t}}This assignment has been excused.{{/t}}
  56. {{else}}
  57. {{#ifAll submission submission.submitted_or_graded}}
  58. {{#with submission}}
  59. {{#if notYetGraded}}
  60. {{#t "assignment_not_yet_graded_screenreader"}}
  61. Assignment not yet graded. {{pointsPossible}} points possible.
  62. {{/t}}
  63. {{else}}
  64. {{#t "score_with_points_possible_screenreader"}}
  65. Score: {{score}} out of {{pointsPossible}} points.
  66. {{/t}}
  67. {{gradeDisplayForScreenreader}}
  68. {{/if}}
  69. {{/with}}
  70. {{else}}
  71. {{#t "no_submission_for_assignment_screenreader"}}
  72. No submission for this assignment. {{pointsPossible}} points possible.
  73. {{/t}}
  74. {{/ifAll}}
  75. {{/ifAll}}
  76. {{/if}}
  77. </span>