Project

General

Profile

Revision 2402a763

Added by Ori Rabin almost 6 years ago

Refs #14370 - Adding new_link helper to containers and registries

View differences:

app/views/containers/index.html.erb
1 1
<% title _("Containers") %>
2 2

  
3
<%= title_actions(display_link_if_authorized(
4
  _('New container'),
5
  hash_for_new_container_path)) %>
3
<%= title_actions(new_link(_("New container"))) %>
6 4

  
7 5
<ul class="nav nav-tabs" data-tabs="tabs">
8 6
  <% @container_resources.each_with_index do |resource, i| %>
app/views/registries/index.html.erb
1 1
<% title _("Registries") %>
2 2

  
3
<%= title_actions(display_link_if_authorized(
4
  _('New registry'),
5
  hash_for_new_registry_path)) %>
3
<%= title_actions(new_link(_("New registry"))) %>
6 4

  
7 5
<table class="table table-bordered table-striped table-condensed" data-table="inline">
8 6
  </thead>

Also available in: Unified diff