Project

General

Profile

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

foreman-docker / app / views / registries / index.html.erb @ 2402a763

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

    
3
<%= title_actions(new_link(_("New registry"))) %>
4

    
5
<table class="table table-bordered table-striped table-condensed" data-table="inline">
6
  </thead>
7
  <tr>
8
    <th class="text-center"><%= sort :name, :as => _("Name") %></th>
9
    <th class="hidden-tablet hidden-xs text-center"><%= sort :url, :as => _("URL") %></th>
10
    <th class="hidden-tablet hidden-xs text-center"><%= _("Description") %></th>
11
    <th><%= _('Actions') %></th>
12
  </tr>
13
  </thead>
14

    
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
</table>
27

    
28
<%= will_paginate_with_info @registries %>