From 29583e0713245e514cfc93583452eca08aebc6d2 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 3 Jul 2024 15:14:11 +0300 Subject: [PATCH] Use inline svg for new diary entry icon --- app/assets/images/new.png | Bin 119 -> 0 bytes app/assets/images/new.svg | 73 ------------------------- app/views/diary_entries/index.html.erb | 9 ++- 3 files changed, 8 insertions(+), 74 deletions(-) delete mode 100644 app/assets/images/new.png delete mode 100644 app/assets/images/new.svg diff --git a/app/assets/images/new.png b/app/assets/images/new.png deleted file mode 100644 index 4a9fa8b362368b55aaf0803e286ab10908659635..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`cAhSdAr*|t0wRC%m3997R}uKH zE;yg%WvYU|@gV^=fo36}U}lE~#+LRTMh@Q}21nU?8XT6?do8gr4xBTWF}ui||7(!p QRG>)=p00i_>zopr0NQ6E#sB~S 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 %> -- 2.39.5