'trace.tags.none' was never displayed because the empty list ([]) is true in ruby. Use trace.tags.empty?
Wrap 'trace.tags.none' in <i> to make it obvious that "none" is a system-generated value
This commit is contained in:
parent
73f04687ff
commit
9e504a0b33
1 changed files with 2 additions and 2 deletions
|
@ -35,12 +35,12 @@
|
|||
<tr>
|
||||
<td><%= t'trace.view.tags' %></td>
|
||||
<td>
|
||||
<% if @trace.tags %>
|
||||
<% unless @trace.tags.empty? %>
|
||||
<% @trace.tags.each do |tag| %>
|
||||
<%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= t'trace.view.none' %>
|
||||
<i><%= t'trace.view.none' %></i>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue