Simplify stream_element partial
This commit is contained in:
parent
673fd38a2c
commit
812aaae63f
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue