]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/view.html.erb
Introducing comma as tag separator (if present, otherwise it behaves as before),...
[rails.git] / app / views / trace / view.html.erb
index 0688ec130d6cbc9571775d6029ba2e3be430ec88..1001cadf9fdf241564523cc91d263a8cb400ff23 100644 (file)
@@ -36,8 +36,8 @@
     <td><%= t'trace.view.tags' %></td>
     <td>
     <% unless @trace.tags.empty? %>
     <td><%= t'trace.view.tags' %></td>
     <td>
     <% unless @trace.tags.empty? %>
-      <% @trace.tags.each do |tag| %>
-        <%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %>
+      <% @trace.tags.each_with_index do |tag, index| %>
+        <%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %><%=', ' if index+1 < @trace.tags.count %>
       <% end %>
     <% else %>
       <i><%= t'trace.view.none' %></i>
       <% end %>
     <% else %>
       <i><%= t'trace.view.none' %></i>