Commit bd0594c7 authored by Leigh Stoller's avatar Leigh Stoller

Add experiment info to the list.

parent b2691c6b
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -59,11 +59,18 @@ foreach ($showtypes as $type) {
foreach ($slicelist as $slice) {
$slice_idx = $slice->idx();
$slice_hrn = $slice->hrn();
$url = CreateURL("showslice", "showtype", $type,
"slice_idx", $slice_idx);
$rows[$slice_idx] =
array($slice_idx => "<a href='$url'>$slice_hrn</a>");
$url = CreateURL("showslice", "showtype", $type,
"slice_idx", $slice_idx);
$href = "<a href='$url'>$slice_hrn</a>";
$experiment = Experiment::LookupByUUID($slice->uuid());
if ($experiment) {
$eid = $experiment->eid();
$expurl = CreateURL("showexp", $experiment);
$href = "$href (<a href='$expurl'>$eid</a>)";
}
$rows[$slice_idx] = array($slice_idx => $href);
}
list ($html, $button) = TableRender($table, $rows);
echo $html;
......
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