diff options
author | Kushal Pandya <kushal@gitlab.com> | 2016-12-22 15:00:56 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2016-12-31 11:43:08 +0530 |
commit | 71dc50f048ce5604e331f69cb50c4fa6b4a73bbb (patch) | |
tree | 4e6f28bfcb11ad7fea62022b0f075036d1a1f459 /app/views/projects/diffs | |
parent | 21777aa1ff9f4b54258d8091b3864a1a08f73cb9 (diff) | |
download | gitlab-ce-71dc50f048ce5604e331f69cb50c4fa6b4a73bbb.tar.gz |
HAMLLint: fix `AltText` offences
Diffstat (limited to 'app/views/projects/diffs')
-rw-r--r-- | app/views/projects/diffs/_image.html.haml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/projects/diffs/_image.html.haml b/app/views/projects/diffs/_image.html.haml index 9ec6a7aa5cd..28fee887f4d 100644 --- a/app/views/projects/diffs/_image.html.haml +++ b/app/views/projects/diffs/_image.html.haml @@ -8,7 +8,7 @@ .image %span.wrap .frame{class: image_diff_class(diff)} - %img{src: diff.deleted_file ? old_file_raw_path : file_raw_path} + %img{src: diff.deleted_file ? old_file_raw_path : file_raw_path, alt: diff.new_path} %p.image-info= "#{number_to_human_size file.size}" - else .image @@ -16,7 +16,7 @@ %span.wrap .frame.deleted %a{href: namespace_project_blob_path(@project.namespace, @project, tree_join(diff_file.old_ref, diff.old_path))} - %img{src: old_file_raw_path} + %img{src: old_file_raw_path, alt: diff.old_path} %p.image-info.hide %span.meta-filesize= "#{number_to_human_size old_file.size}" | @@ -28,7 +28,7 @@ %span.wrap .frame.added %a{href: namespace_project_blob_path(@project.namespace, @project, tree_join(diff_file.new_ref, diff.new_path))} - %img{src: file_raw_path} + %img{src: file_raw_path, alt: diff.new_path} %p.image-info.hide %span.meta-filesize= "#{number_to_human_size file.size}" | @@ -41,10 +41,10 @@ %div.swipe.view.hide .swipe-frame .frame.deleted - %img{src: old_file_raw_path} + %img{src: old_file_raw_path, alt: diff.old_path} .swipe-wrap .frame.added - %img{src: file_raw_path} + %img{src: file_raw_path, alt: diff.new_path} %span.swipe-bar %span.top-handle %span.bottom-handle @@ -52,9 +52,9 @@ %div.onion-skin.view.hide .onion-skin-frame .frame.deleted - %img{src: old_file_raw_path} + %img{src: old_file_raw_path, alt: diff.old_path} .frame.added - %img{src: file_raw_path} + %img{src: file_raw_path, alt: diff.new_path} .controls .transparent .drag-track |