debian-mirror-gitlab/app/views/projects/blob/viewers/_svg.html.haml
2017-08-17 22:00:37 +05:30

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 }