Added footer everywhere

This commit is contained in:
Akif9748 2022-09-17 00:51:52 +03:00
parent 412a7c1a50
commit b7b7de5efd
15 changed files with 47 additions and 22 deletions

View file

@ -44,6 +44,7 @@ Akf-forum has got an API for AJAX (fetch), other clients etc. And, you can learn
- categories page is need a update. - categories page is need a update.
- preview for send messages in markdown format. - preview for send messages in markdown format.
- desp => description - desp => description
- admin, view ips on user page.
## Major Version History ## Major Version History
- V4: Caching - V4: Caching

View file

@ -74,6 +74,7 @@
} }
</script> </script>
</div> </div>
<%- include("extra/footer") %>
</body> </body>

View file

@ -25,6 +25,8 @@
location.href = "/users/<%= member.id %>" location.href = "/users/<%= member.id %>"
}); });
</script> </script>
<%- include("extra/footer") %>
</body> </body>
</html> </html>

View file

@ -11,13 +11,13 @@
<%- include("extra/navbar") %> <%- include("extra/navbar") %>
<div class="threads"> <div class="threads">
<% categories.forEach(category=>{ %> <% categories.forEach(category=>{ %>
<a href="<%= category.getLink() %>" > <a href="<%= category.getLink() %>">
<div class="threads-box"> <div class="threads-box">
<div class="thread-box-title"> <div class="thread-box-title">
<%= category.name %> <%= category.name %>
</div> </div>
<div class="box-username"> <%if(user?.admin) {%> <div class="box-username"> <%if(user?.admin) {%>
<a class="btn-danger" onclick="fetch('/api/categories/<%= category.id %>/',{method:'DELETE'})"><i class="bx bx-trash bx-sm"></i></a> <a class="btn-danger" onclick="fetch('/api/categories/<%= category.id %>/',{method:'DELETE'})"><i class="bx bx-trash bx-sm"></i></a>
<% }; %><%= category.desp %> <% }; %><%= category.desp %>
</div> </div>
@ -51,5 +51,8 @@
</div> </div>
<% } %> <% } %>
<%- include("extra/footer") %>
</body> </body>
</html>

View file

@ -9,7 +9,7 @@
<form> <form>
<h2 class="title" style="align-self: baseline;">Name:</h2> <h2 class="title" style="align-self: baseline;">Name:</h2>
<input name="name" class="input" required maxlength="25" ></input> <input name="name" class="input" required maxlength="25"></input>
<h2 class="title" style="align-self: baseline;">Description:</h2> <h2 class="title" style="align-self: baseline;">Description:</h2>
<textarea rows="4" cols="50" name="desp" maxlength="256" class="input" required></textarea> <textarea rows="4" cols="50" name="desp" maxlength="256" class="input" required></textarea>
<button class="btn-primary" style="width:100%" type="submit">Create Category!</button> <button class="btn-primary" style="width:100%" type="submit">Create Category!</button>
@ -34,5 +34,8 @@
}); });
</script> </script>
<%- include("extra/footer") %>
</body> </body>
</html>

View file

@ -10,7 +10,7 @@
<form> <form>
<h2 class="title"style="align-self: baseline;">Title:</h2> <h2 class="title" style="align-self: baseline;">Title:</h2>
<input name="title" maxlength="128" class="input" required></input> <input name="title" maxlength="128" class="input" required></input>
<h2 class="title" style="align-self: baseline;">Content:</h2> <h2 class="title" style="align-self: baseline;">Content:</h2>
<textarea rows="4" cols="50" maxlength="1024" name="content" class="input" required></textarea> <textarea rows="4" cols="50" maxlength="1024" name="content" class="input" required></textarea>
@ -47,6 +47,8 @@
}); });
</script> </script>
<%- include("extra/footer") %>
</body> </body>
</html> </html>

View file

@ -9,6 +9,7 @@
<h1 style="color: var(--main);"><%= type %></h1> <h1 style="color: var(--main);"><%= type %></h1>
<h2 style="color: var(--second);"><%= error %></h2> <h2 style="color: var(--second);"><%= error %></h2>
<%- include("extra/footer") %>
</body> </body>

View file

@ -18,6 +18,7 @@
<input type="submit" style="width:100%" class="btn-primary" value="Login"> <input type="submit" style="width:100%" class="btn-primary" value="Login">
</form> </form>
<%- include("extra/footer") %>
</body> </body>

View file

@ -28,6 +28,8 @@
<% }); %> <% }); %>
</div> </div>
<%- include("extra/footer") %>
</body> </body>
</html> </html>

View file

@ -18,6 +18,7 @@
<input type="submit" class="btn-primary" style="width:100%;" value="Register"> <input type="submit" class="btn-primary" style="width:100%;" value="Register">
</form> </form>
<%- include("extra/footer") %>
</body> </body>

View file

@ -18,19 +18,19 @@
<div id="search"> <div id="search">
<form action="/search/messages" method="GET"> <form action="/search/messages" method="GET">
<input type="text" class="input" name="q" placeholder="Search for messages" /> <input type="text" class="input" name="q" placeholder="Search for messages" />
<input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" /> <input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" />
<input type="submit" value="Search" class="btn-primary" /> <input type="submit" value="Search" class="btn-primary" />
</form> </form>
</div> </div>
<div id="search"> <div id="search">
<form action="/search/threads" method="GET"> <form action="/search/threads" method="GET">
<input type="text" class="input" name="q" placeholder="Search for threads" /> <input type="text" class="input" name="q" placeholder="Search for threads" />
<input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" /> <input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" />
<input type="submit" value="Search" class="btn-primary" /> <input type="submit" value="Search" class="btn-primary" />
</form> </form>
</div> </div>
<%- include("extra/footer") %> <%- include("extra/footer") %>
</body> </body>

View file

@ -15,7 +15,7 @@
<div style="text-align:center;padding:8px"> <div style="text-align:center;padding:8px">
<a href="/categories/<%= thread.categoryID %>" class="title" id="title"><%= thread.title %></a> <a href="/categories/<%= thread.categoryID %>" class="title" id="title"><%= thread.title %></a>
<div class="date"> <div class="date">
<%= new Date(thread.time).toLocaleString() %> • Views: <%= thread.views %> <%= new Date(thread.time).toLocaleString() %> • Views: <%= thread.views %>
</div> </div>
@ -159,6 +159,7 @@
</div> </div>
</div> </div>
<%- include("extra/footer") %>
</body> </body>

View file

@ -57,5 +57,8 @@
</div> </div>
<% } %> <% } %>
<%- include("extra/footer") %>
</body> </body>
</html>

View file

@ -110,7 +110,7 @@ color: var(--anti);
<script> <script>
const converter = new showdown.Converter(); const converter = new showdown.Converter();
const about = document.getElementById("about") const about = document.getElementById("about")
about.innerHTML=converter.makeHtml(about.innerText); about.innerHTML = converter.makeHtml(about.innerText);
</script> </script>
<div class="box"> <div class="box">
@ -136,7 +136,8 @@ color: var(--anti);
<h2 class="box-value"><%= counts.thread %></h2> <h2 class="box-value"><%= counts.thread %></h2>
</div> </div>
</div> </div>
<%- include("extra/footer") %>
</body> </body>
<%- include("extra/footer") %>
</html> </html>

View file

@ -46,5 +46,8 @@
</div> </div>
<% } %> <% } %>
<%- include("extra/footer") %>
</body> </body>
</html>