Skip to content

Commit ee5d1c6

Browse files
Ananya MaitiAnanya Maiti
Ananya Maiti
authored and
Ananya Maiti
committed
Fix proposal comment template parameters
1 parent f306c6e commit ee5d1c6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

junction/proposals/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ def detail_proposal(request, conference_slug, slug, hashid=None):
256256
"is_reviewer": is_reviewer,
257257
"is_section_reviewer": is_section_reviewer,
258258
"can_view_feedback": False,
259+
"schedule_item": False,
260+
"reviewers_comments": False,
261+
"reviewers_proposal_comment_form": False,
262+
"reviewers_only_proposal_comment_form": False,
263+
"reviewers_only_comments": False,
259264
"can_vote": permissions.is_proposal_voting_allowed(proposal),
260265
"public_voting_setting": public_voting_setting_value,
261266
}

junction/templates/proposals/detail/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{% endblock %}
2626

2727
{% block navbar_logo %}
28-
{% if conference.logo %}
28+
{% if proposal.conference.logo %}
2929
<a href="{% url "conference-detail" conference.slug %}">
3030
<img src="{{ conference.logo.url }}">
3131
</a>

junction/templates/proposals/detail/comments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h5 class="text-muted clear-margin vote-count">
4040
{% if comment.is_spam %}
4141
<div class="comment-description spam" id="comment-{{comment.id}}">
4242
<span>The comment is marked as spam.</span>
43-
{% if request.user.is_authenticated and request.user == comment.marked_marked_as_spam_by %}
43+
{% if request.user.is_authenticated and request.user == comment.marked_as_spam_by %}
4444
<a href="#" data-url="{{ comment.get_unmark_spam_url }}" class="js-unmark-spam">Unmark as spam</a>
4545
{% endif %}<br/><br/>
4646
{% else %}

0 commit comments

Comments
 (0)