debian-mirror-gitlab/app/views/projects/blob/viewers/_svg.html.haml

5 lines
172 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- blob = viewer.blob
- data = sanitize_svg_data(blob.data)
.file-content.image_file
%img{ src: "data:#{blob.mime_type};base64,#{Base64.encode64(data)}", alt: blob.name }