fix photos#show and status_messages#show from previous commit

This commit is contained in:
danielvincent 2010-11-27 01:35:57 -05:00
parent a932547d12
commit 06ff5923c5
2 changed files with 3 additions and 3 deletions

View file

@ -82,9 +82,9 @@
- if @photo.status_message_id
%div{:id => 'status_message_stream', :class => 'stream show'}
%li.message{:data=>{:guid=>@photo.status_message_id}}
= render "comments/comments", :post => @photo.status_message
= render "comments/comments", :post_id => @photo.status_message.id, :comments => @photo.status_message.comments
- else
%div{:id => 'photo_stream', :class => 'stream show'}
%li.message{:data=>{:guid=>@photo.id}}
= render "comments/comments", :post => @photo
= render "comments/comments", :post_id => @photo.id, :comments => @photo.comments

View file

@ -22,4 +22,4 @@
%h4{:style=>"margin-bottom:5px;"}= t('_comments')
%div{:class => 'stream show', :id => 'status_message_stream'}
%li.message{:data=>{:guid=>@status_message.id}}
= render "comments/comments", :post => @status_message
= render "comments/comments", :post_id => @status_message.id, :comments => @status_message.comments