Skip to content
GitLab
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
530230a6
Commit
530230a6
authored
Oct 28, 2014
by
Leigh B Stoller
Browse files
Minor tweak to printing out the derived from image.
parent
4fb2fb71
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/imageid_defs.php
View file @
530230a6
...
...
@@ -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
())
||
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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