Skip to content

Commit

Permalink
removed feedback for non-logged in users
Browse files Browse the repository at this point in the history
  • Loading branch information
nilandev committed Jan 11, 2024
1 parent c44a732 commit f6a9a0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bloggy/templates/base-with-header-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
</a>
</div>
<main>
{% include 'widgets/feedback-form.html' %}
{% if user.is_authenticated %}
{% include 'widgets/feedback-form.html' %}
{% endif %}
{% block content %}{% endblock content %}
</main>
<footer class="footer mt-5">
Expand Down
4 changes: 3 additions & 1 deletion bloggy/templates/base-with-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
{% include "partials/header.html" %}
</header>
<main>
{% include 'widgets/feedback-form.html' %}
{% if user.is_authenticated %}
{% include 'widgets/feedback-form.html' %}
{% endif %}
{% block content %}{% endblock content %}
</main>
</body>
Expand Down

0 comments on commit f6a9a0c

Please sign in to comment.