From daf75cccb18cda62f2a6251986638267fde5ea10 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 10 Apr 2026 01:59:28 +0000 Subject: [PATCH] Wrap issue position text in span when not linked (#43885). git-svn-id: https://svn.redmine.org/redmine/trunk@24569 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/show.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index bc957b3ce..d9524fbc1 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -22,9 +22,12 @@ <% if @issue_position && @issue_count %>
  • - <%= link_to_if @query_path, - l(:label_item_position, :position => @issue_position, :count => @issue_count), - @query_path %> + <% position_label = l(:label_item_position, :position => @issue_position, :count => @issue_count) %> + <% if @query_path %> + <%= link_to position_label, @query_path %> + <% else %> + <%= position_label %> + <% end %>
  • <% end %>