- link_to h(object.author_name), link_options.merge({:controller => "user", :action => "view", :display_name => object.author_name})
+ "#{params[:controller]} #{params[:controller]}-#{params[:action]}"
+ end
+ end
+
+ def current_page_class(path)
+ :current if current_page?(path)
+ end
+
+ def application_data
+ data = {
+ :locale => I18n.locale,
+ :preferred_editor => preferred_editor
+ }
+
+ if current_user
+ data[:user] = current_user.id.to_json
+
+ unless current_user.home_lon.nil? || current_user.home_lat.nil?
+ data[:user_home] = { :lat => current_user.home_lat, :lon => current_user.home_lon }
+ end