From: Tom Hughes Date: Wed, 27 Jul 2022 15:58:10 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/3630' X-Git-Tag: live~1567 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/057cf89149d2bff9b206162aa4b63fbd34505cf0?hp=e9887f88edf37ec164bb4373f7bcb86262b781b6 Merge remote-tracking branch 'upstream/pull/3630' --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 8ab10773b..8d3da8f7e 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -359,14 +359,6 @@ body.compact-nav { width: 100%; } - h2 { - font-size: 1.5rem; - } - - h3, h4 { - font-size: 1.25rem; - } - .close-wrap { cursor: pointer; position: absolute; @@ -1459,13 +1451,11 @@ dl.dl-inline { .richtext, .prose { code { - font-size: 13px; background: $lightgrey; padding: 2px 3px; } pre { - font-size: 13px; background: $lightgrey; padding: 2px 3px; white-space: pre-wrap; @@ -1508,19 +1498,10 @@ dl.dl-inline { /* Rules for the "Welcome" page */ .site-welcome, .site-fixthemap { - .center { - text-align: center; - .sprite { - float: none; - margin: auto; - } - } - .sprite { background-image: image-url("welcome-sprite.png"); background-size: 500px 250px; display: block; - float: left; } .icon-list { @@ -1570,15 +1551,6 @@ dl.dl-inline { /* no-r2 */ background-position: -350px 0; } - .start-mapping { - margin: auto; - cursor: pointer; - border: none; - padding: 20px 40px; - font-size: 30px; - text-decoration: none; - } - .icon.note { background-color: #333; border-radius: 4px; diff --git a/app/views/site/about.html.erb b/app/views/site/about.html.erb index 3753dcc8d..b4b21a567 100644 --- a/app/views/site/about.html.erb +++ b/app/views/site/about.html.erb @@ -8,14 +8,14 @@
-

<%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name"), :locale => @locale %>

+

<%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name"), :locale => @locale %>

-

<%= t ".lede_text", :locale => @locale %>

+

<%= t ".lede_text", :locale => @locale %>

<%= t ".local_knowledge_title", :locale => @locale %>

<%= t ".local_knowledge_html", :locale => @locale %>

diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb index f5adb83ac..70118b980 100644 --- a/app/views/site/fixthemap.html.erb +++ b/app/views/site/fixthemap.html.erb @@ -6,31 +6,29 @@

<%= t ".title" %>

<% end %> -

<%= t "layouts.intro_header" %>

-

<%= t "layouts.intro_text" %>

+

<%= t "layouts.intro_header" %>

+

<%= t "layouts.intro_text" %>

-

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

+

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

-
-
-
-
<%= t ".how_to_help.join_the_community.title" %>
-

<%= t ".how_to_help.join_the_community.explanation_html" %>

-

- <%= t("layouts.start_mapping") %> -

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

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

-

<%= t ".how_to_help.add_a_note.instructions_html", :map_url => root_path %>

-
+
+
+
<%= t ".how_to_help.join_the_community.title" %>
+

<%= t ".how_to_help.join_the_community.explanation_html" %>

+

+ <%= t("layouts.start_mapping") %> +

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

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

+

<%= t ".how_to_help.add_a_note.instructions_html", :map_url => root_path %>

-

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

+

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

<%= t ".other_concerns.explanation_html" %>

-

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

- +

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

+

<%= t "site.welcome.questions.paragraph_1_html", :help_url => help_path %>

diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index 4617935e7..7c1ee38ab 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -6,66 +6,66 @@

<%= t ".title" %>

<% end %> -

<%= t ".introduction_html" %>

+

<%= t ".introduction_html" %>

-

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

+

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

-
- +
+

<%= t ".whats_on_the_map.on_html" %>

- +

<%= t ".whats_on_the_map.off_html" %>

-

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

+

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

<%= t ".basic_terms.paragraph_1_html" %>

-
+
- +

<%= t ".basic_terms.editor_html" %>

- +

<%= t ".basic_terms.node_html" %>

- +

<%= t ".basic_terms.way_html" %>

- +

<%= t ".basic_terms.tag_html" %>

-
-

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

- +
+

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

+

<%= t ".rules.paragraph_1_html" %>

-
-

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

- +
+

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

+

<%= t ".questions.paragraph_1_html", :help_url => help_path %>

-
-

<%= t ".start_mapping" %>

+
-

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

+

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

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

<%= t ".add_a_note.paragraph_2_html", :map_url => root_path %>

diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index e72c423d7..69f58b5b8 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -12,19 +12,19 @@ - + - + <% if @trace.inserted? %> - + - + <% end %> - + - + - + - +
<%= t ".filename" %><%= t ".filename" %> <%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)
<%= t ".uploaded" %><%= t ".uploaded" %> <%= l @trace.timestamp, :format => :friendly %>
<%= t ".points" %><%= t ".points" %> <%= number_with_delimiter(@trace.size) %>
<%= t ".start_coordinates" %><%= t ".start_coordinates" %>
<%= t ".coordinates_html", @@ -35,15 +35,15 @@
<%= t ".owner" %><%= t ".owner" %> <%= link_to @trace.user.display_name, user_path(@trace.user) %>
<%= t ".description" %><%= t ".description" %> <%= @trace.description %>
<%= t ".tags" %><%= t ".tags" %> <% unless @trace.tags.empty? %> <%= safe_join(@trace.tags.collect { |tag| link_to tag.tag, :controller => "traces", :action => "index", :tag => tag.tag, :id => nil }, ", ") %> @@ -53,13 +53,11 @@
<%= t ".visibility" %><%= t ".visibility" %> <%= t "traces.visibility.#{@trace.visibility}" %>
-

- <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?) %>
<% if current_user == @trace.user %>