Request For Enhancement in the Template section of Kimchi
by WK
In the template section we have the following information
Template Name (ID) OS Version Current CPUs Memory
Cent7-10 centos 7 1 Cores 2048 M
What is missing is the Storage Disk(s) Size(s) that Template is assigned.
We get around that with the extension on the name
so we have Cent7-10, Cent7-25, Cent7-100 for templates with 10G, 25G,
100G disks respectively.
But it would be nice to just see it on the Screen.
Even better would be able to change it on the fly when you 'add/create'
a Guest from a template.
Sincerely,
-bill
7 years, 4 months
[PATCH] [Kimchi 1/1] Remove kimchi.setListVMAuto call function
by Aline Manera
Commit 8611c1ea added listeners to Guests page but forgot to update the
kimchi.guest_edit_main.js file.
Signed-off-by: Aline Manera <aline.manera(a)gmail.com>
---
ui/js/src/kimchi.guest_edit_main.js | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index e9fdc078..5417892f 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -29,10 +29,6 @@ kimchi.guest_edit_main = function() {
clearTimeout(kimchi.vmTimeout);
var bootOrderOptions = [];
- $('#modalWindow').on('hidden.bs.modal', function() {
- kimchi.setListVMAutoTimeout();
- });
-
$('#guest-edit-window a[data-toggle="tab"]').on('show.bs.tab', function(tab) {
tab.target; // newly activated tab
tab.relatedTarget; // previous active tab
--
2.13.5
7 years, 4 months
[Kimchi-devel] [PATCH] [Kimchi 1/1] Use distro icons exposed by Kimchi URIs
by Aline Manera
Kimchi was using distro icons exposed by Wok URIs which does not make
sense as Kimchi packages those icons and should refer to them.
Signed-off-by: Aline Manera <aline.manera(a)gmail.com>
---
ui/css/kimchi.css | 56 +++++++++++++++++++-------------------
ui/css/src/modules/_guests.scss | 14 +++++-----
ui/css/src/modules/_iso-list.scss | 14 +++++-----
ui/css/src/modules/_templates.scss | 28 +++++++++----------
4 files changed, 56 insertions(+), 56 deletions(-)
diff --git a/ui/css/kimchi.css b/ui/css/kimchi.css
index 4c40fcd5..dec3874b 100644
--- a/ui/css/kimchi.css
+++ b/ui/css/kimchi.css
@@ -231,37 +231,37 @@
#template-add-window.modal-content h3.iso-title.centos,
#guest-add-window.modal-content h3.iso-title.centos {
- background-image: url("../../../images/theme-default/icon-centos.png");
+ background-image: url("../images/icon-centos.png");
}
#template-add-window.modal-content h3.iso-title.debian,
#guest-add-window.modal-content h3.iso-title.debian {
- background-image: url("../../../images/theme-default/icon-debian.png");
+ background-image: url("../images/icon-debian.png");
}
#template-add-window.modal-content h3.iso-title.fedora,
#guest-add-window.modal-content h3.iso-title.fedora {
- background-image: url("../../../images/theme-default/icon-fedora.png");
+ background-image: url("../images/icon-fedora.png");
}
#template-add-window.modal-content h3.iso-title.opensuse,
#guest-add-window.modal-content h3.iso-title.opensuse {
- background-image: url("../../../images/theme-default/icon-opensuse.png");
+ background-image: url("../images/icon-opensuse.png");
}
#template-add-window.modal-content h3.iso-title.ubuntu,
#guest-add-window.modal-content h3.iso-title.ubuntu {
- background-image: url("../../../images/theme-default/icon-ubuntu.png");
+ background-image: url("../images/icon-ubuntu.png");
}
#template-add-window.modal-content h3.iso-title.gentoo,
#guest-add-window.modal-content h3.iso-title.gentoo {
- background-image: url("../../../images/theme-default/icon-gentoo.png");
+ background-image: url("../images/icon-gentoo.png");
}
#template-add-window.modal-content h3.iso-title.unknown,
#guest-add-window.modal-content h3.iso-title.unknown {
- background-image: url("../../../images/theme-default/icon-unknown.png");
+ background-image: url("../images/icon-vm.png");
}
/* Create Guest Modal */
@@ -1037,31 +1037,31 @@
}
#guest-content-container .distro-icon.icon-centos {
- background-image: url("../../../images/theme-default/icon-centos.png");
+ background-image: url("../images/icon-centos.png");
}
#guest-content-container .distro-icon.icon-debian {
- background-image: url("../../../images/theme-default/icon-debian.png");
+ background-image: url("../images/icon-debian.png");
}
#guest-content-container .distro-icon.icon-fedora {
- background-image: url("../../../images/theme-default/icon-fedora.png");
+ background-image: url("../images/icon-fedora.png");
}
#guest-content-container .distro-icon.icon-opensuse {
- background-image: url("../../../images/theme-default/icon-opensuse.png");
+ background-image: url("../images/icon-opensuse.png");
}
#guest-content-container .distro-icon.icon-ubuntu {
- background-image: url("../../../images/theme-default/icon-ubuntu.png");
+ background-image: url("../images/icon-ubuntu.png");
}
#guest-content-container .distro-icon.icon-gentoo {
- background-image: url("../../../images/theme-default/icon-gentoo.png");
+ background-image: url("../images/icon-gentoo.png");
}
#guest-content-container .distro-icon.icon-unknown {
- background-image: url("../../../images/theme-default/icon-unknown.png");
+ background-image: url("../images/icon-vm.png");
}
body.wok-gallery {
@@ -2149,31 +2149,31 @@ ul {
}
#templates-root-container .wok-vm-list .distro-icon.icon-centos {
- background-image: url("../../../images/theme-default/icon-centos.png");
+ background-image: url("../images/icon-centos.png");
}
#templates-root-container .wok-vm-list .distro-icon.icon-debian {
- background-image: url("../../../images/theme-default/icon-debian.png");
+ background-image: url("../images/icon-debian.png");
}
#templates-root-container .wok-vm-list .distro-icon.icon-fedora {
- background-image: url("../../../images/theme-default/icon-fedora.png");
+ background-image: url("../images/icon-fedora.png");
}
#templates-root-container .wok-vm-list .distro-icon.icon-opensuse {
- background-image: url("../../../images/theme-default/icon-opensuse.png");
+ background-image: url("../images/icon-opensuse.png");
}
#templates-root-container .wok-vm-list .distro-icon.icon-ubuntu {
- background-image: url("../../../images/theme-default/icon-ubuntu.png");
+ background-image: url("../images/icon-ubuntu.png");
}
#templates-root-container .wok-vm-list .distro-icon.icon-gentoo {
- background-image: url("../../../images/theme-default/icon-gentoo.png");
+ background-image: url("../images/icon-gentoo.png");
}
#templates-root-container .wok-vm-list .distro-icon.icon-unknown {
- background-image: url("../../../images/theme-default/icon-unknown.png");
+ background-image: url("../images/icon-vm.png");
}
#templates-root-container .wok-vm-gallery {
@@ -2280,31 +2280,31 @@ ul {
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-centos {
- background-image: url("../../../images/theme-default/icon-centos.png");
+ background-image: url("../images/icon-centos.png");
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-debian {
- background-image: url("../../../images/theme-default/icon-debian.png");
+ background-image: url("../images/icon-debian.png");
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-fedora {
- background-image: url("../../../images/theme-default/icon-fedora.png");
+ background-image: url("../images/icon-fedora.png");
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-opensuse {
- background-image: url("../../../images/theme-default/icon-opensuse.png");
+ background-image: url("../images/icon-opensuse.png");
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-ubuntu {
- background-image: url("../../../images/theme-default/icon-ubuntu.png");
+ background-image: url("../images/icon-ubuntu.png");
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-gentoo {
- background-image: url("../../../images/theme-default/icon-gentoo.png");
+ background-image: url("../images/icon-gentoo.png");
}
#templates-root-container .wok-vm-gallery .name-distro-icon.icon-unknown {
- background-image: url("../../../images/theme-default/icon-unknown.png");
+ background-image: url("../images/icon-vm.png");
}
#templates-root-container span.template-status {
diff --git a/ui/css/src/modules/_guests.scss b/ui/css/src/modules/_guests.scss
index 37654dd7..efb349f9 100644
--- a/ui/css/src/modules/_guests.scss
+++ b/ui/css/src/modules/_guests.scss
@@ -682,25 +682,25 @@
background-repeat: no-repeat;
background-position: 100% 50%;
&.icon-centos {
- background-image: url('../../#{$wok-icon-path}/icon-centos.png');
+ background-image: url('../images/icon-centos.png');
}
&.icon-debian {
- background-image: url('../../#{$wok-icon-path}/icon-debian.png');
+ background-image: url('../images/icon-debian.png');
}
&.icon-fedora {
- background-image: url('../../#{$wok-icon-path}/icon-fedora.png');
+ background-image: url('../images/icon-fedora.png');
}
&.icon-opensuse {
- background-image: url('../../#{$wok-icon-path}/icon-opensuse.png');
+ background-image: url('../images/icon-opensuse.png');
}
&.icon-ubuntu {
- background-image: url('../../#{$wok-icon-path}/icon-ubuntu.png');
+ background-image: url('../images/icon-ubuntu.png');
}
&.icon-gentoo {
- background-image: url('../../#{$wok-icon-path}/icon-gentoo.png');
+ background-image: url('../images/icon-gentoo.png');
}
&.icon-unknown {
- background-image: url('../../#{$wok-icon-path}/icon-unknown.png');
+ background-image: url('../images/icon-vm.png');
}
}
}
diff --git a/ui/css/src/modules/_iso-list.scss b/ui/css/src/modules/_iso-list.scss
index 22b51a2b..02122403 100644
--- a/ui/css/src/modules/_iso-list.scss
+++ b/ui/css/src/modules/_iso-list.scss
@@ -122,25 +122,25 @@
text-overflow: ellipsis;
white-space: nowrap;
&.centos {
- background-image: url('../../#{$wok-icon-path}/icon-centos.png');
+ background-image: url('../images/icon-centos.png');
}
&.debian {
- background-image: url('../../#{$wok-icon-path}/icon-debian.png');
+ background-image: url('../images/icon-debian.png');
}
&.fedora {
- background-image: url('../../#{$wok-icon-path}/icon-fedora.png');
+ background-image: url('../images/icon-fedora.png');
}
&.opensuse {
- background-image: url('../../#{$wok-icon-path}/icon-opensuse.png');
+ background-image: url('../images/icon-opensuse.png');
}
&.ubuntu {
- background-image: url('../../#{$wok-icon-path}/icon-ubuntu.png');
+ background-image: url('../images/icon-ubuntu.png');
}
&.gentoo {
- background-image: url('../../#{$wok-icon-path}/icon-gentoo.png');
+ background-image: url('../images/icon-gentoo.png');
}
&.unknown {
- background-image: url('../../#{$wok-icon-path}/icon-unknown.png');
+ background-image: url('../images/icon-vm.png');
}
}
}
diff --git a/ui/css/src/modules/_templates.scss b/ui/css/src/modules/_templates.scss
index 49a4f1a0..9f183e4a 100644
--- a/ui/css/src/modules/_templates.scss
+++ b/ui/css/src/modules/_templates.scss
@@ -470,25 +470,25 @@ $kimchi-icon-path: '../images';
background-repeat: no-repeat;
background-position: 8px 50%;
&.icon-centos {
- background-image: url('../../#{$wok-icon-path}/icon-centos.png');
+ background-image: url('../images/icon-centos.png');
}
&.icon-debian {
- background-image: url('../../#{$wok-icon-path}/icon-debian.png');
+ background-image: url('../images/icon-debian.png');
}
&.icon-fedora {
- background-image: url('../../#{$wok-icon-path}/icon-fedora.png');
+ background-image: url('../images/icon-fedora.png');
}
&.icon-opensuse {
- background-image: url('../../#{$wok-icon-path}/icon-opensuse.png');
+ background-image: url('../images/icon-opensuse.png');
}
&.icon-ubuntu {
- background-image: url('../../#{$wok-icon-path}/icon-ubuntu.png');
+ background-image: url('../images/icon-ubuntu.png');
}
&.icon-gentoo {
- background-image: url('../../#{$wok-icon-path}/icon-gentoo.png');
+ background-image: url('../images/icon-gentoo.png');
}
&.icon-unknown {
- background-image: url('../../#{$wok-icon-path}/icon-unknown.png');
+ background-image: url('../images/icon-vm.png');
}
}
}
@@ -585,25 +585,25 @@ $kimchi-icon-path: '../images';
background-repeat: no-repeat;
background-position: 100% 50%;
&.icon-centos {
- background-image: url('../../#{$wok-icon-path}/icon-centos.png');
+ background-image: url('../images/icon-centos.png');
}
&.icon-debian {
- background-image: url('../../#{$wok-icon-path}/icon-debian.png');
+ background-image: url('../images/icon-debian.png');
}
&.icon-fedora {
- background-image: url('../../#{$wok-icon-path}/icon-fedora.png');
+ background-image: url('../images/icon-fedora.png');
}
&.icon-opensuse {
- background-image: url('../../#{$wok-icon-path}/icon-opensuse.png');
+ background-image: url('../images/icon-opensuse.png');
}
&.icon-ubuntu {
- background-image: url('../../#{$wok-icon-path}/icon-ubuntu.png');
+ background-image: url('../images/icon-ubuntu.png');
}
&.icon-gentoo {
- background-image: url('../../#{$wok-icon-path}/icon-gentoo.png');
+ background-image: url('../images/icon-gentoo.png');
}
&.icon-unknown {
- background-image: url('../../#{$wok-icon-path}/icon-unknown.png');
+ background-image: url('../images/icon-vm.png');
}
}
}
--
2.13.5
7 years, 4 months