Sha256: 21a1ae2d23be62bcbda3721c2fd509a2e5221ec71ef81de82ed84b3ea31e6837

Contents?: true

Size: 1.3 KB

Versions: 172

Compression:

Stored size: 1.3 KB

Contents

<h4 class="header">
  <%= _("Subscription Status") %>
</h4>

<% unless Organization.current.present? %>
  <p class="ca"><%= _("Please select an organization to view subscription totals.") %></p>
<% else %>
  <% subscriptions = Katello::Subscription.in_organization([Organization.current]).includes(:pools) %>
  <% total_active_subscriptions = Organization.current.active_pools_count %>
  <% total_expiring_subscriptions = subscriptions.select(&:expiring_soon?).count %>
  <% total_recently_expired_subscriptions = subscriptions.select(&:recently_expired?).count %>

  <table class="table table-fixed table-striped table-bordered">
    <thead>
      <tr>
        <th class='ellipsis'><%= _("Subscription Status") %></th>
        <th class='ellipsis'><%= _("Count") %></th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><%= _("Active Subscriptions") %></td>
        <td style="text-align:right;"><%= total_active_subscriptions %></td>
      </tr>
      <tr>
        <td><%= _("Subscriptions Expiring in 120 Days") %></td>
        <td style="text-align:right;"><%= total_expiring_subscriptions %></td>
      </tr>
      <tr>
        <td><%= _("Recently Expired Subscriptions") %></td>
        <td style="text-align:right;"><%= total_recently_expired_subscriptions %></td>
      </tr>
    </tbody>
  </table>
<% end %>


Version data entries

172 entries across 172 versions & 1 rubygems

Version Path
katello-4.11.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.11.0 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.11.0.rc2 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.11.0.rc1 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.10.0 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.9.2 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.10.0.rc2 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.10.0.rc1 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.8.4 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.9.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.8.3 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.9.0 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.7.6 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.8.2 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.9.0.rc2 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.9.0.rc1 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.8.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.7.5 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.8.0 app/views/dashboard/_subscription_status_widget.html.erb
katello-4.8.0.rc2 app/views/dashboard/_subscription_status_widget.html.erb