Project

General

Profile

Revision 9ea40591

Added by Daniel Lobato Garcia over 6 years ago

Fixes #14181 - Validate registry URL and attempt login

In order to avoid users trying to create containers in an external
registry that doesn't exist, we should provide some preventative
measures.

View differences:

app/views/registries/index.html.erb
11 11
    <th class="text-center"><%= sort :name, :as => _("Name") %></th>
12 12
    <th class="hidden-tablet hidden-xs text-center"><%= sort :url, :as => _("Url") %></th>
13 13
    <th class="hidden-tablet hidden-xs text-center"><%= _("Description") %></th>
14
    <th></th>
14
    <th><%= _('Actions') %></th>
15 15
  </tr>
16 16
  </thead>
17 17

  
......
20 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 21
        <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(r.url) %></td>
22 22
        <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(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>
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>
24 27
      </tr>
25 28
  <% end %>
26 29
</table>

Also available in: Unified diff