Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
meocong committed Sep 18, 2023
2 parents a483db2 + b6cd620 commit b3b9835
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 53 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
repos:

- repo: https://github.com/asottile/pyupgrade
rev: v3.9.0
rev: v3.10.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.14.0
rev: 1.14.1
hooks:
- id: django-upgrade
args: ["--target-version", "3.0"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
rev: v0.0.287
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ 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.26.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.26.1) - 2023-09-05
- Fix logout and theme buttons style. #246
- Add Russian translation. (by [@rustzzdevel](https://github.com/rustzzdevel) in #295)
- Update Italian translations.
- Update Spanish translations. (by [@smunoz-ml](https://github.com/smunoz-ml) in #307)
- Prevent multiple `.collapse-toggle` button.
- Bump requirements.
- Bump `pre-commit` hooks.

## [0.26.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.26.0) - 2023-05-11
- Add options for collapsible inlines. #263 (by [@fabiocaccamo](https://github.com/fabiocaccamo) in #282)
- Bump requirements.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![](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/month)](https://pepy.tech/project/django-admin-interface)
[![](https://static.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/stargazers)
[![](https://img.shields.io/pypi/l/django-admin-interface.svg?color=blue)](https://github.com/fabiocaccamo/django-admin-interface/blob/main/LICENSE.txt)

Expand Down
Binary file modified admin_interface/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
65 changes: 33 additions & 32 deletions admin_interface/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
#
# Translators:
# Martin Vuelta <[email protected]>, 2018
# Santiago Muñoz <[email protected]>, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: django-admin-interface\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-10 18:20-0500\n"
"PO-Revision-Date: 2018-12-30 19:13-0500\n"
"Last-Translator: Martin Vuelta <[email protected]>\n"
"PO-Revision-Date: 2023-08-04 11:52-0300\n"
"Last-Translator: Santiago Muñoz <[email protected]>\n"
"Language-Team: Spanish <[email protected]>\n"
"Language: Spanish \n"
"MIME-Version: 1.0\n"
Expand All @@ -25,7 +26,7 @@ msgstr "Ambiente"

#: admin_interface/admin.py
msgid "Language chooser"
msgstr ""
msgstr "Selección de idioma"

#: admin_interface/admin.py
msgid "Logo"
Expand Down Expand Up @@ -61,23 +62,23 @@ msgstr "Botones de borrar"

#: admin_interface/admin.py
msgid "Navigation Bar"
msgstr ""
msgstr "Barra de navegación"

#: admin_interface/admin.py
msgid "Related Modal"
msgstr "Modal para objetos relacionados"

#: admin_interface/admin.py
msgid "Form Controls"
msgstr ""
msgstr "Controles del formulario"

#: admin_interface/admin.py
msgid "List Filter"
msgstr "Lista de filtros"

#: admin_interface/admin.py
msgid "Change Form"
msgstr ""
msgstr "Cambiar Formulario"

#: admin_interface/admin.py
msgid "Inlines"
Expand All @@ -93,11 +94,11 @@ msgstr "Interfaz de administración"

#: admin_interface/models.py
msgid "name"
msgstr "Nombre"
msgstr "nombre"

#: admin_interface/models.py
msgid "active"
msgstr "Activo"
msgstr "activo"

#: admin_interface/models.py admin_interface/templates/admin/base_site.html
msgid "Django administration"
Expand All @@ -113,23 +114,23 @@ msgstr "color"

#: admin_interface/models.py
msgid "visible"
msgstr "Visible"
msgstr "visible"

#: admin_interface/models.py
msgid "Leave blank to use the default Django logo"
msgstr "Dejar en blanco para usaer el logo por defecto de Django"
msgstr "Dejar en blanco para usar el logo por defecto de Django"

#: admin_interface/models.py
msgid "logo"
msgstr "logo"

#: admin_interface/models.py
msgid "max width"
msgstr ""
msgstr "ancho máximo"

#: admin_interface/models.py
msgid "max height"
msgstr ""
msgstr "altura máxima"

#: admin_interface/models.py
msgid "(.ico|.png|.gif - 16x16|32x32 px)"
Expand All @@ -147,31 +148,31 @@ msgstr ""

#: admin_interface/models.py
msgid "visible in header (marker and name)"
msgstr ""
msgstr "visible en el encabezado (marcador y nombre)"

#: admin_interface/models.py
msgid "visible in favicon (marker)"
msgstr ""
msgstr "visible en el favicon (marcador)"

#: admin_interface/models.py
msgid "Default Select"
msgstr ""
msgstr "Selección por defecto"

#: admin_interface/models.py
msgid "Minimal Select"
msgstr ""
msgstr "Selección mínima"

#: admin_interface/models.py
msgid "control"
msgstr ""
msgstr "control"

#: admin_interface/models.py
msgid "code"
msgstr ""
msgstr "código"

#: admin_interface/models.py
msgid "display"
msgstr ""
msgstr "mostrar"

#: admin_interface/models.py
msgid "background color"
Expand Down Expand Up @@ -219,59 +220,59 @@ msgstr "opacidad de fondo"

#: admin_interface/models.py
msgid "close button visible"
msgstr ""
msgstr "mostrar botón de cerrar"

#: admin_interface/models.py
msgid "highlight active"
msgstr ""
msgstr "destacar activo"

#: admin_interface/models.py
msgid "use dropdown"
msgstr "Usar lista desplegable"

#: admin_interface/models.py
msgid "sticky position"
msgstr ""
msgstr "anclar posición"

#: admin_interface/models.py
msgid "quick remove links for active filters at top of sidebar"
msgstr ""
msgstr "remover enlaces para filtros activos en la parte superior de la barra lateral"

#: admin_interface/models.py
msgid "foldable apps"
msgstr ""
msgstr "aplicaciones plegables"

#: admin_interface/models.py
msgid "fieldsets as tabs"
msgstr ""
msgstr "campos como pestañas"

#: admin_interface/models.py
msgid "inlines as tabs"
msgstr ""
msgstr "inlines como pestañas"

#: admin_interface/models.py
msgid "collapsible stacked inlines"
msgstr ""
msgstr "inlines apilados plegables"

#: admin_interface/models.py
msgid "collapsible stacked inlines collapsed"
msgstr ""
msgstr "inlines apilados plegables colapsados"

#: admin_interface/models.py
msgid "collapsible tabular inlines"
msgstr ""
msgstr "inlines tabulares plegables"

#: admin_interface/models.py
msgid "collapsible tabular inlines collapsed"
msgstr ""
msgstr "inlines tabulares plegables colapsados"

#: admin_interface/models.py
msgid "sticky submit"
msgstr ""
msgstr "anclar botón de guardar"

#: admin_interface/models.py
msgid "sticky pagination"
msgstr ""
msgstr "anclar paginación"

#: admin_interface/models.py
msgid "Theme"
Expand Down
Binary file modified admin_interface/locale/it/LC_MESSAGES/django.mo
Binary file not shown.
22 changes: 11 additions & 11 deletions admin_interface/locale/it/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ msgstr "Pulsanti per eliminare"

#: admin_interface/admin.py
msgid "Navigation Bar"
msgstr ""
msgstr "Barra di Navigazione"

#: admin_interface/admin.py
msgid "Related Modal"
msgstr "Modale per gli oggetti correlati"

#: admin_interface/admin.py
msgid "Form Controls"
msgstr ""
msgstr "Controlli dei form"

#: admin_interface/admin.py
msgid "List Filter"
msgstr "Filtro listato"

#: admin_interface/admin.py
msgid "Change Form"
msgstr ""
msgstr "Form di modifica"

#: admin_interface/admin.py
msgid "Inlines"
Expand Down Expand Up @@ -125,11 +125,11 @@ msgstr "logo"

#: admin_interface/models.py
msgid "max width"
msgstr ""
msgstr "larghezza massima"

#: admin_interface/models.py
msgid "max height"
msgstr ""
msgstr "altezza massima"

#: admin_interface/models.py
msgid "(.ico|.png|.gif - 16x16|32x32 px)"
Expand Down Expand Up @@ -237,7 +237,7 @@ msgstr ""

#: admin_interface/models.py
msgid "quick remove links for active filters at top of sidebar"
msgstr ""
msgstr "links di rimozione rapida dei filtri attivi in alto nella sidebar"

#: admin_interface/models.py
msgid "foldable apps"
Expand Down Expand Up @@ -292,26 +292,26 @@ msgstr "Filtro listato"
#. Translators: don't translate this, the django catalog already contains it
#: admin_interface/templates/admin/change_list.html
msgid "Clear all filters"
msgstr ""
msgstr "Cancella tutti i filtri"

#: admin_interface/templates/admin/edit_inline/headerless_stacked.html
#: admin_interface/templates/admin/edit_inline/headerless_tabular.html
msgid "Change"
msgstr ""
msgstr "Modifica"

#: admin_interface/templates/admin/edit_inline/headerless_stacked.html
#: admin_interface/templates/admin/edit_inline/headerless_tabular.html
msgid "View"
msgstr ""
msgstr "Visualizza"

#: admin_interface/templates/admin/edit_inline/headerless_stacked.html
#: admin_interface/templates/admin/edit_inline/headerless_tabular.html
msgid "View on site"
msgstr ""
msgstr "Visualizza sul sito"

#: admin_interface/templates/admin/edit_inline/headerless_tabular.html
msgid "Delete?"
msgstr ""
msgstr "Eliminare?"

#: admin_interface/templates/admin/filter.html
#: admin_interface/templates/admin_interface/dropdown_filter.html
Expand Down
2 changes: 1 addition & 1 deletion admin_interface/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
__email__ = "[email protected]"
__license__ = "MIT"
__title__ = "django-admin-interface"
__version__ = "0.26.0"
__version__ = "0.26.1"
18 changes: 16 additions & 2 deletions admin_interface/static/admin_interface/css/admin-interface.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,30 @@
max-height: var(--admin-interface-logo-max-height);
}

.admin-interface #header #user-tools a {
.admin-interface #header #user-tools a,
.admin-interface #header #user-tools #logout-form button {
color: var(--admin-interface-header-link-color);
}

.admin-interface #header #user-tools a:hover,
.admin-interface #header #user-tools a:active {
.admin-interface #header #user-tools a:active,
.admin-interface #header #user-tools #logout-form button:hover,
.admin-interface #header #user-tools #logout-form button:active {
color: var(--admin-interface-header-link-hover-color);
border-bottom-color: rgba(255, 255, 255, 0.5);
}

.admin-interface #header #user-tools button.theme-toggle svg {
color: transparent;
fill: var(--admin-interface-header-link-color);
}

.admin-interface #header #user-tools button.theme-toggle:hover svg,
.admin-interface #header #user-tools button.theme-toggle:active svg {
color: transparent;
fill: var(--admin-interface-header-link-hover-color);
}

.admin-interface #nav-sidebar .current-app .section:link,
.admin-interface #nav-sidebar .current-app .section:visited {
color: var(--admin-interface-module-link-selected-color);
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coverage == 7.2.*
coverage == 7.3.*
pre-commit == 3.3.*
psycopg2-binary == 2.9.*
tox == 4.6.*
tox == 4.11.*
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
django >= 2.2
django-colorfield == 0.9.0
django-colorfield == 0.10.1
python-slugify == 8.0.1

0 comments on commit b3b9835

Please sign in to comment.