Issue 3002, adds alt text display to complement issue 2541 #579

Merged
merged 1 commit into from Apr 15, 2012
@@ -10,8 +10,7 @@
</h4>
<!--collections header iconised header image-->
<div class="icon">
-<%# don't alt this icon it's currently only decorative%>
- <%= image_tag(collection.icon.url(:standard), :size => "100x100", :alt => "", :class => "icon") %>
+ <%= image_tag(collection.icon.url(:standard), :size => "100x100", :alt => collection.icon_alt_text, :class => "icon") %>
</div>
<p class="datetime" title="updated"><%= set_format_for_date(collection.updated_at) %></p>
<% if collection.all_moderators.length > 0%>
@@ -3,8 +3,8 @@
<div class="primary header module">
<h2 class="heading"><%= link_to_unless_current(@collection.title, @collection) %></h2>
<div class="icon">
- <% #back end if pos can we make this only print an img if there's one uploaded %>
- <%= image_tag(@collection.icon.url(:standard), :size => "100x100", :alt => "") %></div>
+ <%= image_tag(@collection.icon.url(:standard), :size => "100x100", :alt => collection.icon_alt_text) %>
+ </div>
<!--/descriptions-->
<!--subnav-->