summaryrefslogtreecommitdiff
path: root/views/comments/edit.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/comments/edit.ejs')
-rw-r--r--views/comments/edit.ejs29
1 files changed, 29 insertions, 0 deletions
diff --git a/views/comments/edit.ejs b/views/comments/edit.ejs
new file mode 100644
index 0000000..2e3f2c5
--- /dev/null
+++ b/views/comments/edit.ejs
@@ -0,0 +1,29 @@
+<%- include('../partials/header') %>
+
+<div class='content'>
+ <div class='leftie'>
+ <ul>
+ <% if(!currentUser) { %>
+ <li><a href='#'>Search for blog posts</a></li>
+ <li><a href='/'>About</a></li>
+ <li><a href='/browsers'>Minimal browsers</a></li>
+ <% } else { %>
+ <li><a href='/blog/<%= currentUser.username %>'>My Blog</a></li>
+ <li><a href='/blog/<%= currentUser %>/new'>Create a blog post</a></li>
+ <li><a href='#'>Search for blog posts</a></li>
+ <li><a href='/'>About</a></li>
+ <li><a href='/browsers'>Minimal browsers</a></li>
+ <% } %>
+ </ul>
+ </div>
+ <div class='rightie'>
+ <p>Edit comment.</p>
+ <form action="/blog/<%= account %>/<%= post_id %>/comments/<%= comment._id %>?_method=PUT" method='POST' id='newb'>
+ <label>Comment</label>
+ <textarea name="cmmnt[text]" id="bod"><%= comment.text %></textarea>
+ <button class='formBtn' type='submit'>Update</button>
+ </form>
+ </div>
+</div>
+
+<%- include('../partials/footer') %> \ No newline at end of file