about summary refs log tree commit diff stats
path: root/app/views/comments
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/comments')
-rw-r--r--app/views/comments/_comment.html.haml1
-rw-r--r--app/views/comments/_form.html.haml6
2 files changed, 7 insertions, 0 deletions
diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml index 3ad21e9..225b5d9 100644 --- a/app/views/comments/_comment.html.haml +++ b/app/views/comments/_comment.html.haml
@@ -11,3 +11,4 @@
11 = link_to comment.username, comment.website 11 = link_to comment.username, comment.website
12 on 12 on
13 = comment.published_at.strftime("%B #{comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") 13 = comment.published_at.strftime("%B #{comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P")
14 = link_to (image_tag "comment_add.png"), "#", class: "comment-reply-to", title: "Reply to comment", data: { comment_id: comment.id, comment_author: comment.username }
diff --git a/app/views/comments/_form.html.haml b/app/views/comments/_form.html.haml index f6df807..eb374c7 100644 --- a/app/views/comments/_form.html.haml +++ b/app/views/comments/_form.html.haml
@@ -1,6 +1,12 @@
1= form_for @comment || blog.comments.new, html: { id: "comment-form" } do |f| 1= form_for @comment || blog.comments.new, html: { id: "comment-form" } do |f|
2 = f.hidden_field :reply_to_id
2 %fieldset#comment-body-field 3 %fieldset#comment-body-field
3 %blockquote.bubble.rounded.bottom 4 %blockquote.bubble.rounded.bottom
5 #comment-reply-msg
6 = link_to (image_tag "cross"), "#", class: "comment-reply-cancel"
7 Replying to comment by
8 = succeed ":" do
9 %span.comment-reply-author
4 = f.label :body 10 = f.label :body
5 = f.text_area :body 11 = f.text_area :body
6 %cite.bubble Feel free to post a comment! You may use Markdown. 12 %cite.bubble Feel free to post a comment! You may use Markdown.