Strikethru closed issue links (#1127).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1680 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1ddd9bb55b
commit
83baccb71a
|
@ -41,6 +41,9 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def link_to_issue(issue, options={})
|
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
|
link_to "#{issue.tracker.name} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
||||||
<ul>
|
<ul>
|
||||||
<%- issues.each do |issue| -%>
|
<%- 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 -%>
|
<%- end -%>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
||||||
<ul>
|
<ul>
|
||||||
<% issues.each do |issue| -%>
|
<% 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 -%>
|
<% end -%>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -75,7 +75,7 @@ a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
|
||||||
a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
|
a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
|
||||||
a img{ border: 0; }
|
a img{ border: 0; }
|
||||||
|
|
||||||
a.issue.closed, .issue.closed a { text-decoration: line-through; }
|
a.issue.closed { text-decoration: line-through; }
|
||||||
|
|
||||||
/***** Tables *****/
|
/***** Tables *****/
|
||||||
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
|
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
|
||||||
|
|
Loading…
Reference in New Issue