From b79f19e3464d08084e3ac65cc59b016c5909521e Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Thu, 9 Apr 2026 12:47:55 +0900 Subject: [PATCH] Wrap issue position text in span when not linked --- 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 %>
  • -- 2.50.1