From 707360169ed128a4568a00188464b7040e86a150 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 29 Nov 2006 20:02:55 +0000 Subject: [PATCH] issue links modified on activity, calendar and gantt views git-svn-id: http://redmine.rubyforge.org/svn/trunk@56 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- redmine/app/views/projects/activity.rhtml | 2 +- redmine/app/views/projects/calendar.rhtml | 2 +- redmine/app/views/projects/gantt.rhtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/redmine/app/views/projects/activity.rhtml b/redmine/app/views/projects/activity.rhtml index 670e572ae..d6e5a1a43 100644 --- a/redmine/app/views/projects/activity.rhtml +++ b/redmine/app/views/projects/activity.rhtml @@ -18,7 +18,7 @@ <% @events_by_day[day].sort {|x,y| y.created_on <=> x.created_on }.each do |e| %>
  • <% if e.is_a? Issue %> - <%= e.created_on.strftime("%H:%M") %> <%= e.tracker.name %> <%= link_to e.long_id, :controller => 'issues', :action => 'show', :id => e %> (<%= e.status.name %>): <%= e.subject %>
    + <%= e.created_on.strftime("%H:%M") %> <%= link_to "#{e.tracker.name} ##{e.id}", :controller => 'issues', :action => 'show', :id => e %> (<%= e.status.name %>): <%= e.subject %>
    <%= e.author.name %> <% elsif e.is_a? News %> <%= e.created_on.strftime("%H:%M") %> <%=l(:label_news)%>: <%= link_to e.title, :controller => 'news', :action => 'show', :id => e %>
    diff --git a/redmine/app/views/projects/calendar.rhtml b/redmine/app/views/projects/calendar.rhtml index 236184fa3..a42a95e4c 100644 --- a/redmine/app/views/projects/calendar.rhtml +++ b/redmine/app/views/projects/calendar.rhtml @@ -42,7 +42,7 @@ while day <= @date_to elsif day == i.due_date image_tag('arrow_to') end %> - <%= i.tracker.name %> <%= link_to i.id, :controller => 'issues', :action => 'show', :id => i %>: <%= i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %>
    + <%= link_to "#{i.tracker.name} ##{i.id}", :controller => 'issues', :action => 'show', :id => i %>: <%= i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %>
    <% end %> <%= '' if day.cwday >= 7 and day!=@date_to %> diff --git a/redmine/app/views/projects/gantt.rhtml b/redmine/app/views/projects/gantt.rhtml index cb515cd7e..6aa271add 100644 --- a/redmine/app/views/projects/gantt.rhtml +++ b/redmine/app/views/projects/gantt.rhtml @@ -102,7 +102,7 @@ t_height = g_height + headers_heigth top = headers_heigth + 8 @issues.each do |i| %>

    - <%= link_to i.id, :controller => 'issues', :action => 'show', :id => i %> + <%= link_to "#{i.tracker.name} ##{i.id}", :controller => 'issues', :action => 'show', :id => i %>: <%= i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %>
    <% top = top + 20 -- 2.39.5