6.3.1 seahub_settings.py using "BRANDING_CSS = " but ignored


#1

In seahub_settings.py I have have

BRANDING_CSS = ‘custom/custom.css’

but its not using my CCS setting. I do see that the Admin panel has an option for custom branding and I tried to but the contents of the custom/custom.css file in there but it really messed up the Admin panel

Does 6.3.1 ignore BRANDING_CSS in the Seahub_settings.py ?

How do I use my custom settings?


#2

Looks like 6.3.2 will fix it

This is a maintenance release with the following fixes:

[fix] Fix error when public wiki be viewed by anonymous users
Remove department field in users’ profile page
[fix] Print warning instead of abort when there are errors in database table upgrade
[fix] Send notification to the upload link creator after there are files uploaded
[fix] Fix customize css via “custom/custom.css”
[API] return the last modifier in file detail API
[fix] Fix ZIP download can’t work in some languages

#3

Hi,

CSS is still broken on Seafile CE 6.3.2 but at least BRANDING_CSS = ‘custom/custom.css’ is not ignored anymore.
For a quick fix on settings menu in Admin panel you can comment out side-nav properties as showed bellow.

On line 640 and 641 comment out position: and top: properties

/* Hide for mobile, show later */
@media (min-width: 768px) {
    .side-nav {
       /* position:fixed;
          top:52px; */

BR
Babiloni


#4

OK good to know

I just tried to go from 6.3.1 to 6.3.2 so I just ran upgrade/minor-upgrage.sh can’t access seafile from browser

cloud@cloud:~/Seafile/seafile-server-6.3.2/upgrade$ ./minor-upgrade.sh


This script would do the minor upgrade for you.
Press [ENTER] to contiune


migrating avatars …

DONE

updating seafile-server-latest symbolic link to /home/cloud/Seafile/seafile-server-6.3.2 …

DONE

cloud@cloud:~/Seafile/seafile-server-6.3.2/upgrade$ /home/cloud/Seafile/seafile-server-latest/seafile.sh start

[07/11/18 11:32:52] …/common/session.c(132): using config file /home/cloud/Seafile/conf/ccnet.conf
Starting seafile server, please wait …
Seafile server started

Done.
cloud@cloud:~/Seafile/seafile-server-6.3.2/upgrade$ /home/cloud/Seafile/seafile-server-latest/seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …

Seahub is started

Done.

seahub.log show this

2018-04-11 20:08:24,931 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: ‘/home/cloud/Seafile/seafile-server-6.2.2/seahub/seahub/…/…/…/seahub-data/thumbnail/1024/ca890d4971a888831fc2b322f2248d3e89c437d2’
2018-04-11 20:08:25,357 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: ‘/home/cloud/Seafile/seafile-server-6.2.2/seahub/seahub/…/…/…/seahub-data/thumbnail/1024/9d7c0b7dcfe1d2e1259e774fa7eeaf453d1f2d75’
2018-04-11 20:08:25,418 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: ‘/home/cloud/Seafile/seafile-server-6.2.2/seahub/seahub/…/…/…/seahub-data/thumbnail/1024/302c388262f78671ec5d16eaa6e52ee38b0dcc6d’
2018-04-11 20:08:38,254 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: ‘/home/cloud/Seafile/seafile-server-6.2.2/seahub/seahub/…/…/…/seahub-data/thumbnail/1024/73751b43f69f532af95ab13a8daff2cba970b0a8’
2018-07-10 21:28:13,494 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2018-07-10 21:28:23,921 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2018-07-10 21:28:29,175 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2018-07-10 21:28:35,270 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2018-07-10 21:29:41,856 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2018-07-11 09:51:50,427 [WARNING] django.request:152 get_response Not Found: /libs/js/iframe.js


#5

Never mind a reboot seems to have cleared it

Thanks @babiloni CSS s in effect with the mod to line 640 as you suggested