Commit c76e6b98 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Move load command into _text partial

parent b4e6ee7a
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
- if blob.lfs_pointer? - if blob.lfs_pointer?
= render "download", blob: blob = render "download", blob: blob
- elsif blob.text? - elsif blob.text?
- blob.load_all_data!(@repository)
= render "text", blob: blob = render "text", blob: blob
- elsif blob.image? - elsif blob.image?
= render "image", blob: blob = render "image", blob: blob
......
- blob.load_all_data!(@repository)
- if markup?(blob.name) - if markup?(blob.name)
.file-content.wiki .file-content.wiki
= render_markup(blob.name, blob.data) = render_markup(blob.name, blob.data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment