Commit 530230a6 authored by Leigh Stoller's avatar Leigh Stoller

Minor tweak to printing out the derived from image.

parent 4fb2fb71
......@@ -833,15 +833,19 @@ class Image
$p_imageid = $this->parent_imageid();
$p_version = $this->parent_version();
$p_image = Image::Lookup($p_imageid, $p_version);
$p_imagename = $p_image->imagename();
$p_url = CreateURL("showimageid", $p_image,
"version", $p_version);
# On an elabinelab we will not have the previous version.
# if it came in at creation time.
if ($p_image) {
$p_imagename = $p_image->imagename();
$p_url = CreateURL("showimageid", $p_image,
"version", $p_version);
echo "<tr>
<td>Derived from: </td>
<td class=left><a href='$p_url'>
${p_imagename}:${p_version}</a></td>
</tr>\n";
echo "<tr>
<td>Derived from: </td>
<td class=left><a href='$p_url'>
${p_imagename}:${p_version}</a></td>
</tr>\n";
}
}
if ($this->version() > 0 &&
(is_null($this->parent_imageid()) ||
......
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