mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 05:10:41 +03:00
commit
e5edf87a83
7 changed files with 16 additions and 16 deletions
|
@ -10,10 +10,10 @@
|
|||
<h1>Welcome to the admin panel of the forum, <%= user.name %>!</h1>
|
||||
|
||||
<form action="/admin/" method="POST">
|
||||
<h2>Write an ID for make admin:</h2>
|
||||
<h2>Write an ID to give someone admin permissions:</h2>
|
||||
<input name="userid"></input>
|
||||
<hr>
|
||||
<button class="buyuk" type="submit">Make admin!</button>
|
||||
<button class="buyuk" type="submit">Give admin permissions!</button>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a href="/threads">THREADS</a>
|
||||
<a href="/users">USERS</a>
|
||||
<a href="/search">SEARCH</a>
|
||||
<a href="/threads/open/">OPEN THREAD</a>
|
||||
<a href="/threads/open/">CREATE THREAD</a>
|
||||
|
||||
<% if (user){ %>
|
||||
<div style="float: right;" class="user" id="user">
|
||||
|
|
|
@ -10,14 +10,14 @@
|
|||
<h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a>
|
||||
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
<br>
|
||||
You can press logout here:
|
||||
You can log out of the site here:
|
||||
<button onclick="window.location.href = '/login/'">LOGOUT</button>
|
||||
|
||||
</h1>
|
||||
|
||||
<br>
|
||||
<% } else { %>
|
||||
<h1>Welcome, Guest!<br>You can press for register here:
|
||||
<h1>Welcome, Guest!<br>You can press the button to register:
|
||||
<button class="buyuk" onclick= "window.location.href = '/register'">REGISTER</button>
|
||||
</h1>
|
||||
<% } %>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<!-- Navbar: -->
|
||||
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
||||
<br>
|
||||
<button class="buyuk" onclick="window.location.href = '/register'">REGISTER PAGE</button>
|
||||
<button class="buyuk" onclick="window.location.href = '/register'">REGISTER SECTION</button>
|
||||
<hr>
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<textarea rows="4" cols="50" name="content"></textarea>
|
||||
|
||||
<hr>
|
||||
<button class="buyuk" type="submit">Open Thread!</button>
|
||||
<button class="buyuk" type="submit">Create Thread!</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<% if (user?.admin) {%>
|
||||
<form action="/admin/" method="POST">
|
||||
<input name="userid" type="hidden" value="<%= member.id %>"></input>
|
||||
<button class="buyuk" type="submit">Make admin!</button>
|
||||
<button class="buyuk" type="submit">Give admin permissions!</button>
|
||||
|
||||
</form>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<%- include("extra/navbar", {user}) %>
|
||||
|
||||
|
||||
<h1>This page is not ready.</h1>
|
||||
<h1>This page's development is not completed yet.</h1>
|
||||
<hr>
|
||||
<!--- <form action="/userEdit/<%= %>" method="post">
|
||||
|
||||
|
|
Loading…
Reference in a new issue