Merge pull request #1 from efe3535/main

Eşek siki kadar yer düzeltildi
This commit is contained in:
Akif Yüce 2022-04-06 22:54:19 +03:00 committed by GitHub
commit e5edf87a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 16 deletions

View file

@ -10,10 +10,10 @@
<h1>Welcome to the admin panel of the forum, <%= user.name %>!</h1> <h1>Welcome to the admin panel of the forum, <%= user.name %>!</h1>
<form action="/admin/" method="POST"> <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> <input name="userid"></input>
<hr> <hr>
<button class="buyuk" type="submit">Make admin!</button> <button class="buyuk" type="submit">Give admin permissions!</button>
</form> </form>
<script> <script>

View file

@ -16,7 +16,7 @@
<a href="/threads">THREADS</a> <a href="/threads">THREADS</a>
<a href="/users">USERS</a> <a href="/users">USERS</a>
<a href="/search">SEARCH</a> <a href="/search">SEARCH</a>
<a href="/threads/open/">OPEN THREAD</a> <a href="/threads/open/">CREATE THREAD</a>
<% if (user){ %> <% if (user){ %>
<div style="float: right;" class="user" id="user"> <div style="float: right;" class="user" id="user">

View file

@ -10,14 +10,14 @@
<h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a> <h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a>
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>> <img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
<br> <br>
You can press logout here: You can log out of the site here:
<button onclick="window.location.href = '/login/'">LOGOUT</button> <button onclick="window.location.href = '/login/'">LOGOUT</button>
</h1> </h1>
<br> <br>
<% } else { %> <% } 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> <button class="buyuk" onclick= "window.location.href = '/register'">REGISTER</button>
</h1> </h1>
<% } %> <% } %>

View file

@ -7,7 +7,7 @@
<!-- Navbar: --> <!-- Navbar: -->
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a> <a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
<br> <br>
<button class="buyuk" onclick="window.location.href = '/register'">REGISTER PAGE</button> <button class="buyuk" onclick="window.location.href = '/register'">REGISTER SECTION</button>
<hr> <hr>

View file

@ -18,7 +18,7 @@
<textarea rows="4" cols="50" name="content"></textarea> <textarea rows="4" cols="50" name="content"></textarea>
<hr> <hr>
<button class="buyuk" type="submit">Open Thread!</button> <button class="buyuk" type="submit">Create Thread!</button>
</form> </form>

View file

@ -43,7 +43,7 @@
<% if (user?.admin) {%> <% if (user?.admin) {%>
<form action="/admin/" method="POST"> <form action="/admin/" method="POST">
<input name="userid" type="hidden" value="<%= member.id %>"></input> <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> </form>

View file

@ -8,7 +8,7 @@
<%- include("extra/navbar", {user}) %> <%- include("extra/navbar", {user}) %>
<h1>This page is not ready.</h1> <h1>This page's development is not completed yet.</h1>
<hr> <hr>
<!--- <form action="/userEdit/<%= %>" method="post"> <!--- <form action="/userEdit/<%= %>" method="post">