Sha256: 39b8d09fa59adddd031dd01b3a73ef90c82c90ba111fcf55b1dc807066db01cc

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 KB

Contents

<h4 class="header">
  <%= _("Content Views") %>
</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-fixed table-striped table-bordered">
    <thead>
      <tr>
        <th><%= _("Content View") %></th>
        <th><%= _("Task") %></th>
        <th><%= _("Status") %></th>
      </tr>
    </thead>
    <tbody>
      <% histories.each do |history| %>
        <tr>
          <td class='ellipsis'>
            <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 class='ellipsis'><%= history.humanized_action %></td>
          <td class='ellipsis'><%= history.humanized_status %> on <%= history.updated_at.to_s(:short) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-3.7.0.rc1 app/views/dashboard/_content_views_widget.html.erb
katello-3.5.2 app/views/dashboard/_content_views_widget.html.erb
katello-3.6.0 app/views/dashboard/_content_views_widget.html.erb
katello-3.6.0.1.rc2 app/views/dashboard/_content_views_widget.html.erb
katello-3.6.0.rc2 app/views/dashboard/_content_views_widget.html.erb
katello-3.6.0.rc1 app/views/dashboard/_content_views_widget.html.erb
katello-3.5.1.1 app/views/dashboard/_content_views_widget.html.erb
katello-3.5.1 app/views/dashboard/_content_views_widget.html.erb
katello-3.5.0.1 app/views/dashboard/_content_views_widget.html.erb
katello-3.5.0 app/views/dashboard/_content_views_widget.html.erb