From 3d976ca47eb9c28fa093f97dae411da1e3955ff6 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 30 Jun 2010 08:36:51 -0700 Subject: [PATCH] RS, a little bit of autolinking in statuses and comments --- app/views/comments/_comment.html.haml | 2 +- app/views/status_messages/_status_message.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml index 3cf43c723..eb97c4123 100644 --- a/app/views/comments/_comment.html.haml +++ b/app/views/comments/_comment.html.haml @@ -1,6 +1,6 @@ %li.comment{:id => comment.id} %span.from = link_to_person comment.person - = comment.text + = auto_link comment.text %div.time = "#{time_ago_in_words(comment.updated_at)} ago" diff --git a/app/views/status_messages/_status_message.html.haml b/app/views/status_messages/_status_message.html.haml index e058eb5fb..f90687e61 100644 --- a/app/views/status_messages/_status_message.html.haml +++ b/app/views/status_messages/_status_message.html.haml @@ -1,7 +1,7 @@ %li.message{:id => post.id, :class => ("mine" if mine?(post))} %span.from = link_to_person post.person - = post.message + = auto_link post.message %div.time = link_to(how_long_ago(post), status_message_path(post))