Open-source Surface template with improved functionality
Project description
django-surface-theme
Surface theme is built on top of Django Dashboard Atlantis Dark.
Surface Theme variables
Define custom title in urls.py
:
admin.site.site_title = "Surface Security"
Define side menu navigation items by adding the following variable in settings.py
:
SURFACE_MENU_ITEMS = [
{'label': ('Organisation'), 'icon': 'fas fa-building', 'items':[
{'name': 'auth.user'}
]},
{'label': ('Organisation'), 'app_label': 'auth', 'icon': 'fas fa-building', 'items':[
{'name': 'user', 'label': 'Custom Label'},
{'url': 'https://example.com', 'url_blank': True, 'label': 'Custom URL'}
]},
]
Define home links and items by adding the following variable in settings.py
:
SURFACE_LINKS_ITEMS = [
{'label': ('Examples'), 'items':[
{'url': 'https://example.com', 'url_blank': True, 'name': 'Example.com'}
]}
]
ToDo
testapp
is a demo app of the theme to cover all customizations and test them. TODO visual testing?
Package currently needs serious review:
- TESTS!
- every admin template should be reviewed against its core theme peer
- bower takes care of atlantis SCSS but what is minifying/managing javascript files? min versions are out of sync...
- login, logout, ... should replace
admin
templates, instead of requiring adding paths to urls.py - subclass AuthenticationForm instead of custom form as well - ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-surface-theme-0.0.8.tar.gz
(31.5 MB
view hashes)
Built Distribution
Close
Hashes for django-surface-theme-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3be608e839f8af2f43c83cef5011a47a46beef8fa65a619291539112a44a2a |
|
MD5 | a625dcd5dc0c61180cc2c1c1a5049e5e |
|
BLAKE2b-256 | 99d09f3ea65c29f72561138d2f50ee4c3f8ee3f7f7b97f6e976fe16ca47388df |
Close
Hashes for django_surface_theme-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5753864c1aec7e75a93f63409530f5df6fdf5ba285f30a495bb946254d05bfa |
|
MD5 | 5c1d5ae3b3eb3a7fbc65e3fbd6010923 |
|
BLAKE2b-256 | 8c841e94c9fb09dacc311abcb1b4088aea5632e31fc5cf7211e0bdc8d10cc7d9 |