OSDN Git Service

Display file size instead of mode in tree/blob partial
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Mon, 15 Oct 2012 19:04:26 +0000 (21:04 +0200)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Mon, 15 Oct 2012 21:40:18 +0000 (23:40 +0200)
app/views/tree/_blob.html.haml

index b691358..9ede3f8 100644 (file)
@@ -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