diff options
Diffstat (limited to 'app/views/tree/_blob.html.haml')
-rw-r--r-- | app/views/tree/_blob.html.haml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/tree/_blob.html.haml b/app/views/tree/_blob.html.haml new file mode 100644 index 00000000000..9ede3f8eb20 --- /dev/null +++ b/app/views/tree/_blob.html.haml @@ -0,0 +1,13 @@ +.file_holder + .file_title + %i.icon-file + %span.file_name + = blob.name.force_encoding('utf-8') + %small= number_to_human_size blob.size + %span.options= render "tree/blob_actions" + - if blob.text? + = render "tree/blob/text", blob: blob + - elsif blob.image? + = render "tree/blob/image", blob: blob + - else + = render "tree/blob/download", blob: blob |