From 4dcbe9e0a9d8b2d8f580a5bd19fa19f81d3fef27 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 20 Mar 2024 18:49:10 +0300 Subject: [PATCH 1/1] Rename trace local in trace description partial --- app/views/traces/_description.html.erb | 8 ++++---- app/views/traces/georss.rss.builder | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/traces/_description.html.erb b/app/views/traces/_description.html.erb index d77173730..538e7f1ec 100644 --- a/app/views/traces/_description.html.erb +++ b/app/views/traces/_description.html.erb @@ -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 -%> diff --git a/app/views/traces/georss.rss.builder b/app/views/traces/georss.rss.builder index 924ffb935..ad5bd45b2 100644 --- a/app/views/traces/georss.rss.builder +++ b/app/views/traces/georss.rss.builder @@ -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 -- 2.39.5