summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb3
-rw-r--r--app/views/projects/roadmap.rhtml2
-rw-r--r--app/views/versions/show.rhtml2
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>