Project

General

Profile

Download (1.15 KB) Statistics
| Branch: | Tag: | Revision:

foreman_docker / app / views / registries / index.html.erb @ 401c0065

1
<% title _("Registries") %>
2

    
3
<%= title_actions(new_link(_("Create Registry"))) %>
4

    
5
<table class="table table-bordered table-striped table-condensed" data-table="inline">
6
  <thead>
7
    <tr>
8
      <th><%= sort :name, :as => _("Name") %></th>
9
      <th class="hidden-tablet hidden-xs"><%= sort :url, :as => _("URL") %></th>
10
      <th class="hidden-tablet hidden-xs"><%= _("Description") %></th>
11
      <th><%= _('Actions') %></th>
12
    </tr>
13
  </thead>
14
  <tbody>
15
    <% @registries.each do |r| %>
16
      <tr>
17
        <td><%= link_to_if_authorized trunc_with_tooltip(r.name), hash_for_edit_registry_path(:id => r).merge(:auth_object => r, :authorizer => authorizer) %></td>
18
        <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(r.url) %></td>
19
        <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(r.description) %></td>
20
        <td><%= action_buttons(
21
          display_delete_if_authorized hash_for_registry_path(:id => r).
22
          merge(:auth_object => r, :authorizer => authorizer),
23
          :confirm => _("Delete %s?") % r.name) %></td>
24
      </tr>
25
    <% end %>
26
  </tbody>
27
</table>
28

    
29
<%= will_paginate_with_info @registries %>