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 Schatz <jschatz1@gmail.com>2017-07-01 06:07:00 +0300
committerJacob Schatz <jschatz1@gmail.com>2017-07-01 06:07:00 +0300
commit78db68ab776e944261187d87215a8d61df7185b0 (patch)
tree9d8eb7a5fad71714f8a28c9a2ef7dba95a168229 /app/views/projects/tree/_tree_content.html.haml
parent7869cbaa7be6360c895b443fff19e1241bf8ed24 (diff)
Show PNG's and setup nice framework for showing any binary fine.
Diffstat (limited to 'app/views/projects/tree/_tree_content.html.haml')
-rw-r--r--app/views/projects/tree/_tree_content.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/tree/_tree_content.html.haml b/app/views/projects/tree/_tree_content.html.haml
index 948d46c02c9..045bade6bec 100644
--- a/app/views/projects/tree/_tree_content.html.haml
+++ b/app/views/projects/tree/_tree_content.html.haml
@@ -16,7 +16,8 @@
%ul#tabs{"v-if" => "isMini"}
%li{ is: "repo-tab", "v-for" => "tab in openedFiles", ":key" => "tab.id", ":tab" => "tab", ":class" => "{'active' : tab.active}" }
#ide{ data: { url: repo_url } }
-
+ #binary-viewer{ "v-if" => "binary" }
+ %img{"v-if" => "binaryTypes.png", ":src" => "pngBlobWithDataURI"}
- if can_edit_tree?
= render 'projects/blob/upload', title: _('Upload New File'), placeholder: _('Upload New File'), button_title: _('Upload file'), form_path: namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post
= render 'projects/blob/new_dir'