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 %>