fix navigation links at contacts page

This commit is contained in:
Eugene Korbut 2009-02-08 05:07:53 +10:00
parent c1cd42fc5f
commit a679ea1deb
3 changed files with 7 additions and 7 deletions

View file

@ -117,7 +117,7 @@ module ApplicationHelper
end
def link_main
link_to(_('Contacts'), :controller => '/contacts/contact', :action => 'list')
link_to(_('Contacts'), :controller => '/contact', :action => 'list')
end
def alternator

View file

@ -1,6 +1,6 @@
module ContactHelper
def link_import_preview() "/contacts/contact/import_preview" end
def link_main_index() "/webmail/webmail/folders" end
def link_main_index() "/webmail/folders" end
def link_contact_save() "/contacts/contact/save" end
def link_contact_import() "/contacts/contact/import" end
def link_contact_choose() "/contacts/contact/choose" end
@ -22,19 +22,19 @@ module ContactHelper
end
def link_folders
link_to(_('Folders'), :controller=>"/webmail/webmail", :action=>"messages")
link_to(_('Folders'), :controller=>"/webmail", :action=>"messages")
end
def link_send_mail
link_to(_('Compose'), :controller=>"/webmail/webmail", :action=>"compose")
link_to(_('Compose'), :controller=>"/webmail", :action=>"compose")
end
def link_mail_prefs
link_to(_('Preferences'), :controller=>"/webmail/webmail", :action=>"prefs")
link_to(_('Preferences'), :controller=>"/webmail", :action=>"prefs")
end
def link_mail_filters
link_to(_('Filters'), :controller=>"/webmail/webmail", :action=>"filters")
link_to(_('Filters'), :controller=>"/webmail", :action=>"filters")
end
end

View file

@ -11,7 +11,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'webmail/:action', :controller=>'webmail'
map.connect 'contacts/contact/:action', :controller=>'contacts/contact'
map.connect '/contact/:action', :controller=>'contact'
map.connect 'admin/main', :controller=> 'login', :action=>'logout'
# Allow downloading Web Service WSDL as a file with an extension