Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing date for your own comments #125

Open
eregon opened this issue Nov 20, 2011 · 0 comments
Open

Missing date for your own comments #125

eregon opened this issue Nov 20, 2011 · 0 comments

Comments

@eregon
Copy link
Member

eregon commented Nov 20, 2011

The date of the comments are not shown on your own comments.

Here is a quick untested patch to show the idea:

diff --git a/app/views/comments/_show.html.haml b/app/views/comments/_show.html.haml
index c6dc46d..06505b0 100644
--- a/app/views/comments/_show.html.haml
+++ b/app/views/comments/_show.html.haml
@@ -13,15 +13,14 @@
         = link_to "commented", "##{comment.index}"
     = link_to comment.index, "##{comment.index}", :class => "number"
     .controls
+      .on
+        = time_ago_in_words comment.created_at
+        ago
       - if current_user == comment.user
         = link_to '', '#', :class => "edit", :title => "Edit"
         = link_to '', comment_path(comment),
           :class   => "remove", :title  => "Delete",
           :method  => :delete,  :remote => true,
           :confirm => "Are you sure you wish to delete this comment?"
-      - else
-        .on
-          = time_ago_in_words comment.created_at
-          ago
       = link_to '', '#new_comment', :class => "reply", :title => "Reply"
   .content= md(comment.comment_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant