]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Update to latest osm-community-index
[rails.git] / app / controllers / site_controller.rb
index 00b3e78da4c858b7c36e0211106ba1190e69436c..8323ae5e7324b07bfd6870c7154cd93a76003bad 100644 (file)
@@ -106,6 +106,11 @@ class SiteController < ApplicationController
     @locale = params[:about_locale] || I18n.locale
   end
 
+  def communities
+    @locale = params[:communities_locale] || I18n.locale
+    @local_chapters = Communities.local_chapters(@locale)
+  end
+
   def export; end
 
   def offline; end