Commit 42b91f2b authored by Leigh Stoller's avatar Leigh Stoller

Minor change to test for printing earlier version of image.

parent 684270b1
......@@ -842,19 +842,21 @@ class Image
<td class=left><a href='$p_url'>
${p_imagename}:${p_version}</a></td>
</tr>\n";
if ($this->parent_imageid() != $this->imageid() &&
$this->version() > 0) {
$p_version = $this->version() - 1;
$p_url = CreateURL("showimageid", $this,
"version", $p_version);
echo "<tr>
<td>Previous Vers: </td>
<td class=left>
<a href='$p_url'>${imagename}:${p_version}</a></td>
</tr>\n";
}
}
if ($this->version() > 0 &&
(is_null($this->parent_imageid()) ||
($this->parent_imageid() &&
$this->parent_imageid() != $this->imageid()))) {
$p_version = $this->version() - 1;
$p_url = CreateURL("showimageid", $this,
"version", $p_version);
echo "<tr>
<td>Previous Vers: </td>
<td class=left>
<a href='$p_url'>${imagename}:${p_version}</a></td>
</tr>\n";
}
# Look for an unreleased version of this image.
$unreleased = $this->LookupUnreleased();
if ($unreleased && $unreleased->version() != $this->version()) {
......
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