Skip to content

Commit

Permalink
Fixes #36135 - Correct host links in dashboard
Browse files Browse the repository at this point in the history
The links always pointed at the old host details page, ignoring the
setting controlling whether new or old host details should be the
default.
  • Loading branch information
adamruzicka authored and Ron-Lavi committed Mar 1, 2023
1 parent eb06bd0 commit fc939f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<tbody>
<% hosts.each do |host| %>
<tr>
<td class="ellipsis"><%= host_build_status_icon(host) %> <%= link_to host.name, host_path(host) %></td>
<td class="ellipsis"><%= host_build_status_icon(host) %> <%= link_to host.name, current_host_details_path(host) %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= host.owner %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= build_duration(host) %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= date_time_relative(host.token&.expires)%></td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/dashboard/_new_hosts_widget_host_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<tbody>
<% hosts.each do |host| %>
<tr>
<td class="ellipsis"><%= link_to host.name, host_path(host) %></td>
<td class="ellipsis"><%= link_to host.name, current_host_details_path(host) %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= safe_join([icon(host.operatingsystem, :size => '16x16'), host.operatingsystem.to_label]) if host.operatingsystem.present? %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= host.owner %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= date_time_relative(host.created_at) %></td>
Expand Down

0 comments on commit fc939f0

Please sign in to comment.