diff options
author | Mateja <mail@matejamaric.com> | 2021-05-03 17:44:38 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-05-03 17:44:38 +0200 |
commit | 34b3fefaddd165b649c53e140f6b749c18943d26 (patch) | |
tree | 3c53c59d29df1fc1d3165eddd7c83ed3aab871f1 /views/home.handlebars | |
parent | 9eeca255cfe41ca4a962422c3703274caa530021 (diff) | |
download | node-playground-34b3fefaddd165b649c53e140f6b749c18943d26.tar.gz node-playground-34b3fefaddd165b649c53e140f6b749c18943d26.zip |
Add delete option on every post.
Diffstat (limited to 'views/home.handlebars')
-rw-r--r-- | views/home.handlebars | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/home.handlebars b/views/home.handlebars index 768b62d..6061e4e 100644 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -2,7 +2,7 @@ <h1 class="mt-2">Posts</h1> {{#each posts}} - <div class="card mt-3"> + <div class="card mb-3"> <div class="card-header"> {{this.title}} </div> @@ -10,6 +10,7 @@ <div class="card-text"> {{this.text}} </div> + <a href="/remove-post/{{this._id}}" class="badge float-end">Remove</a> </div> </div> {{/each}} |