gitlabhq/app/views/tree/_blob.html.haml

13 lines
353 B
Text

.file_holder
.file_title
%i.icon-file
%span.file_name
= blob.name
%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