Commit a68657fc authored by Leigh B Stoller's avatar Leigh B Stoller

Add link to the memlane page.

parent 5c1b0d0c
<?php <?php
# #
# Copyright (c) 2000-2016 University of Utah and the Flux Group. # Copyright (c) 2000-2018 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -120,6 +120,7 @@ if (mysql_num_rows($query_result) == 0) { ...@@ -120,6 +120,7 @@ if (mysql_num_rows($query_result) == 0) {
if (1) { if (1) {
while ($row = mysql_fetch_array($query_result)) { while ($row = mysql_fetch_array($query_result)) {
$uuid = $row["uuid"];
$pname = $row["profile_name"]; $pname = $row["profile_name"];
$iname = $row["instance_name"]; $iname = $row["instance_name"];
$pproj = $row["pid"]; $pproj = $row["pid"];
...@@ -150,7 +151,7 @@ if (1) { ...@@ -150,7 +151,7 @@ if (1) {
# Save space with array instead of hash. # Save space with array instead of hash.
$instance = $instance =
array($pname, $pproj, $puuid, $pcount, $vcount, array($pname, $pproj, $puuid, $pcount, $vcount,
$creator, $created, $destroyed, $phours, $iname); $creator, $created, $destroyed, $phours, $iname, $uuid);
$instances[] = $instance; $instances[] = $instance;
} }
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<th>VMs</th> <th>VMs</th>
<th>Created</th> <th>Created</th>
<th>Destroyed</th> <th>Destroyed</th>
<th class='filter-false sorter-false'>View</th>
</tr> </tr>
<tr> <tr>
<th class='filter-false sorter-false'>Totals</th> <th class='filter-false sorter-false'>Totals</th>
...@@ -36,6 +37,7 @@ ...@@ -36,6 +37,7 @@
<th class='filter-false sorter-false' data-math='col-sum'>0</th> <th class='filter-false sorter-false' data-math='col-sum'>0</th>
<th class='filter-false sorter-false' data-math='col-count'>0</th> <th class='filter-false sorter-false' data-math='col-count'>0</th>
<th class='filter-false sorter-false'></th> <th class='filter-false sorter-false'></th>
<th class='filter-false sorter-false'></th>
</tr> </tr>
</thead> </thead>
<tfoot> <tfoot>
...@@ -48,6 +50,7 @@ ...@@ -48,6 +50,7 @@
<th class='filter-false sorter-false' data-math='col-sum'>0</th> <th class='filter-false sorter-false' data-math='col-sum'>0</th>
<th class='filter-false sorter-false' data-math='col-count'>0</th> <th class='filter-false sorter-false' data-math='col-count'>0</th>
<th class='filter-false sorter-false'></th> <th class='filter-false sorter-false'></th>
<th class='filter-false sorter-false'></th>
</tr> </tr>
</tfoot> </tfoot>
<tbody> <tbody>
...@@ -71,6 +74,10 @@ ...@@ -71,6 +74,10 @@
<td><%- instance[4] %></td> <td><%- instance[4] %></td>
<td class='format-date'><%- instance[6] %></td> <td class='format-date'><%- instance[6] %></td>
<td class='format-date'><%- instance[7] %></td> <td class='format-date'><%- instance[7] %></td>
<td>
<a href='memlane.php?uuid=<%- instance[10] %>' target="_blank">
<span class="glyphicon glyphicon-eye-open"></span></a>
</td>
</tr> </tr>
<% }); %> <% }); %>
</tbody> </tbody>
......
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