Changelog¶
1.4.0 (Sep-17-2020)¶
- Updated documentation. Added changelog page.
- Updated example project
example_project - Added optional Django Admin custom AdminLTE2 theme (add
adminlte2_admintoINSTALLED_APPS) - Pages
- Login
- Updated login form template texts from
LogintoLog In - Added template block
{% block message_template %}to accommodate Djangomessages - Added new login form-specific template blocks
{% block login_custom_messages %},{% block login_form_non_field_errors %},{% block login_form_fields %},{% block login_form_buttons %},{% block login_form_action %},{% block login_form_id %}, and{% block login_form_method %}
- Updated login form template texts from
- Register
- Fixed HTML element
<p class="login-box-msg">to<p class="register-box-msg"> - Updated register form template submit button text from
SubmittoRegister - Added template block
{% block message_template %}to accommodate Djangomessages - Added new register form-specific template blocks
{% block register_custom_messages %},{% block register_form_non_field_errors %},{% block register_form_fields %},{% block register_form_buttons %},{% block register_form_action %},{% block register_form_id %}, and{% block register_form_method %}
- Fixed HTML element
- Template tags
- Added new template tag
{% add_attr %}that adds attribute name values to Django template form fields
- Added new template tag
1.3.2 (May-27-2020)¶
- Fixed template tag
{% gravatar_url %}to add the GravatarfURL parameter only ifforce_defaultisTrue - Updated template tag
{% add_active %}to support raw URL string
1.3.1 (May-16-2020)¶
- Updated
adminlte2/fix/header_dropdown_link_color.cssto support mobile view and top navigation left header items - Updated example project
example_project
1.3.0 (May-15-2020)¶
- Updated example project
example_project - Deployed a live version of the example project at https://djangoadminlte2templates.pythonanywhere.com
- Layouts
- New component layout template
adminlte2/components/footer_top_navigation.htmlfor top navigation footer
- New component layout template
- Static files
- Updated
jQueryversion from3.4.1to3.5.1 - Added
DataTables 1.10.21andSelect2 4.0.13 - Added custom CSS
fix/header_dropdown_link_color.cssto fix header dropdown link colors
- Updated
- Settings
- Added new settings
ADMINLTE_HTML_LANG_BIDIto manage<html>dirattribute value for handling bidirectional text - Added new settings
ADMINLTE_FOOTER_VERSIONto manage the footer version text - Added new settings
ADMINLTE_STATIC_ENABLE_DATATABLES,ADMINLTE_STATIC_ENABLE_FONTAWESOME,ADMINLTE_STATIC_ENABLE_SELECT2to manage the enabling of these optional static files - Added new settings
ADMINLTE_CDN_DATATABLES_CSS_CORE,ADMINLTE_CDN_DATATABLES_JS_COREto manage DataTables’ CDN links - Added new settings
ADMINLTE_CDN_SELECT2_CSS_CORE,ADMINLTE_CDN_SELECT2_JS_COREto manage Select2’s CDN links
- Added new settings
- Template tags
- Fixed ‘sites’ framework support for {% page_title %} template tag
- Updated {% gravatar_url %} template tag:
{% gravatar_url %}now returns aTemplateSyntaxErrorexception if any of thesize,default, andratingparameters is not of valid value- Returned URL string is now enclosed in
mark_safe(), disabling string auto escape
- Updated {% paginator %} template tag:
adjacent_pagesparameter is now strictly applied to the left and right side of the current page link{% paginator %}now returns aTemplateSyntaxErrorexception if thealignparameter is not of valid value.- Added new template block
{% paginator_id %}for the paginator <ul> elementidattribute, defaults to"pagination" - Paginator
<ul>element is now enclosed in a<nav>tag instead of<div>
- Template blocks
- Added new block
extra_headin base template for adding HTML tags in<head> - Added new block
html_lang_bidiin base template for managing<html>dirattribute - Added new block
paginator_idinextras/paginator.htmlfor managing the paginator elementidattribute - Added new block
stylesheets_fixin base template for custom CSS fixes
- Added new block
- Build
- Added unit tests for custom template tags and filters, context processors, and template files
- Added ESLint configuration file
- Added StyleLint configuration file
- Added coverage.py configuration file
- Added tox configuration file
- Added Codecov integration for code coverage
- Added CodeFactor.io integration for code quality
- Added Travis CI integration for continuous integration
1.2.0 (Apr-19-2020)¶
- Updated
{% block login_logo_href %}and{% block register_logo_href %}default value to/ - Updated example Django project
example_project - Added new
Shortcutslayout template``no_breadcrumbs_footer/*`` that removes footer component and breadcrumb navigation - Added new template tag
{% page_title %}that generates text for HTML<title>
1.1.0 (Apr-13-2020)¶
- Fixed code to support Python 2.7 and <=Django 1.11
- Updated
adminlte2/layouts/login.htmlto work out-of-the-box with LoginView - Updated
adminlte2/layouts/register.htmlto work out-of-the-box with UserCreationForm - Updated setting
ADMINLTE_HTML_LANGto base its default value from Django settingLANGUAGE_CODE - Added new template filter
add_classthat adds class name values to Django template form fields - Added new template tag
{% gravatar_url %}that generates a Gravatar image URL based on current user details - Added new template tag
{% paginator %}that generates an HTML code block forListViewpagination - Added new settings
ADMINLTE_GRAVATAR_SIZE,ADMINLTE_GRAVATAR_DEFAULT,ADMINLTE_GRAVATAR_FORCE_DEFAULT,ADMINLTE_GRAVATAR_RATING