From c35cb6a89351498a0f2393ce521cb74decbd9eb1 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 21 Dec 2014 13:47:36 -0600 Subject: [PATCH] Don't show flow result comments to students --- course/grades.py | 2 +- course/templates/course/gradebook-single.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/course/grades.py b/course/grades.py index a7e00c38..544c5238 100644 --- a/course/grades.py +++ b/course/grades.py @@ -738,7 +738,7 @@ def view_single_grade(pctx, participation_id, opportunity_id): "state_machine": state_machine, "flow_sessions": flow_sessions, "allow_session_actions": allow_session_actions, - "show_page_grades": pctx.role in [ + "show_privileged_info": pctx.role in [ participation_role.instructor, participation_role.teaching_assistant ], diff --git a/course/templates/course/gradebook-single.html b/course/templates/course/gradebook-single.html index c9d864ca..c21b4c7b 100644 --- a/course/templates/course/gradebook-single.html +++ b/course/templates/course/gradebook-single.html @@ -111,7 +111,7 @@ ID State Result - {% if show_page_grades %} + {% if show_privileged_info %} Pages {% endif %} {% if allow_session_actions %} @@ -162,7 +162,7 @@ {% else %} (none) {% endif %} - {% if flow_session.result_comment %} + {% if show_privileged_info and flow_session.result_comment %}

Notes: {{ flow_session.result_comment|linebreaks }} @@ -170,7 +170,7 @@ {% endif %} - {% if show_page_grades and flow_session.answer_visits %} + {% if show_privileged_info and flow_session.answer_visits %} -- GitLab