I tried to place a file called “bootstrap.css” taken
from http://bootswatch.com/ to the newly created privacyidea/static/custom/css/ folder then specify
PI_CSS =
’/usr/lib/python2.7/dist-packages/privacyidea/static/custom/css/bootstrap.css
then issued
service nginx restart
this didn’t affect the look of PI but I checked source of a web-page:
1) seems that PI ignored the PI_CSS setting because I specified one path
but in html code is another
2) There are two .css files being used - bootstrap.css
and
bootstrap-theme.css
.
Which one should be taken and maybe replaced from http://bootswatch.com/?
Which one suppose to be replaced with the one specified in PI_CSS?
Glad to be of help and that it works out! :-)Am Mittwoch, den 03.02.2016, 06:32 -0800 schrieb Sergey Kolosovski:
Awesome!
Thank you for help! Indeed, I was needed to restart uwsgi service.
On Wednesday, February 3, 2016 at 4:22:16 PM UTC+2, Cornelius Kölbel wrote:
HI Sergey,
the 2nd stylesheet is the theme stylesheet and is set
according to the
settings.
See the template:
https://github.com/privacyidea/privacyidea/blob/master/privacyidea/static/templates/header.html#L21
This is set in the controller:
https://github.com/privacyidea/privacyidea/blob/v2.9/privacyidea/webui/login.py#L46
But your issue arises from the fact, that you do not need to
restart
nginx (as this only works as a proxy) but you probably need to
restart
uwsgi.
Kind regards
Cornelius
In an enterprise environment you should get a SERVICE LEVEL AGREEMENT
which suites your needs for SECURITY, AVAILABILITY and LIABILITY: privacyIDEA Support Level
the 2nd stylesheet is the theme stylesheet and is set according to the
settings.
See the template:
This is set in the controller:
But your issue arises from the fact, that you do not need to restart
nginx (as this only works as a proxy) but you probably need to restart
uwsgi.
Kind regards
CorneliusAm Mittwoch, den 03.02.2016, 05:43 -0800 schrieb Sergey Kolosovski:
Hi Cornelius!
Could you please shed some light on the topic of how to change the
default theme?
I know there’s a
doc 2.5. The Config File — privacyIDEA 3.8 documentation which says that this is pretty simple, just specify a path to your bootstrap theme in PI_CSS and that’s it.
I tried to place a file called “bootstrap.css” taken
from http://bootswatch.com/ to the newly
created privacyidea/static/custom/css/ folder then specify
then issued
service nginx restart
this didn’t affect the look of PI but I checked source of a web-page:
seems that PI ignored the PI_CSS setting because I specified one
path but in html code is another
There are two .css files being used - bootstrap.css
and bootstrap-theme.css. Which one should be taken and maybe replaced
from http://bootswatch.com/? Which one suppose to be replaced with
the one specified in PI_CSS?
In an enterprise environment you should get a SERVICE LEVEL AGREEMENT
which suites your needs for SECURITY, AVAILABILITY and LIABILITY: privacyIDEA Support Level
Good afternoon:
I have a problem when I change the default theme.
I’ve downloaded the Sketchy theme from https://bootswatch.com
I copied it at: /static/custom/css/bootstrap-Sketchy.css
Then I modified the file pi.cfg
/etc/privacyidea/pi.cfg
Adding the following:
PI_CSS = ‘/static/custom/css/bootstrap-Sketchy.css’
I have also tried like this: #PI_CSS = ‘/opt/privacyidea/lib/python2.7/site-packages/privacyidea/static/custom/css/bootstrap-Sketchy.css’
In principle it seems that the theme is loaded and displayed correctly, but links do not work, when you pass over a link or active element, the cursor is not modified and you can not click on it, you can not select anything.