summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-02 14:17:08 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-02 14:17:08 +0100
commitc76e6b982bb171f24592b62264b28eb3fbe1bafc (patch)
treed7dccdc0006a1d5de545557733b1db4a84191952
parentb4e6ee7adc5ad4cb4ab42c5b691684885e2562f1 (diff)
downloadgitlab-ce-c76e6b982bb171f24592b62264b28eb3fbe1bafc.tar.gz
Move load command into _text partial
-rw-r--r--app/views/projects/blob/_blob.html.haml1
-rw-r--r--app/views/projects/blob/_text.html.haml1
2 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_blob.html.haml b/app/views/projects/blob/_blob.html.haml
index 50aea968980..3d8d88834e2 100644
--- a/app/views/projects/blob/_blob.html.haml
+++ b/app/views/projects/blob/_blob.html.haml
@@ -35,7 +35,6 @@
- if blob.lfs_pointer?
= render "download", blob: blob
- elsif blob.text?
- - blob.load_all_data!(@repository)
= render "text", blob: blob
- elsif blob.image?
= render "image", blob: blob
diff --git a/app/views/projects/blob/_text.html.haml b/app/views/projects/blob/_text.html.haml
index 906e5ccb360..d09cd73558c 100644
--- a/app/views/projects/blob/_text.html.haml
+++ b/app/views/projects/blob/_text.html.haml
@@ -1,3 +1,4 @@
+- blob.load_all_data!(@repository)
- if markup?(blob.name)
.file-content.wiki
= render_markup(blob.name, blob.data)