summaryrefslogtreecommitdiff
path: root/app/views/admin/system_info
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-06-28 22:30:01 -0400
committerJosh Frye <joshfng@gmail.com>2016-06-29 16:02:12 -0400
commit98238a27c7b0e5d4c7a674a78c859150966e6f8b (patch)
tree64a040513f8e231c3766e0c81233a8986ca8446f /app/views/admin/system_info
parentd171ff17beb82c2378c1eae52dada91481a48239 (diff)
downloadgitlab-ce-98238a27c7b0e5d4c7a674a78c859150966e6f8b.tar.gz
Loop all disks when displaying system infoissue-18886
Diffstat (limited to 'app/views/admin/system_info')
-rw-r--r--app/views/admin/system_info/show.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/admin/system_info/show.html.haml b/app/views/admin/system_info/show.html.haml
index 3ef2f20b589..1bf0ac1ff75 100644
--- a/app/views/admin/system_info/show.html.haml
+++ b/app/views/admin/system_info/show.html.haml
@@ -17,6 +17,9 @@
%h1= "#{number_to_human_size(@mem_used)} / #{number_to_human_size(@mem_total)}"
.col-sm-4
.light-well
- %h4 Disk
+ %h4 Disks
.data
- %h1= "#{number_to_human_size(@disk_used)} / #{number_to_human_size(@disk_total)}"
+ - @disks.each do |disk|
+ %h1= "#{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}"
+ %p= "#{disk[:disk_name]}"
+ %p= "#{disk[:mount_path]}"