[accessibility] move hidden span into link

pull/41/head
Romano Licker 13 years ago
parent ce2af693df
commit 9a1fbc1a24
  1. 5
      app/helpers/application_helper.rb
  2. 4
      public/stylesheets/application.css

@ -109,11 +109,10 @@ module ApplicationHelper
subject = truncate(subject, :length => options[:truncate])
end
end
closed = issue.closed? ? content_tag(:span, l(:label_closed_issues), :class => "hidden-for-sighted") : nil
s = link_to "#{h(issue.tracker)} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue},
closed = issue.closed? ? content_tag(:span, l(:label_closed_issues), :class => "hidden-for-sighted") : ""
s = link_to closed + "#{h(issue.tracker)} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue},
:class => issue.css_classes,
:title => title
s << closed unless closed.nil?
s << ": #{h subject}" if subject
s = "#{h issue.project} - " + s if options[:project]
s

@ -90,7 +90,9 @@ a, a:link, a:visited {
a:hover, a:active{ text-decoration: underline;}
a img{ border: 0; }
a.issue.closed, a.issue.closed:link, a.issue.closed:visited { text-decoration: line-through; }
a.issue.closed, a.issue.closed:link, a.issue.closed:visited {
text-decoration: line-through;
}
/***** Tables *****/
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }

Loading…
Cancel
Save