mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 13:20:41 +03:00
92 lines
No EOL
2.7 KiB
Text
92 lines
No EOL
2.7 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<%- include("extra/meta", {title: "Thread list!" }) %>
|
|
|
|
|
|
<body style="text-align: center;">
|
|
<%- include("extra/navbar") %>
|
|
|
|
<link rel="stylesheet" href="/css/thread.css" />
|
|
<% if (user){ %>
|
|
<script type="module" src="/js/thread.js"></script>
|
|
<% }%>
|
|
|
|
|
|
<h1 style="font-size: 35px;color: #4d18e6;" ><%= thread.title %></h1>
|
|
<h3 >View count: <%= thread.views %></h1>
|
|
|
|
<h2 style="display:inline;">By <a href="<%='/users/' + thread.author.id %>"> <%= thread.author.name %></a>
|
|
<img class="circle" src="<%=thread.author.avatar %>">
|
|
</h2>
|
|
|
|
<% if (user && !thread.deleted){ %>
|
|
|
|
<a onclick="delete_thread('<%= thread.id %>' )" value=style="display:inline;" >DELETE</a>
|
|
<a onclick="edit_thread('<%= thread.id %>')" style="display:inline;" >EDIT</a>
|
|
<% } else if (thread.deleted) { %>
|
|
<h3 style="display:inline;">This thread has been deleted</h3>
|
|
<a onclick="undelete_thread('<%= thread.id %>')" style="display:inline;" >UNDELETE</a>
|
|
|
|
<% }; %>
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
<div id="messages" value="<%= thread.id %>">
|
|
<% if (!user){ %>
|
|
<h1>Guests cant view messages!</h1>
|
|
<% }%>
|
|
|
|
<!--EXAMPLE MESSAGE-->
|
|
<div class="message" id="message-3">
|
|
|
|
<h3 style="float:right;">26.08.2022 15:37:42</h3>
|
|
|
|
<h2>
|
|
<img class="circle" src="https://cdn.discordapp.com/avatars/539506680140922890/abd74d10aac094fc8a5ad5c86f29fdb9.png?size=1024">
|
|
<a href="/users/0"> Akif9748</a>:
|
|
</h2>
|
|
|
|
<p>Example message for development</p><br>
|
|
<div id="message-delete-3">
|
|
<a onclick="delete_message('3');">DELETE</a>
|
|
<a onclick="edit_message('3');">EDIT</a>
|
|
|
|
</div>
|
|
<div style="float: right;">
|
|
<h3 id="count3" style="display:inline;">0</h3>
|
|
<a onclick="react('3', 'like');">+🔼</a>
|
|
<a onclick="react('3', 'dislike');">-🔽</a>
|
|
</div>
|
|
</div>
|
|
<!--EXAMPLE MESSAGE END-->
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
|
|
<form id="send">
|
|
<textarea rows="4" cols="133" name="content"></textarea>
|
|
<input name="threadID" type="hidden" value="<%= thread.id %>"></input>
|
|
|
|
<br>
|
|
<% if (user){ %>
|
|
<button type="submit">Send!</button>
|
|
<%} else {%>
|
|
<button disabled>Login for send</button>
|
|
<% }%>
|
|
|
|
</form>
|
|
|
|
|
|
<script>
|
|
document.getElementById("message-<%= scroll %>").scrollIntoView();
|
|
</script>
|
|
|
|
<!-- BURAYA Bİ İLERİ BİR GERİ SAYFA BUTONU GELMEZ Mİ BE-->
|
|
</body>
|
|
|
|
</html> |