Sha256: f7b0f5b2166e74f44f97b3b5ae264f5a714293f5aeed70fc14c6f4c3e20691c6

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

<table class="table table-bordered table-striped table-two-pane table-fixed">
  <tr>
    <th class="col-md-4">Title</th>
    <th class="col-md-4">Filename</th>
    <th class="col-md-3">Created</th>
    <th class="col-md-1"></th>
  </tr>
  <% for content in @contents %>
    <tr>
      <td class="ellipsis"><%= content.title %></td>
      <td class="ellipsis"><%= content.original_filename %></td>
      <td>
        <%= _("%s ago") % time_ago_in_words(content.created_at.getlocal) %>
      </td>
      <td>
        <%= action_buttons(
                display_link_if_authorized(_("Edit"), hash_for_edit_scap_content_path(:id => content.id)),
                display_link_if_authorized(_("Download"), hash_for_scap_content_path(:id => content.id)),
                display_delete_if_authorized(hash_for_scap_content_path(:id => content.id),
                                             :confirm => _("Delete compliance policy %s with all the reports?") % content.title)
            ) %>
      </td>
    </tr>
  <% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_openscap-0.6.3 app/views/scap_contents/_list.html.erb
foreman_openscap-0.6.2 app/views/scap_contents/_list.html.erb