From 3eb76f323c66b9ac39f455313625a3f1d9634f38 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Fri, 31 Oct 2025 02:37:21 +0100 Subject: [PATCH] Replace rss icon --- app/assets/images/RSS.png | Bin 295 -> 0 bytes app/assets/images/RSS.svg | 84 ------------------------ app/assets/stylesheets/common.scss | 3 + app/helpers/application_helper.rb | 6 +- test/helpers/application_helper_test.rb | 7 +- 5 files changed, 5 insertions(+), 95 deletions(-) delete mode 100644 app/assets/images/RSS.png delete mode 100644 app/assets/images/RSS.svg diff --git a/app/assets/images/RSS.png b/app/assets/images/RSS.png deleted file mode 100644 index 89dda0c00c9b5c5efd6a97e62b84001a6a7949cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 295 zcmV+?0oeYDP)9dWdKlf`?tAHdw}e3K>YpNeCHyd zenyZXaF-DF0!Z9V7RcWR5(60m^A0FX2zbG<@Y75O5wJlG4NOo&zQeo&3Rps6@E`2_ zxsIhUmq5KU8N>(04o(ArntH#^b(I3qAWblrfWib6upl-lig6kM(hO1rqG8?v@j(F# tiXE`GCV8?G - - - - - - - image/svg+xml - - - - - - - - - - - - - - - diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index bbd1eaf8e..c56a3555f 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -829,6 +829,9 @@ nav.secondary-actions { margin-bottom: $lineheight * 0.125; } } + i.bi-rss-fill { + color: #f69e42; + } } div.secondary-actions { diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 57ca34e6c..ea0e02650 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -11,11 +11,7 @@ module ApplicationHelper end def rss_link_to(args = {}) - 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", :class => "align-text-bottom"), args + link_to tag.i(:class => "bi bi-rss-fill fs-6", :aria => { :hidden => "true" }), args end def dir diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index d0438dfa6..070086e69 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -33,12 +33,7 @@ class ApplicationHelperTest < ActionView::TestCase def test_rss_link_to link = rss_link_to(:controller => :diary_entries, :action => :rss) - 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 -- 2.39.5