Sha256: 254797ea77cb4d4b5e3d821f0f6eccfe04eb1acee761d5a86dfdcfa8be15633c

Contents?: true

Size: 1.22 KB

Versions: 9

Compression:

Stored size: 1.22 KB

Contents

<h4 class="header">
  <%= _("Content View History") %>
</h4>

<% organizations = Organization.current.present? ? [Organization.current] : User.current.allowed_organizations %>
<% histories = Katello::ContentViewHistory.includes(:content_view_version => [:content_view]).includes(:task, :environment).in_organizations(organizations) %>
<% histories = histories.readable.limit(6) %>

<% if histories.empty? %>
  <p class="ca"><%= _("No content view history events found.") %></p>
<% else %>
  <table class="table table-striped ellipsis table-bordered">
    <thead>
      <tr>
        <th>Content View</th>
        <th>Task</th>
        <th>Status</th>
      </tr>
    </thead>
    <tbody>
      <% histories.each do |history| %>
        <tr>
          <td>
            <a href="/content_views/<%= history.content_view_version.content_view.id %>/versions/<%= history.content_view_version.id %>">
              <%= history.content_view_version.content_view.name %> <%= history.content_view_version.version %>
            </a>
          </td>
          <td><%= history.humanized_action %></td>
          <td><%= history.humanized_status %> on <%= history.updated_at.to_s(:short) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

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