From 02b663c4de23b04585476b35dcc75f97af42e55c Mon Sep 17 00:00:00 2001 From: icyleaf Date: Wed, 11 Oct 2023 10:15:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E8=A7=A3=E5=8C=85=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/teardowns/_devices_part.html.slim | 6 +++--- app/views/teardowns/_ios.html.slim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/teardowns/_devices_part.html.slim b/app/views/teardowns/_devices_part.html.slim index 0cce4eee8..e098e5bca 100644 --- a/app/views/teardowns/_devices_part.html.slim +++ b/app/views/teardowns/_devices_part.html.slim @@ -1,14 +1,14 @@ -- if @metadata.release_type == AppInfo::IPA::ExportType::ADHOC +- if devices.present? .card .card-header h3.card-title - = t('teardowns.show.devise_list', count: @metadata.devices.size) + = t('teardowns.show.devise_list', count: devices.size) .card-tools button.btn.btn-tool data-card-widget="collapse" i.fas.fa-minus .card-body.p-0.pl-3 table.table - - @metadata.devices.each do |udid| + - devices.sort.each do |udid| tr td span = udid diff --git a/app/views/teardowns/_ios.html.slim b/app/views/teardowns/_ios.html.slim index fec61ae99..ee0965054 100644 --- a/app/views/teardowns/_ios.html.slim +++ b/app/views/teardowns/_ios.html.slim @@ -31,7 +31,7 @@ dd pre = number_to_human_size(@metadata.size) - == render 'devices_part' + == render 'devices_part', devices: @metadata.devices == render 'card', title: t('teardowns.show.capabilities'), raw: @metadata.capabilities .col-md-6