django-adminlte-ui 1.2.0 发布啦
1.2.0
该版本新增了对站点标题,站点标头,站点LOGO及欢迎标语的自定义,通过models中的options及templatetags实现。并在options表的基础上提供general_option页面进行快速设置,同时只需要在templates页面中加载adminlte_options这个templatetags即可使用options表中的自定义配置。
examples:
# adminlte/general_option.html
{% load adminlte_options %}
# here my option_name is site_title, you can custom yourself.
{% get_adminlte_option 'site_title' as adminlte_site_title %}
{% if adminlte_site_title.valid %}
{{ adminlte_site_title.site_title }}
{% else %}
{{ site_title|default:_('Django site admin') }}
{% endif %}
更新日志
- add models with options;
- add general_option.html to manager general option;
- setup app label to
django_admin_settings
; - register and add general_option into menu;
- add docs.