Hide comment button in the mobile view when not signed in

This commit is contained in:
movilla 2013-03-18 19:50:39 +01:00
parent 47046013ae
commit bf2bd5a97c
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@
* Pass the real values to stderr_path and stdout_path in unicorn.rb since it runs a case statement on them.
* Decode tag name before passing it into a TagFollowingAction [#4027](https://github.com/diaspora/diaspora/issues/4027)
* Fix reshares in single post-view [#4056](https://github.com/diaspora/diaspora/issues/4056)
* Hide comment button in the mobile view when not signed in. [#4065](https://github.com/diaspora/diaspora/issues/4065)
## Refactor

View file

@ -47,5 +47,6 @@
= render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post}
%li.comment.add_comment_bottom_link_container
= link_to t('comments.new_comment.comment'), new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive'
- if user_signed_in?
= link_to t('comments.new_comment.comment'), new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive'