Skip to content

Commit

Permalink
Added Show Posts button
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVOiceover committed Jan 24, 2024
1 parent 37fd33f commit 936e52d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ form {
max-width: 100%;
}

.backForm,
.deleteForm {
.buttonForm {
background: none;
padding: 0;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion views/formPage.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<button class="right-button">Send</button>
</form>
<p></p>
<form class="backForm" action="/showPosts" method="POST">
<form class="buttonForm" action="/showPosts" method="POST">
<button type="submit">Show Posts</button>
</form>
</body>
Expand Down
4 changes: 2 additions & 2 deletions views/postsPage.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<p class="nameAndDate">
<%- sanitize(post.nickname) %> | <%= prettyDate %>
</p>
<form class="deleteForm" action="/delete/<%= post.id %>" method="POST">
<form class="buttonForm" action="/delete/<%= post.id %>" method="POST">
<button type="submit" class="right-button">Delete post</button>
</form>
</li>
<% }); %>
</ul>
<form class="backForm" action="/back" method="POST">
<form class="buttonForm" action="/back" method="POST">
<button type="submit">Back</button>
</form>
</body>
Expand Down

0 comments on commit 936e52d

Please sign in to comment.