Commit 2ce7afbff6d26187b8f46caa6362355ea0346a22

Authored by Leandro Santos
Committed by Antonio Terceiro
1 parent 37e6d6a7

fixing links for more recent, more active, and more popular people and communities

Showing 1 changed file with 10 additions and 10 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -1095,13 +1095,13 @@ module ApplicationHelper @@ -1095,13 +1095,13 @@ module ApplicationHelper
1095 1095
1096 def browse_people_menu 1096 def browse_people_menu
1097 links = [ 1097 links = [
1098 - {s_('people|More Recent') => url_for({:controller => 'browse', :action => 'people', :filter => 'more_recent'})},  
1099 - {s_('people|More Active') => url_for({:controller => 'browse', :action => 'people', :filter => 'more_active'})},  
1100 - {s_('people|More Popular') => url_for({:controller => 'browse', :action => 'people', :filter => 'more_popular'})} 1098 + {s_('people|More Recent') => {:href => url_for({:controller => 'browse', :action => 'people', :filter => 'more_recent'})}},
  1099 + {s_('people|More Active') => {:href => url_for({:controller => 'browse', :action => 'people', :filter => 'more_active'})}},
  1100 + {s_('people|More Popular') => {:href => url_for({:controller => 'browse', :action => 'people', :filter => 'more_popular'})}}
1101 ] 1101 ]
1102 if logged_in? 1102 if logged_in?
1103 - links.push(_('My friends') => url_for({:profile => current_user.login, :controller => 'friends'}))  
1104 - links.push(_('Invite friends') => url_for({:profile => current_user.login, :controller => 'invite', :action => 'friends'})) 1103 + links.push(_('My friends') => {:href => url_for({:profile => current_user.login, :controller => 'friends'})})
  1104 + links.push(_('Invite friends') => {:href => url_for({:profile => current_user.login, :controller => 'invite', :action => 'friends'})})
1105 end 1105 end
1106 1106
1107 link_to(content_tag(:span, _('People'), :class => 'icon-menu-people'), {:controller => "browse", :action => 'people'}, :id => 'submenu-people') + 1107 link_to(content_tag(:span, _('People'), :class => 'icon-menu-people'), {:controller => "browse", :action => 'people'}, :id => 'submenu-people') +
@@ -1110,13 +1110,13 @@ module ApplicationHelper @@ -1110,13 +1110,13 @@ module ApplicationHelper
1110 1110
1111 def browse_communities_menu 1111 def browse_communities_menu
1112 links = [ 1112 links = [
1113 - {s_('communities|More Recent') => url_for({:controller => 'browse', :action => 'communities', :filter => 'more_recent'})},  
1114 - {s_('communities|More Active') => url_for({:controller => 'browse', :action => 'communities', :filter => 'more_active'})},  
1115 - {s_('communities|More Popular') => url_for({:controller => 'browse', :action => 'communities', :filter => 'more_popular'})} 1113 + {s_('communities|More Recent') => {:href => url_for({:controller => 'browse', :action => 'communities', :filter => 'more_recent'})}},
  1114 + {s_('communities|More Active') => {:href => url_for({:controller => 'browse', :action => 'communities', :filter => 'more_active'})}},
  1115 + {s_('communities|More Popular') => {:href => url_for({:controller => 'browse', :action => 'communities', :filter => 'more_popular'})}}
1116 ] 1116 ]
1117 if logged_in? 1117 if logged_in?
1118 - links.push(_('My communities') => url_for({:profile => current_user.login, :controller => 'memberships'}))  
1119 - links.push(_('New community') => url_for({:profile => current_user.login, :controller => 'memberships', :action => 'new_community'})) 1118 + links.push(_('My communities') => {:href => url_for({:profile => current_user.login, :controller => 'memberships'})})
  1119 + links.push(_('New community') => {:href => url_for({:profile => current_user.login, :controller => 'memberships', :action => 'new_community'})})
1120 end 1120 end
1121 1121
1122 link_to(content_tag(:span, _('Communities'), :class => 'icon-menu-community'), {:controller => "browse", :action => 'communities'}, :id => 'submenu-communities') + 1122 link_to(content_tag(:span, _('Communities'), :class => 'icon-menu-community'), {:controller => "browse", :action => 'communities'}, :id => 'submenu-communities') +