gitlab-org--gitlab-foss/app/views/projects/blob/viewers/_svg.html.haml
2017-04-27 12:23:26 -05:00

4 lines
172 B
Text

- 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 }