Sha256: 3a93c143cf16541d8be1d715de77d47dac031d825e11c3dde3a62ae8ae58b0dc

Contents?: true

Size: 1.27 KB

Versions: 27

Compression:

Stored size: 1.27 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><%= _("Subscription Status") %></th>
        <th><%= _("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

27 entries across 27 versions & 1 rubygems

Version Path
katello-3.7.0.rc1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.6.0 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.6.0.1.rc2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.6.0.rc2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.6.0.rc1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.1.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.0.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.0 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.0.rc2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.5.0.rc1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.5 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.4 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.0.2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.0.1 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.3.2 app/views/dashboard/_subscription_status_widget.html.erb
katello-3.4.0 app/views/dashboard/_subscription_status_widget.html.erb