Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
d30bec0a
Commit
d30bec0a
authored
Sep 19, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use different icons for running servers
parent
19a22b7c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
12 deletions
+35
-12
ext-pve.css
www/css/ext-pve.css
+9
-1
Makefile
www/images/Makefile
+2
-0
network-server-off.png
www/images/network-server-off.png
+0
-0
network-server-on.png
www/images/network-server-on.png
+0
-0
ResourceStore.js
www/manager/data/ResourceStore.js
+1
-1
ResourceTree.js
www/manager/tree/ResourceTree.js
+23
-10
No files found.
www/css/ext-pve.css
View file @
d30bec0a
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
.pve-itype-icon-openvz
,
.pve-itype-icon-openvz
,
.pve-itype-icon-openvz-running
,
.pve-itype-icon-openvz-running
,
.pve-itype-icon-node
,
.pve-itype-icon-node
,
.pve-itype-icon-node-running
,
.pve-itype-icon-storage
,
.pve-itype-icon-storage
,
.pve-itype-icon-itype
.pve-itype-icon-itype
{
{
...
@@ -53,7 +54,14 @@
...
@@ -53,7 +54,14 @@
.x-tree-node-server
,
.x-tree-node-server
,
.x-grid-tree-node-expanded
.x-tree-node-server
.x-grid-tree-node-expanded
.x-tree-node-server
{
{
background-image
:
url(../images/network-server.png)
;
background-image
:
url(../images/network-server-off.png)
;
}
.pve-itype-icon-node-running
,
.x-tree-node-server-running
,
.x-grid-tree-node-expanded
.x-tree-node-server-running
{
background-image
:
url(../images/network-server-on.png)
;
}
}
.pve-itype-icon-storage
,
.pve-itype-icon-storage
,
...
...
www/images/Makefile
View file @
d30bec0a
...
@@ -16,6 +16,8 @@ IMAGES = ${GNOME_IMAGES} \
...
@@ -16,6 +16,8 @@ IMAGES = ${GNOME_IMAGES} \
memory.png
\
memory.png
\
processor.png
\
processor.png
\
proxmox_logo.png
\
proxmox_logo.png
\
network-server-on.png
\
network-server-off.png
\
blank.gif
blank.gif
.PHONY
:
install
.PHONY
:
install
...
...
www/images/network-server-off.png
0 → 100644
View file @
d30bec0a
833 Bytes
www/images/network-server-on.png
0 → 100644
View file @
d30bec0a
845 Bytes
www/manager/data/ResourceStore.js
View file @
d30bec0a
...
@@ -49,7 +49,7 @@ Ext.define('PVE.data.ResourceStore', {
...
@@ -49,7 +49,7 @@ Ext.define('PVE.data.ResourceStore', {
hidden
:
true
,
hidden
:
true
,
convert
:
function
(
value
,
record
)
{
convert
:
function
(
value
,
record
)
{
var
info
=
record
.
data
;
var
info
=
record
.
data
;
if
(
info
.
type
===
'
qemu
'
||
info
.
type
===
'
openvz
'
)
{
if
(
info
.
type
===
'
qemu
'
||
info
.
type
===
'
openvz
'
||
info
.
type
===
'
node
'
)
{
return
(
Ext
.
isNumeric
(
info
.
uptime
)
&&
(
info
.
uptime
>
0
));
return
(
Ext
.
isNumeric
(
info
.
uptime
)
&&
(
info
.
uptime
>
0
));
}
else
{
}
else
{
return
false
;
return
false
;
...
...
www/manager/tree/ResourceTree.js
View file @
d30bec0a
...
@@ -81,8 +81,7 @@ Ext.define('PVE.tree.ResourceTree', {
...
@@ -81,8 +81,7 @@ Ext.define('PVE.tree.ResourceTree', {
}
}
},
},
// private
setIconCls
:
function
(
info
)
{
addChildSorted
:
function
(
node
,
info
)
{
var
me
=
this
;
var
me
=
this
;
var
defaults
=
PVE
.
tree
.
ResourceTree
.
typeDefaults
[
info
.
type
];
var
defaults
=
PVE
.
tree
.
ResourceTree
.
typeDefaults
[
info
.
type
];
...
@@ -93,7 +92,15 @@ Ext.define('PVE.tree.ResourceTree', {
...
@@ -93,7 +92,15 @@ Ext.define('PVE.tree.ResourceTree', {
info
.
iconCls
=
defaults
.
iconCls
;
info
.
iconCls
=
defaults
.
iconCls
;
}
}
}
}
},
// private
addChildSorted
:
function
(
node
,
info
)
{
var
me
=
this
;
me
.
setIconCls
(
info
);
var
defaults
;
if
(
info
.
groupbyid
)
{
if
(
info
.
groupbyid
)
{
info
.
text
=
info
.
groupbyid
;
info
.
text
=
info
.
groupbyid
;
if
(
info
.
type
===
'
type
'
)
{
if
(
info
.
type
===
'
type
'
)
{
...
@@ -242,14 +249,20 @@ Ext.define('PVE.tree.ResourceTree', {
...
@@ -242,14 +249,20 @@ Ext.define('PVE.tree.ResourceTree', {
if
(
!
item
||
changed
)
{
if
(
!
item
||
changed
)
{
//console.log("REM UID: " + key + " ITEM " + olditem.data.id);
//console.log("REM UID: " + key + " ITEM " + olditem.data.id);
if
(
olditem
.
isLeaf
())
{
delete
index
[
key
];
delete
index
[
key
];
var
parentNode
=
olditem
.
parentNode
;
var
parentNode
=
olditem
.
parentNode
;
//var expanded = parentNode.isExpanded();
//if (expanded)
//parentNode.collapse();
parentNode
.
removeChild
(
olditem
,
true
);
parentNode
.
removeChild
(
olditem
,
true
);
//if (expanded)
}
else
{
//parentNode.expand();
if
(
item
&&
changed
)
{
olditem
.
beginEdit
();
//console.log("REM UPDATE UID: " + key + " ITEM " + item.data.running);
var
info
=
olditem
.
data
;
Ext
.
apply
(
info
,
item
.
data
);
me
.
setIconCls
(
info
);
olditem
.
commit
();
}
}
}
}
}
}
}
}
...
...
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