Skip to content

Commit

Permalink
Give a decorative image an empty alt attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhoorn committed Oct 31, 2012
1 parent 1ee76b7 commit 6f5e8b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/news_archives/_news_items_listing.html.haml
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
- unless news_items.empty? - if news_items.present?
- first_item = news_items.shift - first_item = news_items.shift

- header_image = first_item.node.children.accessible.with_content_type('Image').include_content.first.try(:content) - header_image = first_item.node.children.accessible.with_content_type('Image').include_content.first.try(:content)


- if header_image - if header_image
Expand All @@ -11,7 +11,7 @@


%p.publicationDate %p.publicationDate
= l(first_item.publication_start_date.to_date, :format => :long) = l(first_item.publication_start_date.to_date, :format => :long)
%p= link_to_content_node "#{strip_tags(truncate(first_item.preamble, :length => 200))} #{image_tag('pointer_right.png')}", first_item, { :type => :url, :host => first_item.node.containing_site.content.domain }, :class => 'body' %p= link_to_content_node "#{strip_tags(truncate(first_item.preamble, :length => 200))} #{image_tag('pointer_right.png', :alt => '')}", first_item, { :type => :url, :host => first_item.node.containing_site.content.domain }, :class => 'body'


%ul %ul
- news_items.each do |news_item| - news_items.each do |news_item|
Expand Down

0 comments on commit 6f5e8b5

Please sign in to comment.