forked from mirrors/bookwyrm
Python formatting
This commit is contained in:
parent
41ea7db8b6
commit
38535f811c
2 changed files with 5 additions and 2 deletions
|
@ -10,7 +10,11 @@ def site_settings(request): # pylint: disable=unused-argument
|
|||
|
||||
site = models.SiteSettings.objects.get()
|
||||
theme = "css/themes/bookwyrm-light.scss"
|
||||
if hasattr(request, "user") and request.user.is_authenticated and request.user.theme:
|
||||
if (
|
||||
hasattr(request, "user")
|
||||
and request.user.is_authenticated
|
||||
and request.user.theme
|
||||
):
|
||||
theme = request.user.theme.path
|
||||
elif site.default_theme:
|
||||
theme = site.default_theme.path
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
@import "../vendor/bulma/sass/utilities/initial-variables.sass";
|
||||
|
||||
|
||||
/* Colors
|
||||
******************************************************************************/
|
||||
|
||||
|
|
Loading…
Reference in a new issue