Skip to content

Commit

Permalink
Fixes #37690 - Add button linking to new hosts index UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz authored and MariaAga committed Jul 29, 2024
1 parent aa8f66f commit c5f72a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/hosts/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<%
register_btn = link_to(_("Register Host"), hash_for_register_hosts_path, :class => "btn btn-default") if authorized_for({contoller: 'hosts', action: 'create'})
new_ui_btn = link_to(_("New UI"), new_hosts_index_page_path, :class => "btn btn-default")
%>

<% title_actions multiple_actions_select, csv_link, register_btn, button_group(new_link(_("Create Host"))) %>
<% title_actions multiple_actions_select, csv_link, register_btn, new_ui_btn, button_group(new_link(_("Create Host"))) %>
<%= alert(:class => 'alert-info hide', :id => 'multiple-alert', :close => false, :header => '',
:text => n_("Single host on this page is selected.",
"All %{per_page} hosts on this page are selected.", per_page(@hosts)).html_safe % {per_page: per_page(@hosts)} + ' ' +
Expand Down

0 comments on commit c5f72a4

Please sign in to comment.