]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/communities.html.erb
Validate URLs against supply-chain attacks
[rails.git] / app / views / site / communities.html.erb
index aee536c0552e2c43bbe08278b9bca12b89679146..c2140668379ba951d202a6051c120e1476fcab9e 100644 (file)
@@ -2,14 +2,20 @@
   <h1><%= t ".title" %></h1>
 <% end %>
 
-<p><%= t ".lede_text" %></p>
+<p class="lead"><%= t ".lede_text" %></p>
 
 <h2><%= t ".local_chapters.title" %></h2>
 <p><%= t ".local_chapters.about_text" %></p>
 <p><%= t ".local_chapters.list_text" %></p>
 <ul>
   <% @local_chapters.each do |chapter| %>
-    <li><a href="<%= chapter.url %>"><%= t "osm_community_index.local_chapter.#{chapter.id}.name" %></a></li>
+    <li>
+      <% if chapter.url %>
+        <a href="<%= chapter.url %>"><%= t "osm_community_index.communities.#{chapter.id}.name" %></a>
+      <% else %>
+        <%= t "osm_community_index.communities.#{chapter.id}.name" %>
+      <% end %>
+    </li>
   <% end %>
 </ul>