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)
var host = login.attr("hostname");
var port = login.attr("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);
var hostport = host + ":" + port;
ssh = "<button class='btn btn-primary btn-xs' " +
ssh = "<button class='btn btn-primary btn-sm' " +
" id='" + "sshbutton_" + node + "' " +
" type='button'>" +
" <span class='glyphicon glyphicon-log-in'><span>" +
......
......@@ -342,7 +342,7 @@ echo " <ul id='quicktabs' class='nav nav-tabs'>
<tr>
<th>Node</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>
</tr>
</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