Use a /raw/ request to show an image

This commit is contained in:
Jacob Vosmaer 2016-01-20 13:44:39 +01:00
parent 67a6fee5b1
commit 53ddb8f2cc
1 changed files with 1 additions and 1 deletions

View File

@ -1,2 +1,2 @@
.file-content.image_file
%img{ src: "data:#{blob.mime_type};base64,#{Base64.encode64(blob.data)}"}
%img{ src: namespace_project_raw_path(@project.namespace, @project, @id)}