Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
mkdir /opt/abiquo/quick_ui_backup
tar cvfz /opt/abiquo/quick_ui_backup/ui_`date +%Y%m%d`.tar.gz /var/www/html/ui/

Assign branding privileges

If the users managing enterprises are not cloud administrators, assign branding privileges in Abiquo.

In Users View, check that the users have the "Manage enterprises" and "Modify enterprise theme" privileges. See Manage Roles


Upload themes and logos to the Abiquo UI

...

  1. Log in to a shell on the Abiquo server as a user with the appropriate permissions (e.g. root or sudo user)
  2. Edit the client-config-custom.json file to add new enterprise themes

    Code Block
    cd /var/www/html/ui/config
    vi client-config-custom.json


  3. Edit the file and add the base theme and the custom themes as an element within the brackets { and }. 

    Code Block
     "client.themes": [
     	"abicloudDefault",
     	"my_custom_theme"
     ]


    Note

    You must add abicloudDefault or the user interface will not load properly. Check your JSON file format with a JSON checker to ensure that the UI will load properly


  4. Restart the Apache daemon to load files into the cache

    Code Block
    service httpd restart

Activate New Themes

To activate new themes, when you create or edit an enterprise, do these steps.

  1. To change the Enterprise logo in the top left-hand corner, enter the relative path from the ui folder to the enterprise logo file, e.g. theme/blue_theme/img/abiquo_gray.png 
  2. To change the Default theme, select a theme. Only themes configured in the client-config-custom.json file are shown.

    Tip
    If you didn't
    restart
    the Apache daemon when you copied the logo file to the server, restart it now to ensure the new logo is visible

    Image Removed

Users clear browser cache to display new themes

Note
titleImportant

This is an essential step for the correct display of the new theme

All users should clear the browser cache on their machines before logging in to Abiquo again.

...