• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uw-it-aca / myuw / 5124790886

pending completion
5124790886

Pull #2945

github

web-flow
Merge abe42b737 into 97a0bd1ad
Pull Request #2945: Feat/muwm 4072

94 of 94 new or added lines in 20 files covered. (100.0%)

17057 of 18654 relevant lines covered (91.44%)

9.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/myuw_vue/components/teaching/course/grading/delegates.vue
1
<template>
×
2
  <uw-card-property :title="`Delegate${gradeSubmissionDelegatesCount > 1 ? 's' : ''}`">
3
    <ul
4
      v-if="section.grade_submission_delegates && section.grade_submission_delegates.length"
5
      class="list-unstyled mb-1"
6
    >
7
      <li
8
        v-for="(delegate, i) in section.grade_submission_delegates"
9
        :key="i"
10
        :class="{ 'mb-1': i === section.grade_submission_delegates.length + 1 }"
11
      >
12
        {{ titleCaseName(delegate.person.display_name) }}
13
        ({{ titleCaseWord(delegate.level) }})
14
      </li>
15
    </ul>
16
    <div v-else>None assigned</div>
17
    <div>
18
      <span class="myuw-text-sm fst-italic">
19
        In an emergency, delegates can submit grades if instructors of record cannot.
20
      </span>
21
      <uw-collapsed-item
22
        v-if="!section.pastTerm"
23
        :part="gradingDelegateLearnMore"
24
        caller-id="GradingDelegates"
25
      >
26
        <template #collapsed-body>
27
          Grading delegates provide an alternative in case the official Instructor of Record (IoR)
28
          is unable to submit grades for any reason. You can
29
          <a v-if="!section.pastTerm" :href="gradeDelegateUrl" target="_blank">
30
            <span v-if="section.gradeSubmissionSectionDelegate">
31
              update grade submission delegates
32
            </span>
33
            <span v-else> add a grade submission delegate </span>
34
          </a>
35
          using MyClass Resources.
36
        </template>
37
      </uw-collapsed-item>
38
    </div>
39
  </uw-card-property>
40
</template>
41

×
42
<script>
43
import CardProperty from '../../../_templates/card-property.vue';
×
44
import CollapsedItem from '../../../_common/collapsed-part.vue';
×
45

46
export default {
47
  components: {
48
    'uw-card-property': CardProperty,
49
    'uw-collapsed-item': CollapsedItem,
50
  },
51
  props: {
52
    section: {
53
      type: Object,
54
      required: true,
55
    },
56
  },
57
  computed: {
58
    gradeSubmissionDelegatesCount() {
59
      if (this.section.grade_submission_delegates) {
10✔
60
        return this.section.grade_submission_delegates.length;
10✔
61
      }
62
      return 0;
×
63
    },
64
    gradeDelegateUrl() {
65
      return ''.concat(
10✔
66
        'https://sdb.admin.uw.edu/sisMyUWClass/uwnetid/pop/gradedelegate.aspx?quarter=',
67
        this.section.quarter,
68
        '+',
69
        this.section.year,
70
        '&sln=',
71
        this.section.sln
72
      );
73
      // MUWM-5145
74
    },
75
    gradingDelegateLearnMore() {
76
      return {
10✔
77
        title: 'Learn more',
78
        id: 'gradingDelegateLearnMore' + this.section.sln,
79
      };
80
    },
81
  },
82
};
×
83
</script>
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc