diff --git a/crowdsourcer/templates/crowdsourcer/authority_section_list.html b/crowdsourcer/templates/crowdsourcer/authority_section_list.html index edbe88b..164f6db 100644 --- a/crowdsourcer/templates/crowdsourcer/authority_section_list.html +++ b/crowdsourcer/templates/crowdsourcer/authority_section_list.html @@ -8,6 +8,11 @@

Sign in

Sign in {% else %}

Sections

+ {% if has_properties %} +

+ Optional feedback +

+ {% endif %} diff --git a/crowdsourcer/views/rightofreply.py b/crowdsourcer/views/rightofreply.py index a1d2920..beabb6a 100644 --- a/crowdsourcer/views/rightofreply.py +++ b/crowdsourcer/views/rightofreply.py @@ -14,6 +14,7 @@ Response, ResponseType, Section, + SessionProperties, ) from crowdsourcer.views.base import BaseQuestionView @@ -127,6 +128,9 @@ def get_context_data(self, **kwargs): section.complete = 0 context["ror_user"] = True + context["has_properties"] = SessionProperties.objects.filter( + marking_session=self.request.current_session, stage=response_type + ).exists() return context