From: Anton Khorev Date: Sat, 10 Feb 2024 15:37:26 +0000 (+0300) Subject: Use svg icons in previous/next changeset links X-Git-Tag: live~787^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7918b151d897aaef2be6f56e6b2f913c0c7ff0ca Use svg icons in previous/next changeset links --- diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index ec4e0c1c2..1b3d245fb 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -120,14 +120,20 @@ <% if @next_by_user || @prev_by_user %>
<% if @prev_by_user %> - <%= link_to "<< #{@prev_by_user.id}", :id => @prev_by_user.id %> + <%= link_to({ :id => @prev_by_user.id }, :class => "icon-link") do %> + <%= previous_page_svg_tag :height => 11 %> + <%= @prev_by_user.id %> + <% end %> · <% end %> <%= user = (@prev_by_user || @next_by_user).user.display_name link_to tag.bdi(user), :controller => "changesets", :action => "index", :display_name => user %> <% if @next_by_user %> · - <%= link_to "#{@next_by_user.id} >>", :id => @next_by_user.id %> + <%= link_to({ :id => @next_by_user.id }, :class => "icon-link") do %> + <%= @next_by_user.id %> + <%= next_page_svg_tag :height => 11 %> + <% end %> <% end %>
<% end %>