Use a /raw/ request to show an image
This commit is contained in:
parent
67a6fee5b1
commit
53ddb8f2cc
1 changed files with 1 additions and 1 deletions
|
@ -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)}
|
||||
|
|
Loading…
Reference in a new issue