Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
42b91f2b
Commit
42b91f2b
authored
Oct 08, 2014
by
Leigh B Stoller
Browse files
Minor change to test for printing earlier version of image.
parent
684270b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/imageid_defs.php
View file @
42b91f2b
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment