summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_download.html.haml
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-12-03 17:08:09 +0100
committerMarin Jankovski <maxlazio@gmail.com>2015-12-03 17:08:09 +0100
commitea52a81da4888af232e9868d722cc91d5e442723 (patch)
tree65630bc426524d8ee876199e99535695cce248e9 /app/views/projects/blob/_download.html.haml
parent0a081e7eff9730beebd4bea1eb40873d907b6293 (diff)
downloadgitlab-ce-ea52a81da4888af232e9868d722cc91d5e442723.tar.gz
Move the file serving to Raw controller, add a few ifs to view.
Diffstat (limited to 'app/views/projects/blob/_download.html.haml')
-rw-r--r--app/views/projects/blob/_download.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/blob/_download.html.haml b/app/views/projects/blob/_download.html.haml
index f2c5e95ecf4..39ec6f693e2 100644
--- a/app/views/projects/blob/_download.html.haml
+++ b/app/views/projects/blob/_download.html.haml
@@ -4,4 +4,8 @@
%h1.light
%i.fa.fa-download
%h4
- Download (#{number_to_human_size blob.size})
+ - if blob.lfs_pointer?
+ - size = blob.lfs_size
+ - else
+ - size = blob.size
+ Download (#{number_to_human_size size})