Skip to content

Commit

Permalink
Update dashboard.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DogukanUrker committed Jan 20, 2024
1 parent 59eb216 commit cc35721
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions templates/tailwindUI/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,17 @@ <h1 class="my-4 text-4xl font-medium select-none text-center">Posts</h1>
class="hover:text-rose-500 duration-150 font-medium"
><i class="ti ti-edit mr-1 text-2xl"></i
></a>
{% if recaptcha %}
<script src="https://www.google.com/recaptcha/api.js"></script>
<script src="{{ url_for('static', filename='js/recaptcha.js') }}"></script>
<form method="post" id="recaptchaForm">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="hidden" name="postID" value="{{post[0]}}" />
<button
type="submit"
data-sitekey="{{ siteKey }}"
data-callback="onSubmit"
data-action="submit"
class="g-recaptcha hover:text-rose-500 duration-150 font-medium"
>
<i class="ti ti-trash-x mr-1 text-2xl"></i>
</button>
</form>
{% else %}
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="hidden" name="postID" value="{{post[0]}}" />
<button
type="submit"
name="postDeleteButton"
class="hover:text-rose-500 duration-150 font-medium"
>
<i class="ti ti-trash-x mr-1 text-2xl"></i>
</button>
</form>
{% endif %}
</section>
<div class="flex items-center justify-between my-2">
<p class="flex ">
Expand Down

0 comments on commit cc35721

Please sign in to comment.