Alon Bar-Lev has posted comments on this change.

Change subject: userportal, webadmin: branding support.
......................................................................


Patch Set 19: (3 inline comments)

....................................................
File 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/branding/BrandingManager.java
Line 73:      * @return A {@code List} of {@code BrandingTheme}s.
Line 74:      */
Line 75:     public List<BrandingTheme> getBrandingThemes() {
Line 76:         if (themes == null && brandingRootPath.exists() && 
brandingRootPath.isDirectory()
Line 77:                 && brandingRootPath.canRead()) {
It is just like any other configuration. Service restart is required to refresh.

This reduces runtime complexity, allow better performance and reduce the chance 
of running instance failure.
Line 78:             themes = new ArrayList<BrandingTheme>();
Line 79:             List<File> directories = Arrays.asList(
Line 80:                     brandingRootPath.listFiles(new FileFilter() {
Line 81:                         @Override


....................................................
File README.branding
Line 20:     web_admin_css - Css to inject into web admin.
Line 21:     messages - Standard java message bundle.
Line 22:     version - The version of the branding in the package. Only versions
Line 23:       that match the one defined in the engine will be loaded. The 
current
Line 24:       version is 1.
version is required for engine not no load incompatible packages that may exist 
in the search path.

this will reduce the chance of invalid UI when software is updated.
Line 25: 
Line 26: CSS INJECTION
Line 27: 
Line 28: CSS are injected in the reverse order of the branding package order, 
this


Line 151: own directory.
Line 152: 
Line 153: The branding directory is treated as a standard conf.d, in which 
directories
Line 154: are sorted by name, each package is read by order and overrides
Line 155: the previous ones.
It is up to the packager, nothing should be automatic.


--
To view, visit http://gerrit.ovirt.org/13181
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I4a8a426ce7d688d33c5ae2b70632c836843106b2
Gerrit-PatchSet: 19
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <[email protected]>
Gerrit-Reviewer: Alex Lourie <[email protected]>
Gerrit-Reviewer: Alexander Wels <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Einav Cohen <[email protected]>
Gerrit-Reviewer: Eyal Edri <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Moran Goldboim <[email protected]>
Gerrit-Reviewer: Ofer Schreiber <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Vojtech Szocs <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to