]> source.dussan.org Git - redmine.git/commitdiff
Replaces del tags by a css style (a.issue.closed) for closed issue links.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Mar 2008 18:27:55 +0000 (18:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Mar 2008 18:27:55 +0000 (18:27 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1223 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/views/projects/roadmap.rhtml
app/views/versions/show.rhtml
public/stylesheets/application.css

index a6acafb5b16b68c082bd858a72d3dcec75e5c4b0..f21b43a231b64f0ba780400db018df57df515c30 100644 (file)
@@ -296,7 +296,7 @@ module ApplicationHelper
           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
index 6a1b6b099c50aae992820c1964d0b8a412f368ed..d9329d10926374f9bc651890b9188ad7c1004531 100644 (file)
     <% 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 %>
index 873354e0d9fdf2ffcf63a202774962adf7277571..7f81cf503bf01a42e8407045c4b86152454dbc46 100644 (file)
@@ -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>
index d855348dc3ded35dcd1ffcbd532b774070027985..b3a472720e6d2d2938f1bd42e036f6bfcfbd1d27 100644 (file)
@@ -77,6 +77,8 @@ a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
 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; }