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

Minor tweak to printing out the derived from image.

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