]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Remove edit links
[rails.git] / app / controllers / site_controller.rb
index 280f39fd8c32b597b7cbc13094044e5827033d02..0f06b22833d63c300e8a2a572ddd58377e1b9773 100644 (file)
@@ -71,6 +71,12 @@ class SiteController < ApplicationController
   def welcome
   end
 
+  def help
+  end
+
+  def about
+  end
+
   def preview
     render :text => RichText.new(params[:format], params[:text]).to_html
   end
@@ -94,7 +100,15 @@ class SiteController < ApplicationController
       anchor << "layers=N"
     end
 
-    if anchor.present?
+    if params[:node]
+      redirect_to node_path(params[:node])
+    elsif params[:way]
+      redirect_to way_path(params[:way])
+    elsif params[:relation]
+      redirect_to relation_path(params[:relation])
+    elsif params[:note]
+      redirect_to browse_note_path(params[:note])
+    elsif anchor.present?
       redirect_to params.merge(:anchor => anchor.join('&'))
     end
   end