Skip to content

Commit

Permalink
Fix proposal comment template parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya Maiti authored and Ananya Maiti committed May 7, 2023
1 parent f306c6e commit 0f79d8c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions junction/proposals/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ def detail_proposal(request, conference_slug, slug, hashid=None):
"is_reviewer": is_reviewer,
"is_section_reviewer": is_section_reviewer,
"can_view_feedback": False,
"schedule_item": False,
"reviewers_comments": False,
"reviewers_proposal_comment_form": False,
"reviewers_only_proposal_comment_form": False,
"reviewers_only_comments": False,
"can_vote": permissions.is_proposal_voting_allowed(proposal),
"public_voting_setting": public_voting_setting_value,
}
Expand Down
5 changes: 0 additions & 5 deletions junction/templates/proposals/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
<span class="start_date">{{ conference.start_date }}</span>
<span class="end_date">{{ conference.end_date }}</span>
</b>
{% if is_proposal_reviewer %}
<a class='btn btn-primary pull-right' href="{% url 'proposal-dashboard' conference.slug %}">
Reviewer Dashboard
</a>
{% endif %}
<span class="status status-{{conference.status}}">
{{ conference.get_status_display }}
</span>
Expand Down
2 changes: 1 addition & 1 deletion junction/templates/proposals/detail/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{% endblock %}

{% block navbar_logo %}
{% if conference.logo %}
{% if proposal.conference.logo %}
<a href="{% url "conference-detail" conference.slug %}">
<img src="{{ conference.logo.url }}">
</a>
Expand Down
2 changes: 1 addition & 1 deletion junction/templates/proposals/detail/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h5 class="text-muted clear-margin vote-count">
{% if comment.is_spam %}
<div class="comment-description spam" id="comment-{{comment.id}}">
<span>The comment is marked as spam.</span>
{% if request.user.is_authenticated and request.user == comment.marked_marked_as_spam_by %}
{% if request.user.is_authenticated and request.user == comment.marked_as_spam_by %}
<a href="#" data-url="{{ comment.get_unmark_spam_url }}" class="js-unmark-spam">Unmark as spam</a>
{% endif %}<br/><br/>
{% else %}
Expand Down

0 comments on commit 0f79d8c

Please sign in to comment.