record-and-playback: Forced alt to be included as part of the image thumbnail element in preview extension

This commit is contained in:
jfederico 2016-09-27 16:02:20 -04:00
parent 039d85fe5c
commit d2a633a27b

View File

@ -1034,8 +1034,7 @@ begin
xml.preview {
xml.images {
presentation[:slides].each do |key,val|
attributes = {:width => "176", :height => "136"}
attributes[:alt] = val[:alt] if val[:alt] != nil
attributes = {:width => "176", :height => "136", :alt => (val[:alt] != nil)? "#{val[:alt]}": ""}
xml.image(attributes){ xml.text("#{playback_protocol}://#{playback_host}/presentation/#{$meeting_id}/presentation/#{presentation[:id]}/thumbnails/thumb-#{key}.png") }
end
}