Commit 66d41b29 authored by Robert Ricci's avatar Robert Ricci

Tweaks to the list view for the topology

Display a paste-able command for ssh, but the link still goes to the
URL
parent 51a53b05
...@@ -497,11 +497,12 @@ function ($, sup, moment) ...@@ -497,11 +497,12 @@ function ($, sup, moment)
var host = login.attr("hostname"); var host = login.attr("hostname");
var port = login.attr("port"); var port = login.attr("port");
var url = "ssh://" + user + "@" + host + ":" + port +"/"; var url = "ssh://" + user + "@" + host + ":" + port +"/";
href = "<a href='" + url + "'>" + url + "</a>"; var sshcmd = "ssh -p " + port + " " + user + "@" + host;
href = "<a href='" + url + "'><kbd>" + sshcmd + "</kbd></a>";
console.info(url); console.info(url);
var hostport = host + ":" + port; var hostport = host + ":" + port;
ssh = "<button class='btn btn-primary btn-xs' " + ssh = "<button class='btn btn-primary btn-sm' " +
" id='" + "sshbutton_" + node + "' " + " id='" + "sshbutton_" + node + "' " +
" type='button'>" + " type='button'>" +
" <span class='glyphicon glyphicon-log-in'><span>" + " <span class='glyphicon glyphicon-log-in'><span>" +
......
...@@ -342,7 +342,7 @@ echo " <ul id='quicktabs' class='nav nav-tabs'> ...@@ -342,7 +342,7 @@ echo " <ul id='quicktabs' class='nav nav-tabs'>
<tr> <tr>
<th>Node</th> <th>Node</th>
<th>Shell (in-browser)</th> <th>Shell (in-browser)</th>
<th>SSH URL <small>(if you provided your own key)</small> <th>SSH command <small>(if you provided your own key)</small>
</th> </th>
</tr> </tr>
</thead> </thead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment