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
<% 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 %>
<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>
a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
a img{ border: 0; }
+a.issue.closed, .issue.closed a { text-decoration: line-through; }
+
/***** Tables *****/
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }