small fix for mobile tag show pages

This commit is contained in:
Maxwell Salzberg 2011-10-01 09:47:57 -07:00
parent c993ff2759
commit 00873cdc6a

View file

@ -47,7 +47,7 @@
.floater
= link_to '', new_post_comment_path(post), :class => "image_link comment_action inactive"
- if current_user.liked?(post)
- if current_user && current_user.liked?(post)
= link_to '', post_like_path(post.id, current_user.like_for(post).id), :class => "image_link like_action active"
- else
= link_to '', post_likes_path(post.id), :class => "image_link like_action inactive"