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
38524f51
Commit
38524f51
authored
Sep 11, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add icons for snapshots
parent
8304868e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
3 deletions
+32
-3
ext-pve.css
www/css/ext-pve.css
+12
-0
Makefile
www/images/Makefile
+2
-0
now.png
www/images/now.png
+0
-0
snapshot.png
www/images/snapshot.png
+0
-0
SnapshotTree.js
www/manager/qemu/SnapshotTree.js
+18
-3
No files found.
www/css/ext-pve.css
View file @
38524f51
...
@@ -84,6 +84,18 @@
...
@@ -84,6 +84,18 @@
background-image
:
url(../images/drive-harddisk.png)
;
background-image
:
url(../images/drive-harddisk.png)
;
}
}
.x-tree-node-snapshot
,
.x-grid-tree-node-expanded
.x-tree-node-snapshot
{
background-image
:
url(../images/snapshot.png)
;
}
.x-tree-node-now
,
.x-grid-tree-node-expanded
.x-tree-node-now
{
background-image
:
url(../images/now.png)
;
}
.pve-itype-icon-pool
,
.pve-itype-icon-pool
,
.x-tree-node-pool
,
.x-tree-node-pool
,
.x-grid-tree-pool-expanded
.x-tree-node-pool
.x-grid-tree-pool-expanded
.x-tree-node-pool
...
...
www/images/Makefile
View file @
38524f51
...
@@ -19,6 +19,8 @@ GNOME_IMAGES = \
...
@@ -19,6 +19,8 @@ GNOME_IMAGES = \
computer.png
computer.png
IMAGES
=
${
GNOME_IMAGES
}
\
IMAGES
=
${
GNOME_IMAGES
}
\
snapshot.png
\
now.png
\
computer-on.png
\
computer-on.png
\
memory.png
\
memory.png
\
processor.png
\
processor.png
\
...
...
www/images/now.png
0 → 100644
View file @
38524f51
948 Bytes
www/images/snapshot.png
0 → 100644
View file @
38524f51
570 Bytes
www/manager/qemu/SnapshotTree.js
View file @
38524f51
...
@@ -19,6 +19,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
...
@@ -19,6 +19,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
Ext
.
Array
.
each
(
response
.
result
.
data
,
function
(
item
)
{
Ext
.
Array
.
each
(
response
.
result
.
data
,
function
(
item
)
{
item
.
leaf
=
true
;
item
.
leaf
=
true
;
item
.
children
=
[];
item
.
children
=
[];
if
(
item
.
name
===
'
__current
'
)
{
item
.
iconCls
=
'
x-tree-node-now
'
;
}
else
{
item
.
iconCls
=
'
x-tree-node-snapshot
'
;
}
idhash
[
item
.
name
]
=
item
;
idhash
[
item
.
name
]
=
item
;
});
});
...
@@ -118,7 +123,10 @@ Ext.define('PVE.qemu.SnapshotTree', {
...
@@ -118,7 +123,10 @@ Ext.define('PVE.qemu.SnapshotTree', {
animate
:
false
,
animate
:
false
,
selModel
:
sm
,
selModel
:
sm
,
tbar
:
[
me
.
rollbackBtn
,
me
.
deleteBtn
],
tbar
:
[
me
.
rollbackBtn
,
me
.
deleteBtn
],
fields
:
[
'
name
'
,
'
description
'
],
fields
:
[
'
name
'
,
'
description
'
,
{
name
:
'
snaptime
'
,
type
:
'
date
'
,
dateFormat
:
'
timestamp
'
}
],
columns
:
[
columns
:
[
{
{
xtype
:
'
treecolumn
'
,
xtype
:
'
treecolumn
'
,
...
@@ -127,12 +135,19 @@ Ext.define('PVE.qemu.SnapshotTree', {
...
@@ -127,12 +135,19 @@ Ext.define('PVE.qemu.SnapshotTree', {
width
:
200
,
width
:
200
,
renderer
:
function
(
value
,
metaData
,
record
)
{
renderer
:
function
(
value
,
metaData
,
record
)
{
if
(
value
===
'
__current
'
)
{
if
(
value
===
'
__current
'
)
{
return
"
CWD
"
;
return
"
NOW
"
;
}
else
{
}
else
{
return
value
;
return
value
;
}
}
}
}
},
},
{
xtype
:
'
datecolumn
'
,
text
:
gettext
(
'
Date
'
),
dataIndex
:
'
snaptime
'
,
format
:
'
Y-m-d H:i:s
'
,
width
:
120
},
{
{
text
:
gettext
(
'
Description
'
),
text
:
gettext
(
'
Description
'
),
dataIndex
:
'
description
'
,
dataIndex
:
'
description
'
,
...
@@ -148,7 +163,7 @@ Ext.define('PVE.qemu.SnapshotTree', {
...
@@ -148,7 +163,7 @@ Ext.define('PVE.qemu.SnapshotTree', {
]
]
});
});
me
.
callParent
();
me
.
callParent
();
me
.
on
(
'
show
'
,
me
.
reload
);
me
.
on
(
'
show
'
,
me
.
reload
);
}
}
...
...
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