]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / app / controllers / site_controller.rb
index 00b3e78da4c858b7c36e0211106ba1190e69436c..17353fe96ddc398bc6c42730bd4f0882e3e47772 100644 (file)
@@ -106,6 +106,11 @@ class SiteController < ApplicationController
     @locale = params[:about_locale] || I18n.locale
   end
 
     @locale = params[:about_locale] || I18n.locale
   end
 
+  def communities
+    @locale = I18n.locale
+    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters_with_locale(@locale)
+  end
+
   def export; end
 
   def offline; end
   def export; end
 
   def offline; end