Exemplo n.º 1
0
def _staff_grading(tab, user, course, active_page):
    if has_access(user, course, 'staff'):
        link = reverse('staff_grading', args=[course.id])

        tab_name = "Staff grading"

        notifications  = open_ended_notifications.staff_grading_notifications(course, user)
        pending_grading = notifications['pending_grading']
        img_path = notifications['img_path']

        tab = [CourseTab(tab_name, link, active_page == "staff_grading", pending_grading, img_path)]
        return tab
    return []
Exemplo n.º 2
0
def _staff_grading(tab, user, course, active_page):
    if has_access(user, course, 'staff'):
        link = reverse('staff_grading', args=[course.id])

        tab_name = "Staff grading"

        notifications  = open_ended_notifications.staff_grading_notifications(course, user)
        pending_grading = notifications['pending_grading']
        img_path = notifications['img_path']

        tab = [CourseTab(tab_name, link, active_page == "staff_grading", pending_grading, img_path)]
        return tab
    return []
Exemplo n.º 3
0
def _staff_grading(tab, user, course, active_page, request):
    if has_access(user, course, 'staff'):
        link = reverse('staff_grading', args=[course.id])

        # Translators: "Staff grading" appears on a tab that allows
        # staff to view openended problems that require staff grading
        tab_name = _("Staff grading")

        notifications  = open_ended_notifications.staff_grading_notifications(course, user)
        pending_grading = notifications['pending_grading']
        img_path = notifications['img_path']

        tab = [CourseTab(tab_name, link, active_page == "staff_grading", pending_grading, img_path)]
        return tab
    return []
Exemplo n.º 4
0
def _staff_grading(tab, user, course, active_page, request):
    if has_access(user, course, 'staff'):
        link = reverse('staff_grading', args=[course.id])

        # Translators: "Staff grading" appears on a tab that allows
        # staff to view openended problems that require staff grading
        tab_name = _("Staff grading")

        notifications = open_ended_notifications.staff_grading_notifications(
            course, user)
        pending_grading = notifications['pending_grading']
        img_path = notifications['img_path']

        tab = [
            CourseTab(tab_name, link, active_page == "staff_grading",
                      pending_grading, img_path)
        ]
        return tab
    return []