Sha256: 1b90e6f0944c7cec4204b8e299249c1e710207bc95c250723f2442833c4a86b9

Contents?: true

Size: 1.43 KB

Versions: 10

Compression:

Stored size: 1.43 KB

Contents

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

<% organizations = Organization.current.present? ? [Organization.current] : User.current.allowed_organizations %>
<% owner_infos = organizations.map(&:owner_info) %>
<% invalid_consumer_count = owner_infos.map(&:total_invalid_compliance_consumers).reduce(:+) %>
<% partial_consumer_count = owner_infos.map(&:total_partial_compliance_consumers).reduce(:+) %>
<% valid_consumer_count = owner_infos.map(&:total_valid_compliance_consumers).reduce(:+) %>
<% total_count = owner_infos.map(&:total_consumers).reduce(:+) %>

<table class="table table-striped ellipsis table-bordered">
  <thead>
    <tr>
      <th></th>
      <th>Count</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><i class="label label-danger" style="margin-right: 6px">&nbsp;</i><%= _("Invalid") %></td>
      <td style="text-align:right"><%= invalid_consumer_count %></td>
    </tr>
    <tr>
      <td><i class="label label-warning" style="margin-right: 6px">&nbsp;</i><%= _("Partial") %></td>
      <td style="text-align:right;"><%= partial_consumer_count %></td>
    </tr>
    <tr>
      <td><i class="label label-success" style="margin-right: 6px">&nbsp;</i><%= _("Valid") %></td>
      <td style="text-align:right;"><%= valid_consumer_count %></td>
    </tr>
    <tr>
      <td><h4><%= _("Total Content Hosts") %></h4></td>
      <td style="text-align:right;"><%= total_count %></td>
    </tr>
  </tbody>
</table>

Version data entries

10 entries across 10 versions & 1 rubygems

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