Commit e93b239f5d1beb8046e75b901ff0ecb0bb02c638

Authored by AntonioTerceiro
1 parent c0a9c8ff

ActionItem152: changing the top bar links for login/logout into popup calls


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1222 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/helpers/application_helper.rb
... ... @@ -126,13 +126,13 @@ module ApplicationHelper
126 126 ( link_to_myprofile( content_tag('span', _('edit profile')), {}, nil, { :id => 'link_edit_profile'} ) ),
127 127 # O ID icon_accessibility tambem tem que aparcer e testei o link nao ta funcionado.
128 128 ( link_to content_tag('span', _('Admin')), { :controller => 'admin_panel' }, :id => 'link_admin_panel' if current_user.person.is_admin?),
129   - ( link_to content_tag('span', _('Logout')), { :controller => 'account', :action => 'logout'}, :id => 'link_logout'),
  129 + ( lightbox_link_to content_tag('span', _('Logout')), { :controller => 'account', :action => 'logout_popup'}, :id => 'link_logout'),
130 130 search_link,
131 131 ]
132 132 else
133 133 [
134 134 #( link_to _("%s's home") % @environment.name, { :controller=>"home" }, :id=>"link_to_envhome" ),
135   - ( link_to content_tag('span', _('Login')), { :controller => 'account', :action => 'login' }, :id => 'link_login' ),
  135 + ( lightbox_link_to content_tag('span', _('Login')), { :controller => 'account', :action => 'login_popup' }, :id => 'link_login' ),
136 136 search_link,
137 137 ]
138 138 end.join(" ")
... ... @@ -280,7 +280,7 @@ module ApplicationHelper
280 280  
281 281 bt_submit = submit_tag(label, html_options.merge(:class => the_class))
282 282  
283   - content_tag('p', bt_submit + bt_cancel, :class => 'submitline')
  283 + bt_submit + bt_cancel
284 284 end
285 285  
286 286 def button_to_function(type, label, js_code, html_options = {})
... ...