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.6.tar.gz
(31.5 MB
view hashes)
Built Distribution
Close
Hashes for django-surface-theme-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8308969733c813fe867ac9d30c332ec51d70fc613519d764980fc5ecf321073d |
|
MD5 | c67a89b251ff2e048ad2a9e080384f3f |
|
BLAKE2b-256 | aae0919435a269cfd1d3b0d96c2bc6080c1a87a1677ad25945ce69a3438f23ef |
Close
Hashes for django_surface_theme-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eccbf714ed75c4c06606f0f2f61d12e7620a36d6703e5fed65645ddb9eabfe14 |
|
MD5 | c1146b6683a44a905d54fa1e73db0b76 |
|
BLAKE2b-256 | a20026cd73845d88186876715d17205784679564901fd22b6eae1a937fc3952a |