]> git.openstreetmap.org Git - rails.git/commitdiff
Remove Potlatch 1 from edit menu
authorRichard Fairhurst <richard@systemeD.net>
Thu, 11 Oct 2012 10:16:24 +0000 (11:16 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 12 Oct 2012 20:05:29 +0000 (21:05 +0100)
app/views/browse/_map.html.erb
app/views/layouts/site.html.erb
lib/editors.rb

index d598847fc5b5491a3e3756d14011e620f55df248..d0e5af81e676236609bc14db33731a54d962a44d 100644 (file)
@@ -63,7 +63,7 @@
 
 <div id="area_edit_menu" class="menu">
   <ul>
 
 <div id="area_edit_menu" class="menu">
   <ul>
-    <% Editors::ALL_EDITORS.each do |editor| %>
+    <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
       <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
                       edit_path(:editor => editor),
                       :data => {:editor => editor},
       <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
                       edit_path(:editor => editor),
                       :data => {:editor => editor},
@@ -74,7 +74,7 @@
 
 <div id="object_edit_menu" class="menu">
   <ul>
 
 <div id="object_edit_menu" class="menu">
   <ul>
-    <% Editors::ALL_EDITORS.each do |editor| %>
+    <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
       <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
                       edit_path(:editor => editor),
                       :data => {:editor => editor},
       <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
                       edit_path(:editor => editor),
                       :data => {:editor => editor},
index 31f87eb856da5c55253e8664f3af887ff4282c60..a8201b912cc0235814532b8da234e738632c5f9c 100644 (file)
@@ -51,7 +51,7 @@
     </div>
     <div id="editmenu" class="menu">
       <ul>
     </div>
     <div id="editmenu" class="menu">
       <ul>
-        <% Editors::ALL_EDITORS.each do |editor| %>
+        <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
           <li><%= link_to t('layouts.edit_with',
             :editor => t("editor.#{editor}.description")),
             edit_path(:editor => editor), {
           <li><%= link_to t('layouts.edit_with',
             :editor => t("editor.#{editor}.description")),
             edit_path(:editor => editor), {
index ed1de5999d161baf6ab938ab2e12b17cdb28148e..3b5de3decd0655428e868355006f6401d06b19b7 100644 (file)
@@ -1,3 +1,4 @@
 module Editors 
   ALL_EDITORS = [ "potlatch", "potlatch2", "remote" ]
 module Editors 
   ALL_EDITORS = [ "potlatch", "potlatch2", "remote" ]
+  RECOMMENDED_EDITORS = [ "potlatch2", "remote" ]
 end
 end