all post partials now use object_path for links
This commit is contained in:
parent
b221e19746
commit
79536dcfb7
5 changed files with 4 additions and 18 deletions
|
|
@ -10,7 +10,7 @@
|
|||
%br
|
||||
= raw post.body
|
||||
%div.time
|
||||
= link_to(how_long_ago(post), blog_path(post))
|
||||
= link_to(how_long_ago(post), object_path(post))
|
||||
\--
|
||||
= link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments"
|
||||
= render "comments/comments", :post => post
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
%a{:href => "#{post.link}"}
|
||||
= post.link
|
||||
%div.time
|
||||
= link_to(how_long_ago(post), bookmark_path(post))
|
||||
= link_to(how_long_ago(post), object_path(post))
|
||||
\--
|
||||
= link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments"
|
||||
= render "comments/comments", :post => post
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
= link_to_person post.person
|
||||
%b posted a new photo
|
||||
%br
|
||||
= link_to (image_tag post.image.url(:small_thumb)), photo_path(post)
|
||||
= link_to (image_tag post.image.url(:small_thumb)), object_path(post)
|
||||
|
||||
%div.time
|
||||
= link_to(how_long_ago(post), status_message_path(post))
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
%li.message{:id => post.id, :class => ("mine" if mine?(post))}
|
||||
%span.from
|
||||
= link_to post.person.real_name, post.person
|
||||
= auto_link post.message
|
||||
|
||||
%div.time
|
||||
= link_to(how_long_ago(post), status_message_path(post))
|
||||
\--
|
||||
= link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments"
|
||||
= render "comments/comments", :post => post
|
||||
|
||||
- if mine?(post)
|
||||
.destroy_link
|
||||
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
= auto_link post.message
|
||||
|
||||
%div.time
|
||||
= link_to(how_long_ago(post), status_message_path(post))
|
||||
= link_to(how_long_ago(post), object_path(post))
|
||||
\--
|
||||
= link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments"
|
||||
= render "comments/comments", :post => post
|
||||
|
|
|
|||
Loading…
Reference in a new issue