From 812aaae63f451ba2dde4a7dc30909bf6fcd03957 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 28 Nov 2010 11:31:31 -0500 Subject: [PATCH] Simplify stream_element partial --- app/views/shared/_stream_element.html.haml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/shared/_stream_element.html.haml b/app/views/shared/_stream_element.html.haml index ab86085b5..2c9d00c3d 100644 --- a/app/views/shared/_stream_element.html.haml +++ b/app/views/shared/_stream_element.html.haml @@ -3,12 +3,12 @@ -# the COPYRIGHT file. %li.message{:data=>{:guid=>post.id}} - - = person_image_link(person) + %a{:href => "/people/#{person.id}"} + %img{:src => image_or_default(person), :class => "avatar", :alt => person.real_name, :title => person.real_name, "data-person_id" => person.id} .content .from - = link_to person.real_name, person + %a{:href => "/people/#{person.id}"}=person.real_name - if current_user.owns?(post) .aspect @@ -18,7 +18,8 @@ %li= t('the_world') - else - for aspect in aspects.select{|a| post.aspect_ids.include?(a.id)} - %li= link_to aspect.name, aspect + %li + %a{:href => "/aspects/#{aspect.id}"}=aspect.name .right = render 'shared/reshare', :current_user => current_user, :post => post if post.is_a? StatusMessage