Project

General

Profile

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

foreman-docker / app / views / registries / index.html.erb @ 9ea40591

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><%= _('Actions') %></th>
15
  </tr>
16
  </thead>
17

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

    
31
<%= will_paginate_with_info @registries %>