Sha256: dff56319edf31d69a57cdd05625feec12ab6217c1031db5ecc6fbb8bd5835037

Contents?: true

Size: 1.69 KB

Versions: 14

Compression:

Stored size: 1.69 KB

Contents

<% javascript 'foreman_scc_manager/scc_accounts'  %>
<% title _("SUSE subscriptions") %>
<% title_actions new_link(_("Add SCC account")) %>

<table class="<%= table_css_classes 'table-two-pane table_fixed' %>">
  <thead>
    <tr>
      <th class="col-md-4"><%= sort :name %></th>
      <th class="col-md-3"><%= _("Products") %></th>
      <th class="col-md-3"><%= _("Last synced") %></th>
      <th class="col-md-2"><%= _("Actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @scc_accounts.each do |scc_account| %>
      <tr>
        <td class="display-two-pane ellipsis">
          <%= link_to_if_authorized(scc_account.name, hash_for_edit_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer)) %>
        </td>
        <td><%= scc_account.scc_products.count.to_s %></td>
        <td><%= link_to_if(scc_account.sync_task, scc_account.sync_status, scc_account.sync_task) %></td>
        <td>
          <%= 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 })
          ) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate_with_info @scc_accounts %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman_scc_manager-1.8.4 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.7.1 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.8.3 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.8.2 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.8.1 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.8.0 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.7.0 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.6.3 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.6.2 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.6.1 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.6.0 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.5.1 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.5.0 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.4.0 app/views/scc_accounts/index.html.erb