diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-09 18:27:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-09 18:27:55 +0000 |
commit | 4f35ec97e88c4ad2017d2797d097430eaceaa427 (patch) | |
tree | 887761abbcda17ca1f0daab73bfbf0d73990dec7 /app/views | |
parent | 8195f95464bed5dd08305589f305a23bbd6ad245 (diff) | |
download | redmine-4f35ec97e88c4ad2017d2797d097430eaceaa427.tar.gz redmine-4f35ec97e88c4ad2017d2797d097430eaceaa427.zip |
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
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/roadmap.rhtml | 10 | ||||
-rw-r--r-- | app/views/versions/show.rhtml | 3 |
2 files changed, 4 insertions, 9 deletions
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 %> <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> <ul> - <% issues.each do |issue| %> - <li> - <%= link = link_to_issue(issue) - issue.status.is_closed? ? content_tag("del", link) : link %>: <%=h issue.subject %> - <%= content_tag "em", "(#{l(:label_closed_issues)})" if issue.status.is_closed? %> - </li> - <% end %> + <%- issues.each do |issue| -%> + <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li> + <%- end -%> </ul> </fieldset> <% 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 @@ <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> <ul> <% issues.each do |issue| -%> - <li><%= link = link_to_issue(issue) - issue.status.is_closed? ? content_tag("del", link) : link %>: <%=h issue.subject %></li> + <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li> <% end -%> </ul> </fieldset> |