diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-01-29 17:28:51 +0100 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-01-29 17:28:51 +0100 |
commit | 4f3876a2b6f3e0c14807058ba73336c1ebcb7613 (patch) | |
tree | 010414a34f91c0cac509e5b663d2996135ed3e70 /app/helpers | |
parent | 741db7603ce198f15b2325d1e4bc776cbb291ab6 (diff) | |
download | gitlab-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.rb | 1 |
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 |