Project

General

Profile

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

foreman_docker / app / views / registries / index.html.erb @ 64f6a1f2

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

    
3
<% if authorized? %>
4
    <% title_actions button_group(link_to_if_authorized _("New Registry"), hash_for_new_registry_path,
5
                                                        :class => 'btn-success' ) %>
6
<% end %>
7

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

    
18
  <% @registries.each do |r| %>
19
      <tr>
20
        <td><%= link_to_if_authorized trunc(r.name), hash_for_edit_registry_path(:id => r).merge(:auth_object => r, :authorizer => authorizer) %></td>
21
        <td class="hidden-tablet hidden-xs text-center"><%= trunc(r.url) %></td>
22
        <td class="hidden-tablet hidden-xs text-center"><%= trunc(r.description) %></td>
23
        <td><%= display_delete_if_authorized hash_for_registry_path(:id => r).merge(:auth_object => r, :authorizer => authorizer), :confirm => _("Delete %s?") % r.name %></td>
24
      </tr>
25
  <% end %>
26
</table>
27

    
28
<%= will_paginate_with_info @registries %>