Skip to content

Commit 8378185

Browse files
committed
WIP access session props form from Right of Reply page
1 parent d517779 commit 8378185

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

crowdsourcer/templates/crowdsourcer/authority_section_list.html

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ <h1 class="mb-4">Sign in</h1>
88
<a href="{% url 'login' %}">Sign in</a>
99
{% else %}
1010
<h1 class="mb-4">Sections</h1>
11+
{% if has_properties %}
12+
<h4>
13+
<a href="{% session_url "authority_properties" authority_name "Right of Reply" %}">Optional feedback</a>
14+
</h4>
15+
{% endif %}
1116
<table class="table">
1217
<thead>
1318
<tr>

crowdsourcer/views/rightofreply.py

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
Response,
1515
ResponseType,
1616
Section,
17+
SessionProperties,
1718
)
1819
from crowdsourcer.views.base import BaseQuestionView
1920

@@ -127,6 +128,9 @@ def get_context_data(self, **kwargs):
127128
section.complete = 0
128129

129130
context["ror_user"] = True
131+
context["has_properties"] = SessionProperties.objects.filter(
132+
marking_session=self.request.current_session, stage=response_type
133+
).exists()
130134
return context
131135

132136

0 commit comments

Comments
 (0)