Commit e6c801d66c083878349be815e7c1d10c93918401
1 parent
2422aa40
Exists in
master
and in
29 other branches
ActionItem966: enhancements
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/views/content_viewer/_uploaded_file.rhtml
1 | 1 | <% if uploaded_file.image? %> |
2 | - <div> <%= link_to image_tag(uploaded_file.public_filename(:thumb), :title => uploaded_file.abstract), uploaded_file.view_url %> </div> | |
2 | + <div> <%= link_to image_tag(uploaded_file.public_filename(:thumb), :alt => uploaded_file.abstract), uploaded_file.view_url %> </div> | |
3 | 3 | <% else %> |
4 | 4 | <%= render :partial => 'article', :object => uploaded_file %> |
5 | 5 | <% end %> | ... | ... |
app/views/content_viewer/image_gallery.rhtml
... | ... | @@ -6,10 +6,10 @@ |
6 | 6 | <p><%= button(:slideshow, _('View slideshow'), @page.url.merge(:slideshow => true))%></p> |
7 | 7 | <ul> |
8 | 8 | <% @images.each do |a| %> |
9 | - <li class="image-gallery-item"> | |
9 | + <% content_tag('li', :title => a.abstract, :class => 'image-gallery-item' ) do %> | |
10 | 10 | <%= render :partial => partial_for_class(a.class), :object => a %> |
11 | 11 | <span><%= a.abstract && (a.abstract.first(40) + (a.abstract.size > 40 ? '…' : ''))%></span> |
12 | - </li> | |
12 | + <% end %> | |
13 | 13 | <% end %> |
14 | 14 | </ul> |
15 | 15 | <br style="clear:both" /> | ... | ... |