From: Anton Khorev Date: Wed, 3 Jul 2024 12:14:11 +0000 (+0300) Subject: Use inline svg for new diary entry icon X-Git-Tag: live~430^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/29583e0713245e514cfc93583452eca08aebc6d2 Use inline svg for new diary entry icon --- diff --git a/app/assets/images/new.png b/app/assets/images/new.png deleted file mode 100644 index 4a9fa8b36..000000000 Binary files a/app/assets/images/new.png and /dev/null differ diff --git a/app/assets/images/new.svg b/app/assets/images/new.svg deleted file mode 100644 index ef65650f7..000000000 --- a/app/assets/images/new.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb index a0ab0264a..15be9e964 100644 --- a/app/views/diary_entries/index.html.erb +++ b/app/views/diary_entries/index.html.erb @@ -25,7 +25,14 @@ <% end %> <% if @user && @user == current_user || !@user && current_user %> -
  • <%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %>
  • +
  • + <%= link_to new_diary_entry_path, :class => "icon-link", :title => t(".new_title") do %> + + + + <%= t(".new") %> + <% end %> +
  • <% end %>