% if !BundleUpdateTemp.first.nil? %>
<% tp = BundleUpdateTemp.first %>
全部:
<%= tp.all_ids.count %>
目前:
<% now_index = tp.all_ids.index(tp.now_id) %>
<% if tp.now_id=='finish'
now_index = tp.all_ids.count - 1
end
%>
<%= now_index.nil? ? "unprocess" : now_index+1 %>
失敗(僅確認可登入):
<%= now_index.nil? ? 0 : RegisteredSite.where(:id.in => Array(tp.all_ids[0..now_index])).select{|v| (v.site_statuses.first.can_login rescue true) && v.bundle_update_logs.first.status=='failed'}.collect{|v| "#{v.show_name} :#{v.bundle_update_logs.first.last_message}"}.join('
').html_safe %>
<% end %>
<%= render_filter @filter_fields, "index_table" %>
select all behind
show_all
ok only
fail only