diff --git a/app/models/communities.rb b/app/models/communities.rb index d09d62d6a..2379c59ad 100644 --- a/app/models/communities.rb +++ b/app/models/communities.rb @@ -23,8 +23,8 @@ class Communities community_index['features'].each do |feature| feature['properties']['resources'].each do |id, data| data.each do |key, value| - if key == "type" and value == "osm-lc" - array_of_entries.push(id); + if key == "type" and value == "osm-lc" and data['strings']['community'] + array_of_entries.push({ id: id, name: data['strings']['community'], url: data['strings']['url'] }); end end end diff --git a/app/views/site/communities.html.erb b/app/views/site/communities.html.erb index ad431d849..b92b3140c 100644 --- a/app/views/site/communities.html.erb +++ b/app/views/site/communities.html.erb @@ -11,7 +11,7 @@
<%= t ".local_chapters.list_text", :locale => @locale %>