From 8e38a9b536e3c4cba2f2edae2757d7c32adcd8d5 Mon Sep 17 00:00:00 2001 From: dzhuang Date: Fri, 19 May 2017 15:45:43 +0800 Subject: [PATCH] view_participant_masked_profile continued. Show "ME" when the request.user is visiting his/her own gradebook or single grade. --- course/templates/course/gradebook-participant.html | 2 +- course/templates/course/gradebook-single.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/course/templates/course/gradebook-participant.html b/course/templates/course/gradebook-participant.html index b0e07e73..4d1ea390 100644 --- a/course/templates/course/gradebook-participant.html +++ b/course/templates/course/gradebook-participant.html @@ -38,7 +38,7 @@ {% else %} {% trans "User" %} - {{ grade_participation.user.get_masked_profile }} + {{ grade_participation.user.get_masked_profile }}{% if grade_participation.user == request.user %}({% trans "ME" %}){% endif %} {% endif %} diff --git a/course/templates/course/gradebook-single.html b/course/templates/course/gradebook-single.html index 4dc7af13..757010c3 100644 --- a/course/templates/course/gradebook-single.html +++ b/course/templates/course/gradebook-single.html @@ -20,7 +20,7 @@ {% if not pperm.view_participant_masked_profile %} {{ grade_participation.user.get_full_name }} ({{ grade_participation.user.username }}) {% else %} - {{ grade_participation.user.get_masked_profile }} + {{ grade_participation.user.get_masked_profile }}{% if grade_participation.user == request.user %}({% trans "ME" %}){% endif %} {% endif %} -- GitLab