<% javascript 'foreman_scc_manager/scc_accounts' %> <% title _("SUSE subscriptions") %> <% title_actions new_link(_("Add SCC account")) %> <% @scc_accounts.each do |scc_account| %> <% end %>
<%= sort :name %> <%= _("Products") %> <%= _("Last synced") %> <%= _("Actions") %>
<%= link_to_if_authorized(scc_account.name, hash_for_edit_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer)) %> <%= scc_account.scc_products.count.to_s %> <%= link_to_if(scc_account.sync_task, scc_account.get_sync_status, scc_account.sync_task) %> <%= action_buttons( display_link_if_authorized(_("Select products"), hash_for_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer)), display_link_if_authorized(_("Sync"), hash_for_sync_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer), :method => :put), display_delete_if_authorized(hash_for_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer), :data => { :confirm => _("Delete %s?") % scc_account.to_s }) ) %>
<%= will_paginate_with_info @scc_accounts %>