Rename trace local in trace description partial
This commit is contained in:
parent
1ca91ecbac
commit
4dcbe9e0a9
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
<%= image_tag trace_icon_url(description.user, description.id) %>
|
||||
<% if description.size -%>
|
||||
<%= t ".description_with_count", :count => description.size, :user => description.user.display_name %>
|
||||
<%= image_tag trace_icon_url(trace.user, trace) %>
|
||||
<% if trace.size -%>
|
||||
<%= t ".description_with_count", :count => trace.size, :user => trace.user.display_name %>
|
||||
<% else -%>
|
||||
<%= t ".description_without_count", :user => description.user.display_name %>
|
||||
<%= t ".description_without_count", :user => trace.user.display_name %>
|
||||
<% end -%>
|
||||
|
|
|
@ -25,7 +25,7 @@ xml.rss("version" => "2.0",
|
|||
xml.guid show_trace_url(trace.user, trace)
|
||||
|
||||
xml.description do
|
||||
xml.cdata! render(:partial => "description", :object => trace, :formats => [:html])
|
||||
xml.cdata! render(:partial => "description", :object => trace, :as => "trace", :formats => [:html])
|
||||
end
|
||||
|
||||
xml.dc :creator, trace.user.display_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue