Skip to content

Commit

Permalink
Merge pull request OSC#1317 from OSC/bugfix/shell-button
Browse files Browse the repository at this point in the history
fix shell dropdown menu to correctly redirect to the shell app
  • Loading branch information
Oglopf authored Aug 4, 2021
2 parents 6e7af82 + e612a2d commit 0c35260
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/dashboard/app/views/files/_shell_dropdown.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
<% if Configuration.login_clusters.count > 0 %>
<button type="button" class="btn btn-sm btn-outline-dark dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
<ul class="dropdown-menu" x-placement="right-start" id="shell-dropdown-items">
<% Configuration.login_clusters.each{ |cluster| %>
<% Configuration.login_clusters.each do |cluster| %>
<%=
# <li>
# <a href="" title="" target="_blank" class="dropdown-item"></a>
# </li>
tag.li(
tag.a(
"#{cluster.metadata.title || cluster.id.to_s.titleize}",
href: OodAppkit::Urls::Shell.new(base_url: root_path).url(host: cluster.login.host, path: @path.to_s),
href: OodAppkit.shell.url(host: cluster.login.host, path: @path.to_s),
title: "#{cluster.metadata.title || cluster.id.to_s.titleize}",
target: '_blank',
class: 'dropdown-item'
)
)
%>
<% } %>
<% end %>
</ul>
<% end %>
</div>

0 comments on commit 0c35260

Please sign in to comment.