fpossible fix for mobile site 500 on user login

This commit is contained in:
maxwell 2011-04-04 10:58:50 -07:00
parent 95c1edbab8
commit fe52acb931

View file

@ -1,12 +1,12 @@
#footer{:data => {:role => 'footer'}} #footer{:data => {:role => 'footer'}}
- unless current_user.nil?
.inset .inset
%b= t('.your_aspects') %b= t('.your_aspects')
%div{:data => {:role => 'controlgroup', :type => 'horizontal'}} %div{:data => {:role => 'controlgroup', :type => 'horizontal'}}
- for aspect in @all_aspects - for aspect in @all_aspects
= link_to aspect, aspects_path('a_ids[]' => aspect.id) = link_to aspect, aspects_path('a_ids[]' => aspect.id)
| |
.ui-bar .ui-bar
= link_to t('.logged_in_as', :name => current_user.name), current_user.person = link_to t('.logged_in_as', :name => current_user.name), current_user.person
= link_to t('layouts.application.toggle'), toggle_mobile_path = link_to t('layouts.application.toggle'), toggle_mobile_path
= link_to t('layouts.header.logout'), destroy_user_session_path = link_to t('layouts.header.logout'), destroy_user_session_path