Skip to content

Commit

Permalink
WIP access session props form from Right of Reply page
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 7, 2024
1 parent 9c21018 commit eac2117
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ <h1 class="mb-4">Sign in</h1>
<a href="{% url 'login' %}">Sign in</a>
{% else %}
<h1 class="mb-4">Sections</h1>
{% if has_properties %}
<h4>
<a href="{% session_url "authority_properties" authority_name "Right of Reply" %}">Optional feedback</a>
</h4>
{% endif %}
<table class="table">
<thead>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions crowdsourcer/views/rightofreply.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Response,
ResponseType,
Section,
SessionProperties,
)
from crowdsourcer.views.base import BaseQuestionView

Expand Down Expand Up @@ -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


Expand Down

0 comments on commit eac2117

Please sign in to comment.