-<h2><%= t 'trace.view.heading', :name => @trace.name %></h2>
+<h2><%= t 'trace.view.heading', :name => h(@trace.name) %></h2>
<% if @trace.inserted %>
<img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
<tr>
<td><%= t'trace.view.tags' %></td>
<td>
- <% if @trace.tags %>
- <% @trace.tags.each do |tag| %>
- <%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %>
- <% end %>
+ <% unless @trace.tags.empty? %>
+ <%= @trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ") %>
<% else %>
- <%= t'trace.view.none' %>
+ <i><%= t'trace.view.none' %></i>
<% end %>
</td>
</tr>