Sha256: 71ac48f0e8004f8e13574a1264225c77fa032f36db4ae25a612787a508c002fb
Contents?: true
Size: 1.15 KB
Versions: 8
Compression:
Stored size: 1.15 KB
Contents
<h4 class="header"> <%= _("Current Subscription Totals") %> </h4> <% organizations = Organization.current.present? ? [Organization.current] : User.current.allowed_organizations %> <% subscriptions = Katello::Subscription.in_organization(organizations).includes(:pools) %> <% total_active_subscriptions = subscriptions.select(&:active?).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>
Version data entries
8 entries across 8 versions & 1 rubygems