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
a1053e71
Commit
a1053e71
authored
Jan 26, 2015
by
Leigh B Stoller
Browse files
Get rid of more menu options when experiment is geni.
parent
2de901e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showexp.php3
View file @
a1053e71
<?php
#
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
# Copyright (c) 2000-201
5
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -351,7 +351,7 @@ SUBPAGESTART();
SUBMENUSTART
(
"
$tag
Options"
);
if
(
$expstate
)
{
if
(
$expstate
&&
!
$geniflags
)
{
if
(
$experiment
->
logfile
()
&&
$experiment
->
logfile
()
!=
""
)
{
WRITESUBMENUBUTTON
(
"View Activity Logfile"
,
CreateURL
(
"showlogfile"
,
$experiment
));
...
...
@@ -459,28 +459,28 @@ if ($expstate) {
}
}
WRITESUBMENUBUTTON
(
"Modify Settings"
,
CreateURL
(
"editexp"
,
$experiment
));
WRITESUBMENUDIVIDER
();
if
(
!
$geniflags
)
{
WRITESUBMENUBUTTON
(
"Modify Settings"
,
CreateURL
(
"editexp"
,
$experiment
));
WRITESUBMENUDIVIDER
();
}
if
(
$expstate
==
$TB_EXPTSTATE_ACTIVE
)
{
if
(
!
$geniflags
&&
$expstate
==
$TB_EXPTSTATE_ACTIVE
)
{
if
(
!
$geniflags
)
{
WRITESUBMENUBUTTON
(
"Link Tracing/Monitoring"
,
CreateURL
(
"linkmon_list"
,
$experiment
));
WRITESUBMENUBUTTON
(
"Event Viewer"
,
CreateURL
(
"showevents"
,
$experiment
));
}
#
# Admin and project/experiment leaders get this option.
#
if
(
$experiment
->
AccessCheck
(
$this_user
,
$TB_EXPT_UPDATE
))
{
WRITESUBMENUBUTTON
(
"Update All Nodes"
,
CreateURL
(
"updateaccounts"
,
$experiment
));
#
# Admin and project/experiment leaders get this option.
#
if
(
$experiment
->
AccessCheck
(
$this_user
,
$TB_EXPT_UPDATE
))
{
WRITESUBMENUBUTTON
(
"Update All Nodes"
,
CreateURL
(
"updateaccounts"
,
$experiment
));
}
}
# Reboot option
if
(
$experiment
->
AccessCheck
(
$this_user
,
$TB_EXPT_MODIFY
))
{
WRITESUBMENUBUTTON
(
"Reboot All Nodes"
,
...
...
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