Skip to content

Commit

Permalink
Issue #1134 - Templates does not show RHEL and SLES icons when creati…
Browse files Browse the repository at this point in the history
…ng guests from those distros.

  - Add SLES icon

  The written consent to use SUSE logo was approved by [email protected] in February 5, 2020
  According to Ciaran only this approval email is enough. We don't need to add this in our license.
  • Loading branch information
ravanelli committed Mar 23, 2020
1 parent f3fbc1e commit 5cbadaa
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ui/css/kimchi.css
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@
background-image: url("../images/icon-opensuse.png");
}

#template-add-window.modal-content h3.iso-title.sles,
#guest-add-window.modal-content h3.iso-title.sles {
background-image: url("../images/icon-sles.png");
}

#template-add-window.modal-content h3.iso-title.ubuntu,
#guest-add-window.modal-content h3.iso-title.ubuntu {
background-image: url("../images/icon-ubuntu.png");
Expand Down Expand Up @@ -1047,6 +1052,10 @@
background-image: url("../images/icon-opensuse.png");
}

#guest-content-container .distro-icon.icon-sles {
background-image: url("../images/icon-sles.png");
}

#guest-content-container .distro-icon.icon-ubuntu {
background-image: url("../images/icon-ubuntu.png");
}
Expand Down Expand Up @@ -2159,6 +2168,10 @@ ul {
background-image: url("../images/icon-opensuse.png");
}

#templates-root-container .wok-vm-list .distro-icon.icon-sles {
background-image: url("../images/icon-sles.png");
}

#templates-root-container .wok-vm-list .distro-icon.icon-ubuntu {
background-image: url("../images/icon-ubuntu.png");
}
Expand Down Expand Up @@ -2290,6 +2303,10 @@ ul {
background-image: url("../images/icon-opensuse.png");
}

#templates-root-container .wok-vm-gallery .name-distro-icon.icon-sles {
background-image: url("../images/icon-sles.png");
}

#templates-root-container .wok-vm-gallery .name-distro-icon.icon-ubuntu {
background-image: url("../images/icon-ubuntu.png");
}
Expand Down
3 changes: 3 additions & 0 deletions ui/css/src/modules/_guests.scss
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,9 @@
&.icon-opensuse {
background-image: url('../images/icon-opensuse.png');
}
&.icon-sles {
background-image: url('../images/icon-sles.png');
}
&.icon-ubuntu {
background-image: url('../images/icon-ubuntu.png');
}
Expand Down
3 changes: 3 additions & 0 deletions ui/css/src/modules/_iso-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
&.opensuse {
background-image: url('../images/icon-opensuse.png');
}
&.suse {
background-image: url('../images/icon-suse.png');
}
&.ubuntu {
background-image: url('../images/icon-ubuntu.png');
}
Expand Down
6 changes: 6 additions & 0 deletions ui/css/src/modules/_templates.scss
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ $kimchi-icon-path: '../images';
&.icon-opensuse {
background-image: url('../images/icon-opensuse.png');
}
&.icon-sles {
background-image: url('../images/icon-sles.png');
}
&.icon-ubuntu {
background-image: url('../images/icon-ubuntu.png');
}
Expand Down Expand Up @@ -596,6 +599,9 @@ $kimchi-icon-path: '../images';
&.icon-opensuse {
background-image: url('../images/icon-opensuse.png');
}
&.icon-sles {
background-image: url('../images/icon-sles.png');
}
&.icon-ubuntu {
background-image: url('../images/icon-ubuntu.png');
}
Expand Down
Binary file added ui/images/icon-sles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions ui/js/src/kimchi.guest_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) {
osType.addClass('icon-opensuse');
osType.attr('val', 'openSUSE');
osType.html('openSUSE');
} else if (vmObject.icon == 'plugins/kimchi/images/icon-sles.png') {
osType.addClass('icon-sles');
osType.attr('val', 'Suse');
osType.html('Suse');
} else if (vmObject.icon == 'plugins/kimchi/images/icon-gentoo.png') {
osType.addClass('icon-gentoo');
osType.attr('val', 'Gentoo');
Expand Down Expand Up @@ -502,6 +506,8 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu) {
osName.addClass('icon-centos');
} else if (vmObject.icon == 'plugins/kimchi/images/icon-opensuse.png') {
osName.addClass('icon-opensuse');
} else if (vmObject.icon == 'plugins/kimchi/images/icon-sles.png') {
osName.addClass('icon-sles');
} else if (vmObject.icon == 'plugins/kimchi/images/icon-gentoo.png') {
osName.addClass('icon-gentoo');
} else if (vmObject.icon == 'plugins/kimchi/images/icon-debian.png') {
Expand Down

0 comments on commit 5cbadaa

Please sign in to comment.