Feature #19970
More reasonable issue subject truncation for subtasks and related issues
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Issues | |||
Target version: | - | |||
Resolution: | Duplicate |
Description
I found it very annoying for subjects to be cut off, leaving a lot of horizontal space empty on the screen. This didn't go well with our policy to use expressive subjects.
The choice to truncate at 60 chars seems to be from the early Redmine days, I guess back then the average display resolution was such that this made more sense.
This are the needed changes to increase to 100 chars:
diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb --- a/app/views/issues/_relations.html.erb +++ b/app/views/issues/_relations.html.erb @@ -17,7 +17,7 @@ <%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> <%= h(other_issue.project) + ' - ' if Setting.cross_project_issue_relations? %> - <%= link_to_issue(other_issue, :truncate => 60) %> + <%= link_to_issue(other_issue, :truncate => 100) %> </td> <td class="status"><%=h other_issue.status.name %></td> <td class="start_date"><%= format_date(other_issue.start_date) %></td> diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -84,7 +84,7 @@ module IssuesHelper css << " idnt idnt-#{level}" if level > 0 s << content_tag('tr', content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') + - content_tag('td', link_to_issue(child, :truncate => 60, :project => (issue.project_id != child.project_id)), :class => 'subject') + + content_tag('td', link_to_issue(child, :truncate => 100, :project => (issue.project_id != child.project_id)), :class => 'subject') + content_tag('td', h(child.status)) + content_tag('td', link_to_user(child.assigned_to)) + content_tag('td', progress_bar(child.done_ratio, :width => '80px')),
We're still on 2.4, so I'm not sure if this exact patch would apply to current HEAD.
Of course this is just a suggestion which you may not agree with.
Related issues
History
#1
Updated by Go MAEDA almost 6 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Fixed by #18659.
Please update to Redmine 3.0.0. Long subjects are not truncated.
#2
Updated by Go MAEDA almost 6 years ago
- Duplicates Patch #18659: Do not truncate subissue/related issues titles on single issue view added