Project

General

Profile

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

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

1 ada932ab Dmitri Dolguikh
<% title _("Registries") %>
2
3 2402a763 orrabin
<%= title_actions(new_link(_("New registry"))) %>
4 ada932ab Dmitri Dolguikh
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 b0e98702 Bryan Kearney
    <th class="hidden-tablet hidden-xs text-center"><%= sort :url, :as => _("URL") %></th>
10 ada932ab Dmitri Dolguikh
    <th class="hidden-tablet hidden-xs text-center"><%= _("Description") %></th>
11 9ea40591 Daniel Lobato
    <th><%= _('Actions') %></th>
12 ada932ab Dmitri Dolguikh
  </tr>
13
  </thead>
14
15
  <% @registries.each do |r| %>
16
      <tr>
17 89c59306 Partha Aji
        <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 9ea40591 Daniel Lobato
        <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 ada932ab Dmitri Dolguikh
      </tr>
25
  <% end %>
26
</table>
27
28
<%= will_paginate_with_info @registries %>