From: Anton Khorev Date: Sat, 11 Jan 2025 12:57:17 +0000 (+0300) Subject: Rename gpx description template to details X-Git-Tag: live~14^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/4c73b2651c345fa7ccc444b32377fb03c1e9c82a Rename gpx description template to details "Description" is just one of trace properties, details include description and other things. --- diff --git a/app/views/user_mailer/_gpx_description.html.erb b/app/views/user_mailer/_gpx_details.html.erb similarity index 100% rename from app/views/user_mailer/_gpx_description.html.erb rename to app/views/user_mailer/_gpx_details.html.erb diff --git a/app/views/user_mailer/_gpx_description.text.erb b/app/views/user_mailer/_gpx_details.text.erb similarity index 100% rename from app/views/user_mailer/_gpx_description.text.erb rename to app/views/user_mailer/_gpx_details.text.erb diff --git a/app/views/user_mailer/gpx_failure.html.erb b/app/views/user_mailer/gpx_failure.html.erb index 5427339f9..2e5a283b8 100644 --- a/app/views/user_mailer/gpx_failure.html.erb +++ b/app/views/user_mailer/gpx_failure.html.erb @@ -2,7 +2,7 @@

<%= t ".failed_to_import" %> -<%= render :partial => "gpx_description" %> +<%= render :partial => "gpx_details" %>

<%= t ".verify" %>

diff --git a/app/views/user_mailer/gpx_failure.text.erb b/app/views/user_mailer/gpx_failure.text.erb index 860f67659..0c5edebde 100644 --- a/app/views/user_mailer/gpx_failure.text.erb +++ b/app/views/user_mailer/gpx_failure.text.erb @@ -2,7 +2,7 @@ <%= t ".failed_to_import" %> -<%= render :partial => "gpx_description" %> +<%= render :partial => "gpx_details" %> <%= t ".verify" %> diff --git a/app/views/user_mailer/gpx_success.html.erb b/app/views/user_mailer/gpx_success.html.erb index 803a85b4d..b7f6beadc 100644 --- a/app/views/user_mailer/gpx_success.html.erb +++ b/app/views/user_mailer/gpx_success.html.erb @@ -2,7 +2,7 @@

<%= t ".imported_successfully" %>

-<%= render :partial => "gpx_description" %> +<%= render :partial => "gpx_details" %>

<%= t ".all_your_traces_html", :url => link_to(@my_traces_url, @my_traces_url) %> diff --git a/app/views/user_mailer/gpx_success.text.erb b/app/views/user_mailer/gpx_success.text.erb index 6bb3e6879..fa4fed7d6 100644 --- a/app/views/user_mailer/gpx_success.text.erb +++ b/app/views/user_mailer/gpx_success.text.erb @@ -2,6 +2,6 @@ <%= t ".imported_successfully" %> -<%= render :partial => "gpx_description" %> +<%= render :partial => "gpx_details" %> <%= t ".all_your_traces", :url => @my_traces_url %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 0f2329a8d..a62f4d34f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1668,7 +1668,7 @@ en: see_their_profile_html: "You can see their profile at %{userurl}." befriend_them: "You can also add them as a friend at %{befriendurl}." befriend_them_html: "You can also add them as a friend at %{befriendurl}." - gpx_description: + gpx_details: details: "Your file details:" filename: Filename url: URL