<%= sync.id %> <%= l(sync.started_at, format: :short) if sync.started_at %> <%= l(sync.ended_at, format: :short) if sync.ended_at %> <%= sync.time_running %> minutos <%= "#{sync.average_time} minutos" if sync.average_time %> <%= t("enumerations.api_synchronization_status.#{sync.status}") %> <% if sync.started? %> <%= "(#{sync.done_percentage}%)".html_safe %> <% end %> <% if sync.error? %> <% end %> <% if current_user.admin? %> <% if sync.started? %> <%= button_to "Cancelar", cancel_admin_synchronizations_path(ieducar_api_synchronization_id: sync.id), class: "btn btn-danger", data: { confirm: "VocĂȘ tem certeza que gostaria de cancelar?" }, method: :post %> <% end %> <% end %> <% if sync.error? %> <% end %>