Simplify stream_element partial

This commit is contained in:
Raphael 2010-11-28 11:31:31 -05:00
parent 673fd38a2c
commit 812aaae63f

View file

@ -3,12 +3,12 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
%li.message{:data=>{:guid=>post.id}} %li.message{:data=>{:guid=>post.id}}
%a{:href => "/people/#{person.id}"}
= person_image_link(person) %img{:src => image_or_default(person), :class => "avatar", :alt => person.real_name, :title => person.real_name, "data-person_id" => person.id}
.content .content
.from .from
= link_to person.real_name, person %a{:href => "/people/#{person.id}"}=person.real_name
- if current_user.owns?(post) - if current_user.owns?(post)
.aspect .aspect
@ -18,7 +18,8 @@
%li= t('the_world') %li= t('the_world')
- else - else
- for aspect in aspects.select{|a| post.aspect_ids.include?(a.id)} - 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 .right
= render 'shared/reshare', :current_user => current_user, :post => post if post.is_a? StatusMessage = render 'shared/reshare', :current_user => current_user, :post => post if post.is_a? StatusMessage