<%= t('admin_synchronizations.title') %> <% if @entity_syncs.updated_at.present? %> <%= l(DateTime.parse(@entity_syncs.updated_at), format: :short) %> <% end %>

<% if @entity_syncs.started.present? %>

<%= t('enumerations.api_synchronization_status.started') %>

<%= render 'admin_synchronizations/synchronizations', entity_syncs: @entity_syncs.started, with_environment: true %> <% end %> <% if @entity_syncs.error.present? %>

<%= t('enumerations.api_synchronization_status.error') %>

<%= render 'admin_synchronizations/synchronizations', entity_syncs: @entity_syncs.error, with_environment: true %> <% end %> <% if @entity_syncs.completed.present? %>

<%= t('enumerations.api_synchronization_status.completed') %>

<%= render 'admin_synchronizations/synchronizations', entity_syncs: @entity_syncs.completed, with_environment: true %> <% end %>
<%= javascript_pack_tag 'sync_status' %>