Skip to content

Commit c851014

Browse files
committed
fix navbar bug introduced in previous commit
1 parent 442cce5 commit c851014

File tree

1 file changed

+2
-1
lines changed
  • pytition/petition/templates/layouts

1 file changed

+2
-1
lines changed

pytition/petition/templates/layouts/nav.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
</div>
5050
</nav>
5151

52+
{% if petition %}
5253
<div class="modal fade" id="report_modal"
5354
data-report-success="{% trans "Thank you for your reporting!" %}"
5455
data-report-failure="{% trans "Reporting failed, please retry later." %}">
@@ -84,5 +85,5 @@ <h4 class="modal-title">{% trans "Report this petition to moderation" %}</h4>
8485
</div>
8586
</div>
8687
</div>
87-
88+
{% endif %}
8889
{% endblock %}

0 commit comments

Comments
 (0)