diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-20 09:50:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-20 09:50:33 +0000 |
commit | 83baccb71ac0e609ce72ebf322f73884548a9ba5 (patch) | |
tree | 768b11e9b7f242e03ba34c1769accd015815efeb /app | |
parent | 1ddd9bb55bc359fb034a1a03662ab331a0ac43dd (diff) | |
download | redmine-83baccb71ac0e609ce72ebf322f73884548a9ba5.tar.gz redmine-83baccb71ac0e609ce72ebf322f73884548a9ba5.zip |
Strikethru closed issue links (#1127).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1680 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 3 | ||||
-rw-r--r-- | app/views/projects/roadmap.rhtml | 2 | ||||
-rw-r--r-- | app/views/versions/show.rhtml | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ea7635483..6c69d8e6f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -41,6 +41,9 @@ module ApplicationHelper end def link_to_issue(issue, options={}) + options[:class] ||= '' + options[:class] << ' issue' + options[:class] << ' closed' if issue.closed? link_to "#{issue.tracker.name} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, options end diff --git a/app/views/projects/roadmap.rhtml b/app/views/projects/roadmap.rhtml index a51b22fa9..0778d8138 100644 --- a/app/views/projects/roadmap.rhtml +++ b/app/views/projects/roadmap.rhtml @@ -20,7 +20,7 @@ <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> <ul> <%- issues.each do |issue| -%> - <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li> + <li><%= link_to_issue(issue) %>: <%=h issue.subject %></li> <%- end -%> </ul> </fieldset> diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml index 7f81cf503..7f9518af8 100644 --- a/app/views/versions/show.rhtml +++ b/app/views/versions/show.rhtml @@ -38,7 +38,7 @@ <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> <ul> <% issues.each do |issue| -%> - <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li> + <li><%= link_to_issue(issue) %>: <%=h issue.subject %></li> <% end -%> </ul> </fieldset> |