summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-01-29 17:28:51 +0100
committerMarin Jankovski <marin@gitlab.com>2014-01-29 17:28:51 +0100
commit4f3876a2b6f3e0c14807058ba73336c1ebcb7613 (patch)
tree010414a34f91c0cac509e5b663d2996135ed3e70 /app/helpers
parent741db7603ce198f15b2325d1e4bc776cbb291ab6 (diff)
downloadgitlab-ce-4f3876a2b6f3e0c14807058ba73336c1ebcb7613.tar.gz
Show images as raw and update the documentation.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/gitlab_markdown_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb
index dd7d3272cfe..eb68607f050 100644
--- a/app/helpers/gitlab_markdown_helper.rb
+++ b/app/helpers/gitlab_markdown_helper.rb
@@ -173,6 +173,7 @@ module GitlabMarkdownHelper
# eg. doc/api is directory and doc/README.md is file
def local_path(path)
return "tree" if Tree.new(@repository, current_ref, path).entries.any?
+ return "raw" if @repository.blob_at(current_ref, path).image?
return "blob"
end