Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
11df2e55
Commit
11df2e55
authored
Nov 07, 2014
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to admin menu (datasets).
parent
8c306943
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
www/dbdefs.php3.in
www/dbdefs.php3.in
+15
-0
www/menu.php3
www/menu.php3
+4
-1
No files found.
www/dbdefs.php3.in
View file @
11df2e55
...
...
@@ -742,6 +742,21 @@ class Logfile
function
gid_idx
()
{
return
$this
->
field
(
"gid_idx"
);
}
}
#
# Do we have a storage pool?
#
function
HaveStoragePool
()
{
global
$TBOPSPID
;
$experiment
=
Experiment
::
LookupByPidEid
(
$TBOPSPID
,
"storage-pool"
);
if
(
$experiment
)
{
return
$experiment
->
PCCount
();
}
return
0
;
}
#
#
# DB Interface.
#
...
...
www/menu.php3
View file @
11df2e55
...
...
@@ -614,6 +614,9 @@ function WRITEADMINMENU() {
global
$PROTOGENI
;
global
$login_status
;
# Do we have a storage pool? The we support datasets.
$havestoragepool
=
HaveStoragePool
();
# Optional ADMIN menu.
if
(
$login_status
&
CHECKLOGIN_LOGGEDIN
&&
ISADMIN
())
{
NavMenuSection
(
"administration"
,
"Administration"
);
...
...
@@ -643,7 +646,7 @@ function WRITEADMINMENU() {
NavMenuButton
(
"Show Shared Node Pool"
,
"
$TBBASE
/showpool.php"
);
if
(
$
TBMAINSITE
)
{
if
(
$
havestoragepool
)
{
NavMenuButton
(
"Local Datasets"
,
"
$TBBASE
/list-datasets.php?all=1"
);
NavMenuButton
(
"Remote Datasets"
,
...
...
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