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 d598847..d0e5af8 100644 (file)
@@ -63,7 +63,7 @@
 
 <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},
@@ -74,7 +74,7 @@
 
 <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},
index 31f87eb..a8201b9 100644 (file)
@@ -51,7 +51,7 @@
     </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), {
index ed1de59..3b5de3d 100644 (file)
@@ -1,3 +1,4 @@
 module Editors 
   ALL_EDITORS = [ "potlatch", "potlatch2", "remote" ]
+  RECOMMENDED_EDITORS = [ "potlatch2", "remote" ]
 end