Sha256: e127139ca74492942baf2dcfc5a5119c2eb86bdddf18631e0574d7d6209c75cd

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

<h4 class="header">
  <%= _("Sync Overview") %>
</h4>

<% organizations = Organization.current.present? ? [Organization.current] : User.current.allowed_organizations %>
<% products = Katello::Product.includes(:provider => [:organization]).in_orgs(organizations).syncable_content.syncable %>
<% products = products.select { |product| product.sync_status.key?(:start_time) } %>
<% products = products.sort { |a,b| b.sync_status[:start_time] <=> a.sync_status[:start_time] } %>
<% products = products[0...6] %>

<% if products.empty? %>
  <p class="ca"><%= _("No recently synced products") %></p>
<% else %>
  <table class="table table-striped ellipsis table-bordered">
    <thead>
      <tr>
        <th>Product</th>
        <th>Status</th>
        <th>Finished</th>
      </tr>
    </thead>
    <tbody>
      <% products.each do |product| %>
        <tr>
          <td><%= product.name %></td>
          <td><%= product.sync_status[:state] %></td>
          <td><%= product.sync_status[:finish_time] %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-2.4.5 app/views/dashboard/_sync_widget.html.erb
katello-2.4.4 app/views/dashboard/_sync_widget.html.erb
katello-2.4.3 app/views/dashboard/_sync_widget.html.erb
katello-2.4.2 app/views/dashboard/_sync_widget.html.erb
katello-3.0.0.rc1 app/views/dashboard/_sync_widget.html.erb
katello-2.4.1 app/views/dashboard/_sync_widget.html.erb
katello-2.4.0 app/views/dashboard/_sync_widget.html.erb
katello-2.4.0.rc3 app/views/dashboard/_sync_widget.html.erb
katello-2.4.0.rc2 app/views/dashboard/_sync_widget.html.erb
katello-2.4.0.rc1 app/views/dashboard/_sync_widget.html.erb