front end fix

This commit is contained in:
Akif9748 2022-09-09 18:33:22 +03:00
parent 80a83d0f14
commit 0ed4a34c8c
2 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ Akf-forum has got an API for AJAX (fetch), other clients etc. And, you can learn
| IPs of users will add SecretModel | ⚪ | MEDIUM | | IPs of users will add SecretModel | ⚪ | MEDIUM |
| Better Auth | ⚪ | MEDIUM | | Better Auth | ⚪ | MEDIUM |
- Fix footer, theme, sonra - Fix footer, theme, sonra
- Version info to footer
- upload other photos, model for it - upload other photos, model for it
## Major Version History ## Major Version History

View File

@ -20,7 +20,7 @@
<%= thread.title %> <%= thread.title %>
</div> </div>
<div class="box-username"> <div class="box-username">
<% if (user && !thread.deleted){ %> <% if (user?.admin && !thread.deleted){ %>
<a class="btn-danger" onclick="fetch('/api/threads/<%= thread.id %>/',{method:'DELETE'})"><i class="bx bx-trash bx-sm"></i></a> <a class="btn-danger" onclick="fetch('/api/threads/<%= thread.id %>/',{method:'DELETE'})"><i class="bx bx-trash bx-sm"></i></a>
<% } %> <% } %>
<%= thread.author.name %> <div class="avatar"><img src="<%=thread.author.avatar %>"> </div> <%= thread.author.name %> <div class="avatar"><img src="<%=thread.author.avatar %>"> </div>