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.

Signed-off-by: Renata Ravanelli <[email protected]>
  • Loading branch information
ravanelli authored and alinefm committed Sep 3, 2020
1 parent 226ce7d commit 9334290
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ The name "Gentoo" and the "g" logo are trademarks of Gentoo Foundation, Inc.
The content, project, site, product or any other type of item with which the
"Gentoo" name is associated is not part of the Gentoo project and is not
directed or managed by Gentoo Foundation, Inc.


Kimchi has a written consent to use SUSE logo as a open source project.
"SUSE" and the SUSE logo are trademarks of SUSE LLC or its subsidiaries or affiliates.
All other trademarks, trade names, or company names referenced herein are used for
identification only and are the property of their respective owners, it should not be
used by commercial means.
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-sles.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 9334290

Please sign in to comment.