Sha256: 1997b4de671c31f569288c192e35ccc6062a6c8bbc27bf676e6f84ccceec3283

Contents?: true

Size: 1.15 KB

Versions: 195

Compression:

Stored size: 1.15 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-fixed table-striped table-bordered">
    <thead>
      <tr>
        <th class='ellipsis'><%= _("Product") %></th>
        <th class='ellipsis'><%= _("Status") %></th>
        <th class='ellipsis'><%= _("Finished") %></th>
      </tr>
    </thead>
    <tbody>
      <% products.each do |product| %>
        <tr>
          <td class='ellipsis'><%= product.name %></td>
          <td><%= product.sync_status[:state] %></td>
          <td><%= product.sync_status[:finish_time] %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.16.0 app/views/dashboard/_sync_widget.html.erb
katello-4.15.1 app/views/dashboard/_sync_widget.html.erb
katello-4.16.0.rc2 app/views/dashboard/_sync_widget.html.erb
katello-4.16.0.rc1 app/views/dashboard/_sync_widget.html.erb
katello-4.14.3 app/views/dashboard/_sync_widget.html.erb
katello-4.14.2 app/views/dashboard/_sync_widget.html.erb
katello-4.15.0 app/views/dashboard/_sync_widget.html.erb
katello-4.15.0.rc2 app/views/dashboard/_sync_widget.html.erb
katello-4.15.0.rc1 app/views/dashboard/_sync_widget.html.erb
katello-4.14.1 app/views/dashboard/_sync_widget.html.erb
katello-4.14.0 app/views/dashboard/_sync_widget.html.erb
katello-4.14.0.rc3 app/views/dashboard/_sync_widget.html.erb
katello-4.14.0.rc2 app/views/dashboard/_sync_widget.html.erb
katello-4.14.0.rc1.1 app/views/dashboard/_sync_widget.html.erb
katello-4.14.0.rc1 app/views/dashboard/_sync_widget.html.erb
katello-4.13.1 app/views/dashboard/_sync_widget.html.erb
katello-4.13.0 app/views/dashboard/_sync_widget.html.erb
katello-4.12.1 app/views/dashboard/_sync_widget.html.erb
katello-4.13.0.rc1 app/views/dashboard/_sync_widget.html.erb
katello-4.12.0 app/views/dashboard/_sync_widget.html.erb