SM MS remove instance var from mobile post view
This commit is contained in:
parent
ea0240d6f8
commit
ea700716ab
2 changed files with 1 additions and 5 deletions
|
|
@ -30,10 +30,6 @@ class PostsController < ApplicationController
|
||||||
notification.save
|
notification.save
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_mobile_device?
|
|
||||||
@comments = @post.comments
|
|
||||||
end
|
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.xml{ render :xml => @post.to_diaspora_xml }
|
format.xml{ render :xml => @post.to_diaspora_xml }
|
||||||
format.mobile{render 'posts/show.mobile.haml'}
|
format.mobile{render 'posts/show.mobile.haml'}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
= post.likes.size
|
= post.likes.size
|
||||||
|
|
||||||
%ul.comments
|
%ul.comments
|
||||||
= render :partial => 'comments/comment', :collection => @comments, :locals => {:post => post}
|
= render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post}
|
||||||
|
|
||||||
%li.comment.add_comment_bottom_link_container
|
%li.comment.add_comment_bottom_link_container
|
||||||
= link_to "Add a comment", new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive'
|
= link_to "Add a comment", new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue