fix photos#show and status_messages#show from previous commit
This commit is contained in:
parent
a932547d12
commit
06ff5923c5
2 changed files with 3 additions and 3 deletions
|
|
@ -82,9 +82,9 @@
|
||||||
- if @photo.status_message_id
|
- if @photo.status_message_id
|
||||||
%div{:id => 'status_message_stream', :class => 'stream show'}
|
%div{:id => 'status_message_stream', :class => 'stream show'}
|
||||||
%li.message{:data=>{:guid=>@photo.status_message_id}}
|
%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
|
- else
|
||||||
%div{:id => 'photo_stream', :class => 'stream show'}
|
%div{:id => 'photo_stream', :class => 'stream show'}
|
||||||
%li.message{:data=>{:guid=>@photo.id}}
|
%li.message{:data=>{:guid=>@photo.id}}
|
||||||
= render "comments/comments", :post => @photo
|
= render "comments/comments", :post_id => @photo.id, :comments => @photo.comments
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,4 @@
|
||||||
%h4{:style=>"margin-bottom:5px;"}= t('_comments')
|
%h4{:style=>"margin-bottom:5px;"}= t('_comments')
|
||||||
%div{:class => 'stream show', :id => 'status_message_stream'}
|
%div{:class => 'stream show', :id => 'status_message_stream'}
|
||||||
%li.message{:data=>{:guid=>@status_message.id}}
|
%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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue