fix broken mobile tag view
This commit is contained in:
parent
55efeb5a97
commit
ea0240d6f8
3 changed files with 14 additions and 9 deletions
|
|
@ -26,19 +26,19 @@
|
|||
- if defined?(expanded_info) && expanded_info
|
||||
.comment_container
|
||||
.post_stats
|
||||
- if @post.public?
|
||||
- if post.public?
|
||||
%span.comment_count
|
||||
= @post.reshares.size
|
||||
= post.reshares.size
|
||||
|
||||
%span.comment_count
|
||||
= @post.comments.size
|
||||
= post.comments.size
|
||||
|
||||
%span.like_count
|
||||
= @post.likes.size
|
||||
= post.likes.size
|
||||
|
||||
%ul.comments
|
||||
= render :partial => 'comments/comment', :collection => @comments, :locals => {:post => @post}
|
||||
= render :partial => 'comments/comment', :collection => @comments, :locals => {:post => post}
|
||||
|
||||
%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'
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
-# the COPYRIGHT file.
|
||||
|
||||
%h1
|
||||
= "##{params[:name]}"
|
||||
= @stream.display_tag_name
|
||||
|
||||
#main_stream.stream
|
||||
= render 'shared/stream', :posts => @posts
|
||||
-if @posts.length > 0
|
||||
= render 'shared/stream', :posts => @stream.posts
|
||||
-if @stream.posts.length > 0
|
||||
#pagination
|
||||
%a.more-link.paginate{:href => next_page_path}
|
||||
%h1
|
||||
|
|
|
|||
|
|
@ -62,6 +62,11 @@ describe TagsController do
|
|||
get :show, :name => 'hellyes'
|
||||
response.status.should == 200
|
||||
end
|
||||
|
||||
it 'succeeds with mobile' do
|
||||
get :show, :name => 'foo', :format => :mobile
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue