diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-02-02 14:17:08 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-02-02 14:17:08 +0100 |
commit | c76e6b982bb171f24592b62264b28eb3fbe1bafc (patch) | |
tree | d7dccdc0006a1d5de545557733b1db4a84191952 /app/views/projects/blob | |
parent | b4e6ee7adc5ad4cb4ab42c5b691684885e2562f1 (diff) | |
download | gitlab-ce-c76e6b982bb171f24592b62264b28eb3fbe1bafc.tar.gz |
Move load command into _text partial
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r-- | app/views/projects/blob/_blob.html.haml | 1 | ||||
-rw-r--r-- | app/views/projects/blob/_text.html.haml | 1 |
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) |