summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_tree_content.html.haml
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2017-07-11 00:21:06 -0400
committerJacob Schatz <jschatz1@gmail.com>2017-07-11 00:21:06 -0400
commitdca28c946f4dcfacb8d5214a52d5d152c8c731fb (patch)
tree9fa0a707cd00a3320cc71bc22083e87a08a141b6 /app/views/projects/tree/_tree_content.html.haml
parent62ad0113402ac914c8acc3250fabc1e0464c1977 (diff)
downloadgitlab-ce-dca28c946f4dcfacb8d5214a52d5d152c8c731fb.tar.gz
Get README to render.
Diffstat (limited to 'app/views/projects/tree/_tree_content.html.haml')
-rw-r--r--app/views/projects/tree/_tree_content.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/tree/_tree_content.html.haml b/app/views/projects/tree/_tree_content.html.haml
index 2aed61b0a8f..f3f367d941e 100644
--- a/app/views/projects/tree/_tree_content.html.haml
+++ b/app/views/projects/tree/_tree_content.html.haml
@@ -21,6 +21,7 @@
#ide{ data: { url: repo_url } }
#binary-viewer{ "v-if" => "binary" }
%img{"v-if" => "binaryTypes.png", ":src" => "pngBlobWithDataURI"}
+ %div{"v-if" => "binaryTypes.markdown", "v-html" => "activeFile.html"}
- 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'