diff options
author | Rémy Coutable <remy@rymai.me> | 2019-05-16 12:30:42 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-05-16 14:59:21 +0200 |
commit | ec07641435e9d49686c3eefd9d698caf1b2115dd (patch) | |
tree | 8a2be41c3c087cbd60e0546f4ac80f7734537835 /app/views/admin/projects/show.html.haml | |
parent | fcc810a1d91d0c2e6cf9726b943e06ee64b97a60 (diff) | |
download | gitlab-ce-ec07641435e9d49686c3eefd9d698caf1b2115dd.tar.gz |
Fix an error in projects admin when statistics are missing
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/views/admin/projects/show.html.haml')
-rw-r--r-- | app/views/admin/projects/show.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index f016a157daf..1e1ad9d5e19 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -74,10 +74,10 @@ %li %span.light= _('Storage:') - %strong= storage_counter(@project.statistics.storage_size) - ( - = storage_counters_details(@project.statistics) - ) + %strong= storage_counter(@project.statistics&.storage_size) + - if @project.statistics + = surround '(', ')' do + = storage_counters_details(@project.statistics) %li %span.light last commit: |