From 76ffc67065b36c21966cedebe42badc33c6e0573 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Wed, 2 Apr 2025 06:51:50 +0200 Subject: [PATCH] Add add a note template --- app/views/site/_add_a_note.html.erb | 6 ++++++ app/views/site/fixthemap.html.erb | 6 ++---- app/views/site/welcome.html.erb | 6 ++---- config/locales/en.yml | 25 ++++++++++--------------- 4 files changed, 20 insertions(+), 23 deletions(-) create mode 100644 app/views/site/_add_a_note.html.erb diff --git a/app/views/site/_add_a_note.html.erb b/app/views/site/_add_a_note.html.erb new file mode 100644 index 000000000..3f26f7c06 --- /dev/null +++ b/app/views/site/_add_a_note.html.erb @@ -0,0 +1,6 @@ +

<%= t ".para_1" %>

+

<%= t ".para_2_html", + :note_icon => tag.a(:href => new_note_path, + :class => "icon note bg-dark rounded-1", + :title => t("javascripts.site.createnote_tooltip")), + :map_link => link_to(t(".the_map"), root_path) %>

diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index c4951f7cc..711db570e 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -20,10 +20,8 @@

-

<%= t "site.welcome.add_a_note.title" %>

-

<%= t "site.welcome.add_a_note.para_1" %>

-

<%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note bg-dark rounded-1", - :title => t("javascripts.site.createnote_tooltip")) %>

+

<%= t "site.add_a_note.title" %>

+ <%= render "add_a_note" %>
diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index a27e3faa0..282680ecd 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -86,8 +86,6 @@
-

<%= t ".add_a_note.title" %>

-

<%= t ".add_a_note.para_1" %>

-

<%= t ".add_a_note.para_2_html", :map_link => link_to(t(".add_a_note.the_map"), root_path), - :note_icon => tag.span(:class => "icon note bg-dark rounded-1") %>

+

<%= t "site.add_a_note.title" %>

+ <%= render "add_a_note" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index d003b8352..955bef86f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2368,11 +2368,6 @@ en: explanation_html: | If you have noticed a problem with our map data, for example a road is missing or your address, the best way to proceed is to join the OpenStreetMap community and add or repair the data yourself. - add_a_note: - instructions_1_html: | - Just click %{note_icon} or the same icon on the map display. - This will add a marker to the map, which you can move - by dragging. Add your message, then click save, and other mappers will investigate. other_concerns: title: Other concerns concerns_html: | @@ -2496,16 +2491,16 @@ en: automated_edits_url: https://wiki.openstreetmap.org/wiki/Automated_Edits_code_of_conduct start_mapping: Start Mapping continue_authorization: Continue Authorization - add_a_note: - title: No Time To Edit? Add a Note! - para_1: | - If you just want something small fixed and don't have the time to sign up and learn how to edit, it's - easy to add a note. - para_2_html: | - Just go to %{map_link} and click the note icon: %{note_icon}. - This will add a marker to the map, which you can move by dragging. - Add your message, then click save, and other mappers will investigate. - the_map: the map + add_a_note: + title: No Time To Edit? Add a Note! + para_1: | + If you just want something small fixed and don't have the time to sign up and learn how to edit, it's + easy to add a note. + para_2_html: | + Just click %{note_icon} or the same icon on %{map_link}. + This will add a marker to the map, which you can move by dragging. + Add your message, then click save, and other mappers will investigate. + the_map: the map communities: title: Communities lede_text: | -- 2.39.5