mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-22 20:10:40 +03:00
Added footer everywhere
This commit is contained in:
parent
412a7c1a50
commit
b7b7de5efd
15 changed files with 47 additions and 22 deletions
|
@ -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
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
location.href = "/users/<%= member.id %>"
|
location.href = "/users/<%= member.id %>"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -11,15 +11,15 @@
|
||||||
<%- 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>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,5 +51,8 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -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>
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
document.addEventListener("submit", async e => {
|
document.addEventListener("submit", async e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const data = new FormData(e.target);
|
const data = new FormData(e.target);
|
||||||
|
|
||||||
const response = await request("/api/categories/", "POST", {
|
const response = await request("/api/categories/", "POST", {
|
||||||
name: data.get("name"),
|
name: data.get("name"),
|
||||||
desp: data.get("desp")
|
desp: data.get("desp")
|
||||||
|
@ -34,5 +34,8 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -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>
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
|
|
||||||
<% }); %>
|
<% }); %>
|
||||||
</div>
|
</div>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -18,20 +18,20 @@
|
||||||
<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>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -57,5 +57,8 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -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>
|
|
@ -8,7 +8,7 @@
|
||||||
<link href='https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css' rel='stylesheet'>
|
<link href='https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css' rel='stylesheet'>
|
||||||
<link rel="stylesheet" href="/css/users.css" />
|
<link rel="stylesheet" href="/css/users.css" />
|
||||||
<link rel="stylesheet" href="/css/pages.css" />
|
<link rel="stylesheet" href="/css/pages.css" />
|
||||||
|
|
||||||
<%- include("extra/navbar") %>
|
<%- include("extra/navbar") %>
|
||||||
|
|
||||||
<div class="users">
|
<div class="users">
|
||||||
|
@ -46,5 +46,8 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<%- include("extra/footer") %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in a new issue