From: Tom Hughes
Date: Sun, 28 Apr 2024 17:45:44 +0000 (+0100)
Subject: Merge remote-tracking branch 'upstream/pull/4732'
X-Git-Tag: live~1101
X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fd732ee33da48915fc964d45e95d3ce6eaf858be?hp=312648cb05d891d62aa670b96e7ffc812265fe90
Merge remote-tracking branch 'upstream/pull/4732'
---
diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss
index 7871e8a41..d8f13287b 100644
--- a/app/assets/stylesheets/common.scss
+++ b/app/assets/stylesheets/common.scss
@@ -16,11 +16,6 @@ time[title] {
#container { position: relative; }
-.small_icon {
- vertical-align: middle;
- margin-right: $lineheight * 0.25;
-}
-
/* Rules for icons */
.icon {
@@ -924,11 +919,6 @@ div.secondary-actions {
.sprite.rules {
/*rtl:ignore*/ background-position: -350px 0;
}
-
- .icon.note {
- background-color: #333;
- border-radius: 4px;
- }
}
.site-about #content {
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 368668a9b..fcf253289 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -10,11 +10,11 @@ module ApplicationHelper
end
def rss_link_to(args = {})
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
+ link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args
end
def atom_link_to(args = {})
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
+ link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args
end
def dir
diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb
index 78ac0dcf8..a0ab0264a 100644
--- a/app/views/diary_entries/index.html.erb
+++ b/app/views/diary_entries/index.html.erb
@@ -25,7 +25,7 @@
<% end %>
<% if @user && @user == current_user || !@user && current_user %>
- <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
+ <%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %>
<% end %>
diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb
index c1a61362f..3edafd8b7 100644
--- a/app/views/site/fixthemap.html.erb
+++ b/app/views/site/fixthemap.html.erb
@@ -22,7 +22,7 @@
<%= 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") %>
+
<%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note bg-dark rounded-1") %>
diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb
index 8ec32ea9c..f8f339284 100644
--- a/app/views/site/welcome.html.erb
+++ b/app/views/site/welcome.html.erb
@@ -73,5 +73,5 @@
<%= 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") %>
+ :note_icon => tag.span(:class => "icon note bg-dark rounded-1") %>
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index a905090db..24d74c85f 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -31,12 +31,12 @@ class ApplicationHelperTest < ActionView::TestCase
def test_rss_link_to
link = rss_link_to(:controller => :diary_entries, :action => :rss)
- assert_dom_equal "", link
+ assert_dom_equal "
", link
end
def test_atom_link_to
link = atom_link_to(:controller => :changesets, :action => :feed)
- assert_dom_equal "", link
+ assert_dom_equal "
", link
end
def test_dir