Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fb4cfdb772 | |||
| 8535232598 | |||
| abbb666eae | |||
| d48fc882f1 | |||
| f968bd9ffa | |||
| c0592276de |
@@ -8,12 +8,15 @@
|
|||||||
# django-admin-interface
|
# django-admin-interface
|
||||||
django-admin-interface is a modern **responsive flat admin interface customizable by the admin itself**.
|
django-admin-interface is a modern **responsive flat admin interface customizable by the admin itself**.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- Beautiful default **django-theme**
|
- Beautiful default **django-theme**
|
||||||
- Themes management and customization *(you can **customize admin title, logo and colors**)*
|
- Themes management and customization *(you can **customize admin title, logo and colors**)*
|
||||||
- Responsive
|
- Responsive
|
||||||
- List filter dropdown *(optional)*
|
- List filter dropdown *(optional)*
|
||||||
- `NEW` **Related modal** *(instead of the old popup window, optional)*
|
- `NEW` **Related modal** *(instead of the old popup window, optional)*
|
||||||
|
- `NEW` **Enviroment label** *(development, testing, staging, production)*
|
||||||
- Style optimizations for: `django-ckeditor`, `django-modeltranslation`, `sorl-thumbnail`
|
- Style optimizations for: `django-ckeditor`, `django-modeltranslation`, `sorl-thumbnail`
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ django-admin-interface
|
|||||||
django-admin-interface is a modern **responsive flat admin interface
|
django-admin-interface is a modern **responsive flat admin interface
|
||||||
customizable by the admin itself**.
|
customizable by the admin itself**.
|
||||||
|
|
||||||
|
|django-admin-interface_preview|
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
Features
|
Features
|
||||||
--------
|
--------
|
||||||
|
|
||||||
@@ -14,6 +17,7 @@ Features
|
|||||||
- Responsive
|
- Responsive
|
||||||
- List filter dropdown *(optional)*
|
- List filter dropdown *(optional)*
|
||||||
- ``NEW`` **Related modal** (instead of the old popup window, optional)
|
- ``NEW`` **Related modal** (instead of the old popup window, optional)
|
||||||
|
- ``NEW`` **Enviroment label** (development, testing, staging, production)
|
||||||
- Style optimizations for: ``django-ckeditor``, ``django-modeltranslation``, ``sorl-thumbnail``
|
- Style optimizations for: ``django-ckeditor``, ``django-modeltranslation``, ``sorl-thumbnail``
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
@@ -133,6 +137,8 @@ Released under **MIT License**.
|
|||||||
|
|
||||||
.. |License| image:: https://img.shields.io/pypi/l/django-admin-interface.svg
|
.. |License| image:: https://img.shields.io/pypi/l/django-admin-interface.svg
|
||||||
|
|
||||||
|
.. |django-admin-interface_preview| image:: https://user-images.githubusercontent.com/1035294/35631521-64b0cab8-06a4-11e8-8f57-c04fdfbb7e8b.gif
|
||||||
|
|
||||||
.. |django-admin-interface_login| image:: https://cloud.githubusercontent.com/assets/1035294/11240233/55c8d4ba-8df1-11e5-9568-00fdc987ede8.gif
|
.. |django-admin-interface_login| image:: https://cloud.githubusercontent.com/assets/1035294/11240233/55c8d4ba-8df1-11e5-9568-00fdc987ede8.gif
|
||||||
|
|
||||||
.. |django-admin-interface_dashboard| image:: https://cloud.githubusercontent.com/assets/1035294/11240239/627c0362-8df1-11e5-81fa-216366a5d8da.gif
|
.. |django-admin-interface_dashboard| image:: https://cloud.githubusercontent.com/assets/1035294/11240239/627c0362-8df1-11e5-81fa-216366a5d8da.gif
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
"fields": {
|
"fields": {
|
||||||
"name": "USWDS",
|
"name": "USWDS",
|
||||||
"active": true,
|
"active": true,
|
||||||
"title": "Site administration",
|
"title": "Django administration",
|
||||||
"title_color": "#FFFFFF",
|
"title_color": "#FFFFFF",
|
||||||
"title_visible": true,
|
"title_visible": false,
|
||||||
"logo": "",
|
"logo": "",
|
||||||
"logo_color": "#FFFFFF",
|
"logo_color": "#FFFFFF",
|
||||||
"logo_visible": false,
|
"logo_visible": true,
|
||||||
"css_header_background_color": "#112E51",
|
"css_header_background_color": "#112E51",
|
||||||
"css_header_text_color": "#FFFFFF",
|
"css_header_text_color": "#FFFFFF",
|
||||||
"css_header_link_color": "#FFFFFF",
|
"css_header_link_color": "#FFFFFF",
|
||||||
|
|||||||
@@ -1,21 +1,20 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from django import template
|
from django import template, VERSION
|
||||||
|
|
||||||
from admin_interface.models import Theme
|
from admin_interface.models import Theme
|
||||||
from admin_interface.version import __version__
|
from admin_interface.version import __version__
|
||||||
|
|
||||||
register = template.Library()
|
register = template.Library()
|
||||||
|
|
||||||
try:
|
if VERSION < (1, 9):
|
||||||
assignment_tag = register.assignment_tag
|
simple_tag = register.assignment_tag
|
||||||
except AttributeError:
|
else:
|
||||||
assignment_tag = register.simple_tag
|
simple_tag = register.simple_tag
|
||||||
|
|
||||||
|
|
||||||
@assignment_tag(takes_context=True)
|
@simple_tag(takes_context=True)
|
||||||
def get_admin_interface_theme(context):
|
def get_admin_interface_theme(context):
|
||||||
|
|
||||||
theme = None
|
theme = None
|
||||||
request = context.get('request', None)
|
request = context.get('request', None)
|
||||||
|
|
||||||
@@ -31,6 +30,6 @@ def get_admin_interface_theme(context):
|
|||||||
return theme
|
return theme
|
||||||
|
|
||||||
|
|
||||||
@assignment_tag(takes_context=False)
|
@simple_tag(takes_context=False)
|
||||||
def get_admin_interface_version():
|
def get_admin_interface_version():
|
||||||
return __version__
|
return __version__
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__version__ = '0.6.0'
|
__version__ = '0.6.1'
|
||||||
|
|||||||
Reference in New Issue
Block a user