diff options
Diffstat (limited to 'app/views/projects/blob/_blob.html.haml')
-rw-r--r-- | app/views/projects/blob/_blob.html.haml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/projects/blob/_blob.html.haml b/app/views/projects/blob/_blob.html.haml index aa9b852035e..fd0ae42571e 100644 --- a/app/views/projects/blob/_blob.html.haml +++ b/app/views/projects/blob/_blob.html.haml @@ -32,4 +32,10 @@ = link_to 'Fork', fork_path, method: :post, class: 'btn btn-grouped btn-inverted btn-new' %button.js-cancel-fork-suggestion.btn.btn-grouped{ type: 'button' } Cancel - = render blob.to_partial_path(@project), blob: blob + + - if blob.empty? + .file-content.code + .nothing-here-block + Empty file + - else + = render blob.to_partial_path(@project), blob: blob |