Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-01-20 15:44:39 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-01-20 15:44:39 +0300
commit53ddb8f2ccaa95a19d530827e3fc7500d02ccfff (patch)
treebf9f9ca285a167de4fb0869be6025f55830303e2 /app/views/projects/blob/_image.html.haml
parent67a6fee5b124a768279b0681b52be19f138530dc (diff)
Use a /raw/ request to show an image
Diffstat (limited to 'app/views/projects/blob/_image.html.haml')
-rw-r--r--app/views/projects/blob/_image.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_image.html.haml b/app/views/projects/blob/_image.html.haml
index c090f690d1d..51fa91b08e4 100644
--- a/app/views/projects/blob/_image.html.haml
+++ b/app/views/projects/blob/_image.html.haml
@@ -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)}