]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/view.html.erb
Don't send a noification email if somebody comments on their own diary
[rails.git] / app / views / trace / view.html.erb
index 1001cadf9fdf241564523cc91d263a8cb400ff23..4ab46bd3ef5de04b7dda87d5d27fc1589af83090 100644 (file)
@@ -36,9 +36,7 @@
     <td><%= t'trace.view.tags' %></td>
     <td>
     <% unless @trace.tags.empty? %>
-      <% @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 %>
+      <%= @trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ") %>
     <% else %>
       <i><%= t'trace.view.none' %></i>
     <% end %>