From: Anton Khorev Date: Mon, 2 Dec 2024 09:02:04 +0000 (+0300) Subject: Set dir=auto on usernames in block lists X-Git-Tag: live~25^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c4d16abeb7a7252affd6aede18d8a5cbb7ba411a?ds=inline Set dir=auto on usernames in block lists --- diff --git a/app/views/user_blocks/_block.html.erb b/app/views/user_blocks/_block.html.erb index 1eb38f93f..8ae1408c6 100644 --- a/app/views/user_blocks/_block.html.erb +++ b/app/views/user_blocks/_block.html.erb @@ -1,9 +1,9 @@ <% if @show_user_name %> - <%= link_to block.user.display_name, block.user, :class => "username d-inline-block text-truncate text-wrap" %> + <%= link_to block.user.display_name, block.user, :class => "username d-inline-block text-truncate text-wrap", :dir => "auto" %> <% end %> <% if @show_creator_name %> - <%= link_to block.creator.display_name, block.creator, :class => "username d-inline-block text-truncate text-wrap" %> + <%= link_to block.creator.display_name, block.creator, :class => "username d-inline-block text-truncate text-wrap", :dir => "auto" %> <% end %> <%= h truncate(block.reason) %> <%= h block_status(block) %> @@ -11,7 +11,7 @@ <% if block.revoker_id.nil? %> <%= t(".not_revoked") %> <% else %> - <%= link_to block.revoker.display_name, block.revoker %> + <%= link_to block.revoker.display_name, block.revoker, :class => "username d-inline-block text-truncate text-wrap", :dir => "auto" %> <% end %> <%= link_to t(".show"), block %>