removed useless if/else
This commit is contained in:
parent
60b7c30a8a
commit
fb7e945fc2
1 changed files with 13 additions and 16 deletions
|
|
@ -32,24 +32,21 @@
|
|||
%header
|
||||
.container
|
||||
#session_action
|
||||
- if user_signed_in?
|
||||
%ul#user_menu
|
||||
%li#global_search
|
||||
= form_tag(users_path, :method => 'get') do
|
||||
%label{:for => 'q'} Search
|
||||
= text_field_tag 'q'
|
||||
%ul#user_menu
|
||||
%li#global_search
|
||||
= form_tag(users_path, :method => 'get') do
|
||||
%label{:for => 'q'} Search
|
||||
= text_field_tag 'q'
|
||||
|
||||
%li
|
||||
%ul#other_user_menu
|
||||
%li
|
||||
= owner_image_tag
|
||||
= link_to current_user.real_name, current_user.person
|
||||
%li.requests= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
||||
%li.settings= link_to "settings", edit_user_path(current_user)
|
||||
%li.logout= link_to "logout", destroy_user_session_path
|
||||
%li
|
||||
%ul#other_user_menu
|
||||
%li
|
||||
= owner_image_tag
|
||||
= link_to current_user.real_name, current_user.person
|
||||
%li.requests= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
||||
%li.settings= link_to "settings", edit_user_path(current_user)
|
||||
%li.logout= link_to "logout", destroy_user_session_path
|
||||
|
||||
- else
|
||||
= link_to "login", new_user_session_path
|
||||
|
||||
#diaspora_text{:href => root_path}
|
||||
= link_to "DIASPORA*", root_path
|
||||
|
|
|
|||
Loading…
Reference in a new issue