]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/communities.html.erb
Remove html from translations for the welcome page
[rails.git] / app / views / site / communities.html.erb
index ba687966f5cc50867cd631b2c31920b049604117..c2140668379ba951d202a6051c120e1476fcab9e 100644 (file)
@@ -9,7 +9,13 @@
 <p><%= t ".local_chapters.list_text" %></p>
 <ul>
   <% @local_chapters.each do |chapter| %>
-    <li><a href="<%= chapter.url %>"><%= t "osm_community_index.communities.#{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>