From d96a807db7ec6294d47c260fe143d826e3502ae1 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Mon, 15 Oct 2012 21:04:26 +0200 Subject: [PATCH] Display file size instead of mode in tree/blob partial --- app/views/tree/_blob.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tree/_blob.html.haml b/app/views/tree/_blob.html.haml index b6913586..9ede3f8e 100644 --- a/app/views/tree/_blob.html.haml +++ b/app/views/tree/_blob.html.haml @@ -3,7 +3,7 @@ %i.icon-file %span.file_name = blob.name.force_encoding('utf-8') - %small #{blob.mode} + %small= number_to_human_size blob.size %span.options= render "tree/blob_actions" - if blob.text? = render "tree/blob/text", blob: blob