From 4f35ec97e88c4ad2017d2797d097430eaceaa427 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 Mar 2008 18:27:55 +0000 Subject: Replaces del tags by a css style (a.issue.closed) for closed issue links. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1223 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- app/views/projects/roadmap.rhtml | 10 +++------- app/views/versions/show.rhtml | 3 +-- 3 files changed, 5 insertions(+), 10 deletions(-) (limited to 'app') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a6acafb5b..f21b43a23 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -296,7 +296,7 @@ module ApplicationHelper when nil if issue = Issue.find_by_id(oid, :include => [:project, :status], :conditions => Project.visible_by(User.current)) link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid}, - :class => 'issue', + :class => (issue.closed? ? 'issue closed' : 'issue'), :title => "#{truncate(issue.subject, 100)} (#{issue.status.name})") link = content_tag('del', link) if issue.closed? end diff --git a/app/views/projects/roadmap.rhtml b/app/views/projects/roadmap.rhtml index 6a1b6b099..d9329d109 100644 --- a/app/views/projects/roadmap.rhtml +++ b/app/views/projects/roadmap.rhtml @@ -19,13 +19,9 @@ <% if issues.size > 0 %> <% end %> diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml index 873354e0d..7f81cf503 100644 --- a/app/views/versions/show.rhtml +++ b/app/views/versions/show.rhtml @@ -38,8 +38,7 @@ -- cgit v1.2.3