render local chapters in html
This commit is contained in:
parent
59e6cdebdc
commit
116cfe2f4d
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<p><%= t ".local_chapters.list_text", :locale => @locale %></p>
|
||||
<ul>
|
||||
<% @local_chapters.each do |chapter| %>
|
||||
<li><%= chapter %></li>
|
||||
<li><a href="<%= chapter[:url] %>"><%= chapter[:name] %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<h2><%= t ".other_groups.title", :locale => @locale %></h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue