From 6681b25b96ec4c0b790e522f4a56a92622c17b29 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Sat, 21 Jun 2025 19:09:23 +0200 Subject: [PATCH] Change social link fallback to website --- .../images/social_link_icons/{other.svg => website.svg} | 0 app/views/social_links/_show.html.erb | 4 ++-- config/locales/en.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename app/assets/images/social_link_icons/{other.svg => website.svg} (100%) diff --git a/app/assets/images/social_link_icons/other.svg b/app/assets/images/social_link_icons/website.svg similarity index 100% rename from app/assets/images/social_link_icons/other.svg rename to app/assets/images/social_link_icons/website.svg diff --git a/app/views/social_links/_show.html.erb b/app/views/social_links/_show.html.erb index a168d8692..65359a89f 100644 --- a/app/views/social_links/_show.html.erb +++ b/app/views/social_links/_show.html.erb @@ -2,8 +2,8 @@ <% social_links.each do |social_link| %>
  • <%= link_to social_link.parsed[:url], :class => "icon-link mw-100 text-body-secondary mb-3", :rel => "nofollow me" do %> - <%= image_tag "social_link_icons/#{social_link.parsed[:platform].nil? ? 'other' : social_link.parsed[:platform]}.svg", - :alt => social_link.parsed[:platform].nil? ? t(".other") : social_link.parsed[:platform], + <%= image_tag "social_link_icons/#{social_link.parsed[:platform].nil? ? 'website' : social_link.parsed[:platform]}.svg", + :alt => social_link.parsed[:platform].nil? ? t(".website") : social_link.parsed[:platform], :size => "16" %> <%= social_link.parsed[:name] %> diff --git a/config/locales/en.yml b/config/locales/en.yml index b699b6b9c..75767d1c4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2587,7 +2587,7 @@ en: communities_wiki_url: https://wiki.openstreetmap.org/wiki/User_group social_links: show: - other: Other + website: website legend_panes: show: entries: -- 2.39.5