Commit 743bfc28 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add ssh:// links.

parent 23f52add
...@@ -104,6 +104,9 @@ if ($node->HasSerialConsole()) { ...@@ -104,6 +104,9 @@ if ($node->HasSerialConsole()) {
# SSH to option. # SSH to option.
# #
if ($experiment) { if ($experiment) {
$sshurl = $node->sshurl($uid);
WRITESUBMENUBUTTON("SSH URL", $sshurl);
WRITESUBMENUBUTTON("SSH to node</a> ". WRITESUBMENUBUTTON("SSH to node</a> ".
"<a href='$WIKIDOCURL/ssh_mine'>". "<a href='$WIKIDOCURL/ssh_mine'>".
"(howto)", "nodessh.php3?node_id=$node_id"); "(howto)", "nodessh.php3?node_id=$node_id");
......
<?php <?php
# #
# Copyright (c) 2000-2012 University of Utah and the Flux Group. # Copyright (c) 2000-2013 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -33,6 +33,7 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) { ...@@ -33,6 +33,7 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
global $SCRIPT_NAME; global $SCRIPT_NAME;
global $TBOPSPID; global $TBOPSPID;
global $WIKIDOCURL; global $WIKIDOCURL;
global $login_user;
# #
# If this is an expt in emulab-ops, we also want to see the reserved # If this is an expt in emulab-ops, we also want to see the reserved
...@@ -226,7 +227,8 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) { ...@@ -226,7 +227,8 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
<th class='sorttable_nosort'>Last Log Message</th>\n"; <th class='sorttable_nosort'>Last Log Message</th>\n";
} }
echo " <th class='sorttable_nosort'><a href=\"$WIKIDOCURL/ssh_mine\">SSH</a></th> echo " <th class='sorttable_nosort'>SSH<br>URL</th>
<th class='sorttable_nosort'>SSH<br>mime</th>
<th class='sorttable_nosort'><a href=\"$WIKIDOCURL/kb25\">Console</a></th> <th class='sorttable_nosort'><a href=\"$WIKIDOCURL/kb25\">Console</a></th>
<th class='sorttable_nosort'>Log</th>"; <th class='sorttable_nosort'>Log</th>";
...@@ -327,6 +329,11 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) { ...@@ -327,6 +329,11 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
(<a href='shownodelog.php3?node_id=$node_id'>LOG</a>) (<a href='shownodelog.php3?node_id=$node_id'>LOG</a>)
</td>\n"; </td>\n";
} }
$sshurl = $node->sshurl($login_user->uid());
echo " <td align=center>
<a href='$sshurl'>
<img src=\"ssh.gif\" alt=s></a>
</td>\n";
echo " <td align=center> echo " <td align=center>
<a href='nodessh.php3?node_id=$node_id'> <a href='nodessh.php3?node_id=$node_id'>
......
Supports Markdown
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