diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index c176ea2..4533cf2 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -1,8 +1,9 @@ name: Test package on: - - push - - pull_request + push: + pull_request: + workflow_dispatch: jobs: build: diff --git a/CHANGELOG.md b/CHANGELOG.md index 9389203..d3b4ed0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.18.5](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.5) - 2022-01-21 +- Added portuguese brazil (`pt_BR`) localization by [leandromsd](https://github.com/leandromsd). #149 +- Fixed body scroll reset to top when opening related modal. #150 + ## [0.18.4](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.4) - 2022-01-05 - Added official django 4.0 support. - Added link to admin home page on logo and title. #147 diff --git a/README.md b/README.md index 6d3e269..cf11c39 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,15 @@ [![](https://img.shields.io/pypi/djversions/django-admin-interface?color=0C4B33&logo=django&logoColor=white&label=django)](https://www.djangoproject.com/) [![](https://img.shields.io/pypi/v/django-admin-interface.svg?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/django-admin-interface/) -[![](https://pepy.tech/badge/django-admin-interface)](https://pepy.tech/project/django-admin-interface) +[![](https://pepy.tech/badge/django-admin-interface/month)](https://pepy.tech/project/django-admin-interface) [![](https://img.shields.io/github/stars/fabiocaccamo/django-admin-interface?logo=github)](https://github.com/fabiocaccamo/django-admin-interface/) [![](https://badges.pufler.dev/visits/fabiocaccamo/django-admin-interface?label=visitors&color=blue)](https://badges.pufler.dev) [![](https://img.shields.io/pypi/l/django-admin-interface.svg?color=blue)](https://github.com/fabiocaccamo/django-admin-interface/blob/master/LICENSE.txt) -[![](https://img.shields.io/github/workflow/status/fabiocaccamo/django-admin-interface/Python%20package?label=build&logo=github)](https://github.com/fabiocaccamo/django-admin-interface) +[![](https://img.shields.io/github/workflow/status/fabiocaccamo/django-admin-interface/Test%20package?label=build&logo=github)](https://github.com/fabiocaccamo/django-admin-interface) [![](https://img.shields.io/codecov/c/gh/fabiocaccamo/django-admin-interface?logo=codecov)](https://codecov.io/gh/fabiocaccamo/django-admin-interface) [![](https://img.shields.io/codacy/grade/21cb657283c04e70b56fb935277a1ad1?logo=codacy)](https://www.codacy.com/app/fabiocaccamo/django-admin-interface) [![](https://img.shields.io/codeclimate/maintainability/fabiocaccamo/django-admin-interface?logo=code-climate)](https://codeclimate.com/github/fabiocaccamo/django-admin-interface/) -[![](https://requires.io/github/fabiocaccamo/django-admin-interface/requirements.svg?branch=master)](https://requires.io/github/fabiocaccamo/django-admin-interface/requirements/?branch=master) # django-admin-interface django-admin-interface is a modern **responsive flat admin interface customizable by the admin itself**. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..e6b4772 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,14 @@ +# Security Policy + +## Supported Versions + +Keep this library updated to the latest version. + +| Version | Supported | +| ------- | ------------------ | +| latest | :white_check_mark: | +| oldest | :x: | + +## Reporting a Vulnerability + +Open an issue. diff --git a/admin_interface/locale/pt_BR/LC_MESSAGES/django.mo b/admin_interface/locale/pt_BR/LC_MESSAGES/django.mo index 5759de5..024f9f6 100644 Binary files a/admin_interface/locale/pt_BR/LC_MESSAGES/django.mo and b/admin_interface/locale/pt_BR/LC_MESSAGES/django.mo differ diff --git a/admin_interface/locale/pt_BR/LC_MESSAGES/django.po b/admin_interface/locale/pt_BR/LC_MESSAGES/django.po index c938608..e87d687 100644 --- a/admin_interface/locale/pt_BR/LC_MESSAGES/django.po +++ b/admin_interface/locale/pt_BR/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-25 15:11-0300\n" +"POT-Creation-Date: 2022-01-28 10:01-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -129,7 +129,7 @@ msgstr "(.ico|.png|.gif - 16x16|32x32 px)" #: models.py:124 msgid "favicon" -msgstr "" +msgstr "favicon" #: models.py:133 msgid "" diff --git a/admin_interface/static/admin_interface/related-modal/related-modal.js b/admin_interface/static/admin_interface/related-modal/related-modal.js index 1c2ec84..49c4fd9 100644 --- a/admin_interface/static/admin_interface/related-modal/related-modal.js +++ b/admin_interface/static/admin_interface/related-modal/related-modal.js @@ -108,6 +108,7 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined') // open the popup using magnific popup $.magnificPopup.open({ mainClass: iframeInternalModalClass, + fixedContentPos: false, showCloseBtn: true, closeBtnInside: true, items: { diff --git a/admin_interface/templates/admin_interface/css/admin-interface-fix.css b/admin_interface/templates/admin_interface/css/admin-interface-fix.css index cfc8ae8..643e96d 100644 --- a/admin_interface/templates/admin_interface/css/admin-interface-fix.css +++ b/admin_interface/templates/admin_interface/css/admin-interface-fix.css @@ -26,7 +26,7 @@ min-height: auto; padding: 10px 30px; line-height: 30px; - align-items: flex-start; + align-items: center; justify-content: flex-start; } @@ -35,7 +35,6 @@ } .admin-interface.login #header #branding h1 img.logo { - max-width: 100%; margin-right: 0; } @@ -82,7 +81,7 @@ @media (max-width:1024px) { .admin-interface #header { - align-items: center; + align-items: start; } } @@ -93,12 +92,6 @@ display:inline-block !important; /* override inline display:none; */ } -@media (max-width:400px) { - .admin-interface #branding h1 img.logo { - max-width: 100%; - } -} - .admin-interface #branding h1 span { display: inline-block; } diff --git a/admin_interface/templates/admin_interface/css/admin-interface.css b/admin_interface/templates/admin_interface/css/admin-interface.css index 43e845d..53a350f 100644 --- a/admin_interface/templates/admin_interface/css/admin-interface.css +++ b/admin_interface/templates/admin_interface/css/admin-interface.css @@ -133,7 +133,9 @@ display: inline-block; } -.admin-interface #branding h1 { +.admin-interface #branding h1, +.admin-interface.login #header h1, +.admin-interface.login #header h1 a { color: {{ theme.title_color }}; } @@ -149,9 +151,13 @@ background-image: url("data:image/svg+xml;utf8,"); } -.admin-interface #branding h1 img.logo { +.admin-interface #branding h1 img.logo, +.admin-interface.login #header #branding h1 img.logo { {% if theme.logo_max_width > 0 %} max-width: {{ theme.logo_max_width }}px; + max-width: min({{ theme.logo_max_width }}px, 100%); + {% else %} + max-width: 100%; {% endif %} {% if theme.logo_max_height > 0 %} max-height: {{ theme.logo_max_height }}px; diff --git a/admin_interface/version.py b/admin_interface/version.py index b2caf64..182fb53 100644 --- a/admin_interface/version.py +++ b/admin_interface/version.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = '0.18.4' +__version__ = '0.18.5'