From 81191b59c2c2d4ae12d5246fe91dd664caa9ce88 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Tue, 26 May 2020 14:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=93=E5=BA=93=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/show.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/show.json.jbuilder b/app/views/repositories/show.json.jbuilder index 356a024f4..6693d966d 100644 --- a/app/views/repositories/show.json.jbuilder +++ b/app/views/repositories/show.json.jbuilder @@ -29,7 +29,7 @@ json.fork_info do end end -json.size @result['size'] +json.size number_to_human_size(@result['size'].to_i) json.ssh_url @result['ssh_url'] json.clone_url @result['clone_url'] json.default_branch @result['default_branch']