From fc939f027f42f04aaf942db9aab6caeffa2ddc79 Mon Sep 17 00:00:00 2001 From: Adam Ruzicka Date: Wed, 22 Feb 2023 13:38:25 +0100 Subject: [PATCH] Fixes #36135 - Correct host links in dashboard The links always pointed at the old host details page, ignoring the setting controlling whether new or old host details should be the default. --- .../dashboard/_hosts_in_build_mode_widget_host_list.html.erb | 2 +- app/views/dashboard/_new_hosts_widget_host_list.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/dashboard/_hosts_in_build_mode_widget_host_list.html.erb b/app/views/dashboard/_hosts_in_build_mode_widget_host_list.html.erb index 87eb04c22a7..c482f20851b 100644 --- a/app/views/dashboard/_hosts_in_build_mode_widget_host_list.html.erb +++ b/app/views/dashboard/_hosts_in_build_mode_widget_host_list.html.erb @@ -8,7 +8,7 @@ <% hosts.each do |host| %> - <%= host_build_status_icon(host) %> <%= link_to host.name, host_path(host) %> + <%= host_build_status_icon(host) %> <%= link_to host.name, current_host_details_path(host) %> <%= host.owner %> <%= build_duration(host) %> <%= date_time_relative(host.token&.expires)%> diff --git a/app/views/dashboard/_new_hosts_widget_host_list.html.erb b/app/views/dashboard/_new_hosts_widget_host_list.html.erb index 01a46fba1ae..def3da40e60 100644 --- a/app/views/dashboard/_new_hosts_widget_host_list.html.erb +++ b/app/views/dashboard/_new_hosts_widget_host_list.html.erb @@ -9,7 +9,7 @@ <% hosts.each do |host| %> - <%= link_to host.name, host_path(host) %> + <%= link_to host.name, current_host_details_path(host) %> <%= safe_join([icon(host.operatingsystem, :size => '16x16'), host.operatingsystem.to_label]) if host.operatingsystem.present? %> <%= host.owner %> <%= date_time_relative(host.created_at) %>