Commit c76e6b98 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Move load command into _text partial

parent b4e6ee7a
......@@ -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
......
- blob.load_all_data!(@repository)
- if markup?(blob.name)
.file-content.wiki
= 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