projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f0468
)
'trace.tags.none' was never displayed because the empty list ([]) is true in ruby...
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Tue, 23 Jun 2009 00:02:35 +0000
(
00:02
+0000)
committer
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Tue, 23 Jun 2009 00:02:35 +0000
(
00:02
+0000)
Wrap 'trace.tags.none' in <i> to make it obvious that "none" is a system-generated value
app/views/trace/view.html.erb
patch
|
blob
|
history
diff --git
a/app/views/trace/view.html.erb
b/app/views/trace/view.html.erb
index 80733844db285c7a9f107465248f3ff32ce1233f..048d92d35b40237b3d41ebe71006fa1d45f03649 100644
(file)
--- a/
app/views/trace/view.html.erb
+++ b/
app/views/trace/view.html.erb
@@
-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>