Compare commits

..

14 Commits

Author SHA1 Message Date
Fabio Caccamo 287e4421c9 Added python 3.8 and django 3.0 compatibility. 2019-12-02 18:51:35 +01:00
Fabio Caccamo aa57797297 Fixed input file thumbnail display. 2019-12-02 18:51:09 +01:00
Fabio Caccamo 2667e96549 Removed open-collective from README. [ci skip] 2019-12-02 18:50:29 +01:00
Fabio Caccamo 22dbcd206b Create FUNDING.yml 2019-11-12 15:54:53 +01:00
Fabio Caccamo aaf586721d Merge pull request #66 from opencollective/opencollective
Activating Open Collective
2019-10-15 12:33:41 +02:00
Fabio Caccamo d5c14ef3f4 Updated CHANGELOG and version. 2019-09-27 12:08:25 +02:00
Fabio Caccamo 93dfb07af9 Fixed select2 background color. 2019-09-27 11:59:29 +02:00
Fabio Caccamo 8e734864c2 Merge pull request #69 from lorenzomorandini/select2-theme-color
Autocomplete selected color:
2019-09-27 09:29:31 +02:00
Lorenzo Morandini d1cb3c11aa Autocomplete selected color:
set select2 selected color based on css_header_background_color
2019-09-25 15:00:16 +02:00
Fabio Caccamo 82923f9e98 Optimized language chooser template tag. 2019-09-05 10:15:29 +02:00
Fabio Caccamo 235d51ed9a Updated CHANGELOG. [ci skip] 2019-09-04 11:25:21 +02:00
Fabio Caccamo 1baebf9d62 Added language chooser display option. 2019-09-04 11:24:02 +02:00
Fabio Caccamo 56cdbe5d2f Updated README and CHANGELOG. [ci skip] 2019-09-03 18:58:17 +02:00
Jess 8de47f2ecb Added financial contributors to the README 2019-07-15 15:20:36 -07:00
21 changed files with 318 additions and 263 deletions
+6
View File
@@ -0,0 +1,6 @@
github: [fabiocaccamo]
patreon: fabiocaccamo
ko_fi: fabiocaccamo
liberapay: fabiocaccamo
issuehunt: fabiocaccamo
custom: ['https://www.paypal.me/fabiocaccamo']
+83 -128
View File
@@ -4,143 +4,98 @@ 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.10.5] - 2019-05-09
- Fixed broken migration on postgres/windows. #52
## [0.12.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.12.0) - 2019-12-02
- Added python 3.8 and django 3.0 compatibility.
## [0.10.4] - 2019-03-29
- Added django 2.2 to tox and travis.
- Fixed admin duplicated count query.
- Added admin theme caching to remove duplicated queries. #19
- Added django-dynamic-raw-id support. #61
- Updated app title italian localization.
## [0.11.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.11.2) - 2019-09-27
- Fixed select2 background color.
## [0.10.3] - 2019-03-28
- Fixed idempotent deploy support. #40
## [0.11.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.11.1) - 2019-09-04
- Added language chooser display option.
## [0.10.2] - 2019-03-22
- Fixed raw-id-field whith django-admin-interface. #58
## [0.11.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.11.0) - 2019-09-03
- Added language chooser.
## [0.10.1] - 2019-03-20
- Updated french localization.
## [0.10.5](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.5) - 2019-05-09
- Fixed broken migration on postgres/windows. #52
## [0.10.0] - 2019-02-21
- Updated messages.
- Added related modal close button. #45
- Updated fields verbose names.
- Added environment options. #56
## [0.10.4](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.4) - 2019-03-29
- Added django 2.2 to tox and travis.
- Fixed admin duplicated count query.
- Added admin theme caching to remove duplicated queries. #19
- Added django-dynamic-raw-id support. #61
- Updated app title italian localization.
## [0.9.3] - 2019-02-06
- Enabled travis pip cache.
- Splitted tests to multiple files.
- Added env badge to favicon.
## [0.10.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.3) - 2019-03-28
- Fixed idempotent deploy support. #40
## [0.9.2] - 2019-01-11
- Fixed cancel button does not work. #53
- Fixed IntegrityError on postgres
## [0.10.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.2) - 2019-03-22
- Fixed raw-id-field whith django-admin-interface. #58
## [0.9.1] - 2019-01-11
- Fixed missing migration. #51
## [0.10.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.1) - 2019-03-20
- Updated french localization.
## [0.9.0] - 2018-11-13
- Added French localization.
- Added Italian localization.
- Added Spanish localization.
- Added internationalization support.
## [0.10.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.0) - 2019-02-21
- Updated messages.
- Added related modal close button. #45
- Updated fields verbose names.
- Added environment options. #56
## [0.8.2] - 2018-10-24
## [0.8.1] - 2018-10-11
## [0.8.0] - 2018-08-31
## [0.7.0] - 2018-02-06
## [0.6.3] - 2018-02-05
## [0.6.2] - 2018-02-01
## [0.6.1] - 2018-01-31
## [0.6.0] - 2017-11-23
## [0.5.9] - 2017-10-04
## [0.5.8] - 2017-09-29
## [0.5.7] - 2017-09-29
## [0.5.6] - 2017-09-29
## [0.5.5] - 2017-09-27
## [0.5.4] - 2017-09-27
## [0.5.3] - 2017-08-24
## [0.5.2] - 2017-07-13
## [0.5.1] - 2017-06-13
## [0.5.0] - 2017-06-09
## [0.4.6] - 2017-05-24
## [0.4.5] - 2017-05-19
## [0.4.4] - 2017-05-18
## [0.4.3] - 2017-05-16
## [0.4.2] - 2017-05-11
## [0.4.1] - 2017-05-04
## [0.4.0] - 2017-04-14
## [0.3.2] - 2017-03-29
## [0.3.1] - 2017-03-29
## [0.3.0] - 2017-02-09
## [0.2.1] - 2016-11-08
## [0.2.0] - 2016-09-10
## [0.1.9] - 2016-09-04
## [0.1.8] - 2016-08-05
## [0.1.7] - 2016-06-29
## [0.1.6] - 2016-04-13
## [0.1.5] - 2016-02-24
## [0.1.4] - 2016-02-15
## [0.1.3] - 2015-12-03
## [0.1.2] - 2015-11-25
## [0.1.1] - 2015-11-13
## [0.9.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.3) - 2019-02-06
- Enabled travis pip cache.
- Splitted tests to multiple files.
- Added env badge to favicon.
## [0.0.1] - 2015-11-13
### Added
- Added setup files to make the package installable using pip.
- Added ckeditor light skin.
- Added support to dropdown list filter.
- Added post_migrate handler to create the default theme after install.
## [0.9.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.2) - 2019-01-11
- Fixed cancel button does not work. #53
- Fixed IntegrityError on postgres
[0.10.5]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.5
[0.10.4]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.4
[0.10.3]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.3
[0.10.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.2
[0.10.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.1
[0.10.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.10.0
[0.9.3]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.3
[0.9.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.2
[0.9.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.1
[0.9.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.0
[0.8.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.8.2
[0.8.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.8.1
[0.8.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.8.0
[0.7.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.7.0
[0.6.3]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.3
[0.6.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.2
[0.6.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.1
[0.6.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.0
[0.5.9]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.9
[0.5.8]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.8
[0.5.7]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.7
[0.5.6]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.6
[0.5.5]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.5
[0.5.4]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.4
[0.5.3]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.3
[0.5.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.2
[0.5.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.1
[0.5.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.0
[0.4.6]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.6
[0.4.5]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.5
[0.4.4]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.4
[0.4.3]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.3
[0.4.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.2
[0.4.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.1
[0.4.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.0
[0.3.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.3.2
[0.3.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.3.1
[0.3.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.3.0
[0.2.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.2.1
[0.2.0]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.2.0
[0.1.9]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.9
[0.1.8]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.8
[0.1.7]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.7
[0.1.6]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.6
[0.1.5]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.5
[0.1.4]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.4
[0.1.3]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.3
[0.1.2]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.2
[0.1.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.1
[0.0.1]: https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.0.1
## [0.9.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.1) - 2019-01-11
- Fixed missing migration. #51
## [0.9.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.9.0) - 2018-11-13
- Added French localization.
- Added Italian localization.
- Added Spanish localization.
- Added internationalization support.
## [0.8.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.8.2) - 2018-10-24
## [0.8.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.8.1) - 2018-10-11
## [0.8.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.8.0) - 2018-08-31
## [0.7.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.7.0) - 2018-02-06
## [0.6.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.3) - 2018-02-05
## [0.6.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.2) - 2018-02-01
## [0.6.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.1) - 2018-01-31
## [0.6.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.6.0) - 2017-11-23
## [0.5.9](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.9) - 2017-10-04
## [0.5.8](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.8) - 2017-09-29
## [0.5.7](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.7) - 2017-09-29
## [0.5.6](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.6) - 2017-09-29
## [0.5.5](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.5) - 2017-09-27
## [0.5.4](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.4) - 2017-09-27
## [0.5.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.3) - 2017-08-24
## [0.5.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.2) - 2017-07-13
## [0.5.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.1) - 2017-06-13
## [0.5.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.5.0) - 2017-06-09
## [0.4.6](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.6) - 2017-05-24
## [0.4.5](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.5) - 2017-05-19
## [0.4.4](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.4) - 2017-05-18
## [0.4.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.3) - 2017-05-16
## [0.4.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.2) - 2017-05-11
## [0.4.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.1) - 2017-05-04
## [0.4.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.4.0) - 2017-04-14
## [0.3.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.3.2) - 2017-03-29
## [0.3.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.3.1) - 2017-03-29
## [0.3.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.3.0) - 2017-02-09
## [0.2.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.2.1) - 2016-11-08
## [0.2.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.2.0) - 2016-09-10
## [0.1.9](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.9) - 2016-09-04
## [0.1.8](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.8) - 2016-08-05
## [0.1.7](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.7) - 2016-06-29
## [0.1.6](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.6) - 2016-04-13
## [0.1.5](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.5) - 2016-02-24
## [0.1.4](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.4) - 2016-02-15
## [0.1.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.3) - 2015-12-03
## [0.1.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.2) - 2015-11-25
## [0.1.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.1.1) - 2015-11-13
## [0.0.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.0.1) - 2015-11-13
+1 -1
View File
@@ -1,5 +1,4 @@
[![Build Status](https://travis-ci.org/fabiocaccamo/django-admin-interface.svg?branch=master)](https://travis-ci.org/fabiocaccamo/django-admin-interface)
[![codecov](https://codecov.io/gh/fabiocaccamo/django-admin-interface/branch/master/graph/badge.svg)](https://codecov.io/gh/fabiocaccamo/django-admin-interface)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/21cb657283c04e70b56fb935277a1ad1)](https://www.codacy.com/app/fabiocaccamo/django-admin-interface)
[![PyPI version](https://badge.fury.io/py/django-admin-interface.svg)](https://badge.fury.io/py/django-admin-interface)
[![PyPI downloads](https://img.shields.io/pypi/dm/django-admin-interface.svg)](https://img.shields.io/pypi/dm/django-admin-interface.svg)
@@ -18,6 +17,7 @@ django-admin-interface is a modern **responsive flat admin interface customizabl
- List filter dropdown *(optional)*
- `NEW` **Related modal** *(instead of the old popup window, optional)*
- `NEW` **Environment name/marker**
- `NEW` **Language chooser**
- Compatibility / Style optimizations for:
- `django-ckeditor`
- `django-dynamic-raw-id`
+3 -2
View File
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
from admin_interface.models import Theme
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from admin_interface.models import Theme
class ThemeAdmin(admin.ModelAdmin):
@@ -31,6 +31,7 @@ class ThemeAdmin(admin.ModelAdmin):
'classes': ('wide', ),
'fields': (
'language_chooser_active',
'language_chooser_display',
)
}),
(_('Logo'), {
Binary file not shown.
+40 -31
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: django-admin-interface\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-03 16:43+0000\n"
"POT-Creation-Date: 2019-09-04 09:18+0000\n"
"PO-Revision-Date: 2018-12-30 19:13-0500\n"
"Last-Translator: Martin Vuelta <martin.vuelta@softbutterfly.io>\n"
"Language-Team: Spanish <dev@softbutterfly.io>\n"
@@ -27,47 +27,47 @@ msgstr "Ambiente"
msgid "Language chooser"
msgstr ""
#: admin_interface/admin.py:36
#: admin_interface/admin.py:37
msgid "Logo"
msgstr "Logo"
#: admin_interface/admin.py:44
#: admin_interface/admin.py:45
msgid "Favicon"
msgstr "Favicon"
#: admin_interface/admin.py:48
#: admin_interface/admin.py:49
msgid "Title"
msgstr "Título"
#: admin_interface/admin.py:56
#: admin_interface/admin.py:57
msgid "Header"
msgstr "Encabezado"
#: admin_interface/admin.py:65
#: admin_interface/admin.py:66
msgid "Breadcrumbs / Module headers"
msgstr "Breadcrumbs / Encabezados de módulos"
#: admin_interface/admin.py:75
#: admin_interface/admin.py:76
msgid "Generic Links"
msgstr "Enlaces genéricos"
#: admin_interface/admin.py:82
#: admin_interface/admin.py:83
msgid "Save Buttons"
msgstr "Botones de guardar"
#: admin_interface/admin.py:90
#: admin_interface/admin.py:91
msgid "Delete Buttons"
msgstr "Botones de borrar"
#: admin_interface/admin.py:98
#: admin_interface/admin.py:99
msgid "Related Modal"
msgstr "Modal para objetos relacionados"
#: admin_interface/admin.py:108
#: admin_interface/admin.py:109
msgid "List Filter"
msgstr "Lista de filtros"
#: admin_interface/admin.py:112
#: admin_interface/admin.py:113
msgid "Recent Actions"
msgstr "Acciones recientes"
@@ -76,11 +76,12 @@ msgid "Admin Interface"
msgstr "Interfaz de administración"
#: admin_interface/models.py:72 admin_interface/models.py:116
#: admin_interface/models.py:135
msgid "name"
msgstr "Nombre"
#: admin_interface/models.py:75 admin_interface/models.py:132
#: admin_interface/models.py:244
#: admin_interface/models.py:253
msgid "active"
msgstr "Activo"
@@ -102,7 +103,7 @@ msgid "color"
msgstr "color de logo"
#: admin_interface/models.py:90 admin_interface/models.py:105
#: admin_interface/models.py:280
#: admin_interface/models.py:289
msgid "visible"
msgstr "Visible"
@@ -136,53 +137,61 @@ msgstr ""
msgid "visible in favicon (marker)"
msgstr ""
#: admin_interface/models.py:139 admin_interface/models.py:164
#: admin_interface/models.py:205 admin_interface/models.py:224
#: admin_interface/models.py:250
#: admin_interface/models.py:134
msgid "code"
msgstr ""
#: admin_interface/models.py:141
msgid "display"
msgstr ""
#: admin_interface/models.py:148 admin_interface/models.py:173
#: admin_interface/models.py:214 admin_interface/models.py:233
#: admin_interface/models.py:259
msgid "background color"
msgstr "color de fondo"
#: admin_interface/models.py:145 admin_interface/models.py:170
#: admin_interface/models.py:217 admin_interface/models.py:236
#: admin_interface/models.py:240
#: admin_interface/models.py:154 admin_interface/models.py:179
#: admin_interface/models.py:226 admin_interface/models.py:245
#: admin_interface/models.py:249
msgid "text color"
msgstr "color de texto"
#: admin_interface/models.py:151 admin_interface/models.py:176
#: admin_interface/models.py:192
#: admin_interface/models.py:160 admin_interface/models.py:185
#: admin_interface/models.py:201
msgid "link color"
msgstr "color de enlace"
#: admin_interface/models.py:157 admin_interface/models.py:182
#: admin_interface/models.py:198
#: admin_interface/models.py:166 admin_interface/models.py:191
#: admin_interface/models.py:207
msgid "link hover color"
msgstr "color de enlace (hover)"
#: admin_interface/models.py:185 admin_interface/models.py:270
#: admin_interface/models.py:194 admin_interface/models.py:279
msgid "rounded corners"
msgstr "esquinas redondas"
#: admin_interface/models.py:211 admin_interface/models.py:230
#: admin_interface/models.py:220 admin_interface/models.py:239
msgid "background hover color"
msgstr "color de fondo (hover)"
#: admin_interface/models.py:267
#: admin_interface/models.py:276
msgid "background opacity"
msgstr "opacidad de fondo"
#: admin_interface/models.py:273
#: admin_interface/models.py:282
msgid "close button visible"
msgstr ""
#: admin_interface/models.py:277
#: admin_interface/models.py:286
msgid "use dropdown"
msgstr "Usar lista desplegable"
#: admin_interface/models.py:289
#: admin_interface/models.py:298
msgid "Theme"
msgstr "Tema"
#: admin_interface/models.py:290
#: admin_interface/models.py:299
msgid "Themes"
msgstr "Temas"
Binary file not shown.
+40 -31
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-03 16:43+0000\n"
"POT-Creation-Date: 2019-09-04 09:18+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -26,47 +26,47 @@ msgstr "Environnment"
msgid "Language chooser"
msgstr ""
#: admin_interface/admin.py:36
#: admin_interface/admin.py:37
msgid "Logo"
msgstr "Logo"
#: admin_interface/admin.py:44
#: admin_interface/admin.py:45
msgid "Favicon"
msgstr "Favicon"
#: admin_interface/admin.py:48
#: admin_interface/admin.py:49
msgid "Title"
msgstr "Titre"
#: admin_interface/admin.py:56
#: admin_interface/admin.py:57
msgid "Header"
msgstr "Bannière"
#: admin_interface/admin.py:65
#: admin_interface/admin.py:66
msgid "Breadcrumbs / Module headers"
msgstr "Fil d'ariane / en-têtes de module"
#: admin_interface/admin.py:75
#: admin_interface/admin.py:76
msgid "Generic Links"
msgstr "Liens génériques"
#: admin_interface/admin.py:82
#: admin_interface/admin.py:83
msgid "Save Buttons"
msgstr "Boutons sauvegarder"
#: admin_interface/admin.py:90
#: admin_interface/admin.py:91
msgid "Delete Buttons"
msgstr "Boutons supprimer"
#: admin_interface/admin.py:98
#: admin_interface/admin.py:99
msgid "Related Modal"
msgstr "Modale pour objet reliés"
#: admin_interface/admin.py:108
#: admin_interface/admin.py:109
msgid "List Filter"
msgstr "Filtre de liste"
#: admin_interface/admin.py:112
#: admin_interface/admin.py:113
msgid "Recent Actions"
msgstr "Actions récentes"
@@ -75,11 +75,12 @@ msgid "Admin Interface"
msgstr "Interface Admin"
#: admin_interface/models.py:72 admin_interface/models.py:116
#: admin_interface/models.py:135
msgid "name"
msgstr "nom"
#: admin_interface/models.py:75 admin_interface/models.py:132
#: admin_interface/models.py:244
#: admin_interface/models.py:253
msgid "active"
msgstr "actif"
@@ -99,7 +100,7 @@ msgid "color"
msgstr "couleur"
#: admin_interface/models.py:90 admin_interface/models.py:105
#: admin_interface/models.py:280
#: admin_interface/models.py:289
msgid "visible"
msgstr "visible"
@@ -135,53 +136,61 @@ msgstr "visible dans len-tête (marqueur et nom)"
msgid "visible in favicon (marker)"
msgstr "visible dans la favicon (marqueur)"
#: admin_interface/models.py:139 admin_interface/models.py:164
#: admin_interface/models.py:205 admin_interface/models.py:224
#: admin_interface/models.py:250
#: admin_interface/models.py:134
msgid "code"
msgstr ""
#: admin_interface/models.py:141
msgid "display"
msgstr ""
#: admin_interface/models.py:148 admin_interface/models.py:173
#: admin_interface/models.py:214 admin_interface/models.py:233
#: admin_interface/models.py:259
msgid "background color"
msgstr "couleur d'arrière-plan"
#: admin_interface/models.py:145 admin_interface/models.py:170
#: admin_interface/models.py:217 admin_interface/models.py:236
#: admin_interface/models.py:240
#: admin_interface/models.py:154 admin_interface/models.py:179
#: admin_interface/models.py:226 admin_interface/models.py:245
#: admin_interface/models.py:249
msgid "text color"
msgstr "couleur du texte"
#: admin_interface/models.py:151 admin_interface/models.py:176
#: admin_interface/models.py:192
#: admin_interface/models.py:160 admin_interface/models.py:185
#: admin_interface/models.py:201
msgid "link color"
msgstr "couleur de lien"
#: admin_interface/models.py:157 admin_interface/models.py:182
#: admin_interface/models.py:198
#: admin_interface/models.py:166 admin_interface/models.py:191
#: admin_interface/models.py:207
msgid "link hover color"
msgstr "couleur de lien au survol"
#: admin_interface/models.py:185 admin_interface/models.py:270
#: admin_interface/models.py:194 admin_interface/models.py:279
msgid "rounded corners"
msgstr "coins arrondis"
#: admin_interface/models.py:211 admin_interface/models.py:230
#: admin_interface/models.py:220 admin_interface/models.py:239
msgid "background hover color"
msgstr "couleur de fond au survol"
#: admin_interface/models.py:267
#: admin_interface/models.py:276
msgid "background opacity"
msgstr "opacité de l'arrière-plan"
#: admin_interface/models.py:273
#: admin_interface/models.py:282
msgid "close button visible"
msgstr "bouton fermer visible"
#: admin_interface/models.py:277
#: admin_interface/models.py:286
msgid "use dropdown"
msgstr "utiliser un menu déroulant"
#: admin_interface/models.py:289
#: admin_interface/models.py:298
msgid "Theme"
msgstr "Thème"
#: admin_interface/models.py:290
#: admin_interface/models.py:299
msgid "Themes"
msgstr "Thèmes"
Binary file not shown.
+40 -31
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: django-admin-interface\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-03 16:43+0000\n"
"POT-Creation-Date: 2019-09-04 09:19+0000\n"
"PO-Revision-Date: 2018-12-30 19:13-0500\n"
"Last-Translator: Fabio Caccamo <fabio.caccamo@gmail.com>\n"
"Language-Team: Italian <LL@li.org>\n"
@@ -27,47 +27,47 @@ msgstr "Ambiente"
msgid "Language chooser"
msgstr "Selettore di lingua"
#: admin_interface/admin.py:36
#: admin_interface/admin.py:37
msgid "Logo"
msgstr "Logo"
#: admin_interface/admin.py:44
#: admin_interface/admin.py:45
msgid "Favicon"
msgstr "Favicon"
#: admin_interface/admin.py:48
#: admin_interface/admin.py:49
msgid "Title"
msgstr "Titolo"
#: admin_interface/admin.py:56
#: admin_interface/admin.py:57
msgid "Header"
msgstr "Header"
#: admin_interface/admin.py:65
#: admin_interface/admin.py:66
msgid "Breadcrumbs / Module headers"
msgstr "Breadcrumbs / Header dei moduli"
#: admin_interface/admin.py:75
#: admin_interface/admin.py:76
msgid "Generic Links"
msgstr "Link generici"
#: admin_interface/admin.py:82
#: admin_interface/admin.py:83
msgid "Save Buttons"
msgstr "Pulsanti per salvare"
#: admin_interface/admin.py:90
#: admin_interface/admin.py:91
msgid "Delete Buttons"
msgstr "Pulsanti per eliminare"
#: admin_interface/admin.py:98
#: admin_interface/admin.py:99
msgid "Related Modal"
msgstr "Modale per gli oggetti correlati"
#: admin_interface/admin.py:108
#: admin_interface/admin.py:109
msgid "List Filter"
msgstr "Filtro listato"
#: admin_interface/admin.py:112
#: admin_interface/admin.py:113
msgid "Recent Actions"
msgstr "Azioni recenti"
@@ -76,11 +76,12 @@ msgid "Admin Interface"
msgstr "Interfaccia di amministrazione"
#: admin_interface/models.py:72 admin_interface/models.py:116
#: admin_interface/models.py:135
msgid "name"
msgstr "nome"
#: admin_interface/models.py:75 admin_interface/models.py:132
#: admin_interface/models.py:244
#: admin_interface/models.py:253
msgid "active"
msgstr "attivo"
@@ -100,7 +101,7 @@ msgid "color"
msgstr "colore"
#: admin_interface/models.py:90 admin_interface/models.py:105
#: admin_interface/models.py:280
#: admin_interface/models.py:289
msgid "visible"
msgstr "visibile"
@@ -136,53 +137,61 @@ msgstr "visibile nell'header (marker e nome)"
msgid "visible in favicon (marker)"
msgstr "visibile nella favicon (marker)"
#: admin_interface/models.py:139 admin_interface/models.py:164
#: admin_interface/models.py:205 admin_interface/models.py:224
#: admin_interface/models.py:250
#: admin_interface/models.py:134
msgid "code"
msgstr "codice"
#: admin_interface/models.py:141
msgid "display"
msgstr "visualizzazione"
#: admin_interface/models.py:148 admin_interface/models.py:173
#: admin_interface/models.py:214 admin_interface/models.py:233
#: admin_interface/models.py:259
msgid "background color"
msgstr "colore di sfondo"
#: admin_interface/models.py:145 admin_interface/models.py:170
#: admin_interface/models.py:217 admin_interface/models.py:236
#: admin_interface/models.py:240
#: admin_interface/models.py:154 admin_interface/models.py:179
#: admin_interface/models.py:226 admin_interface/models.py:245
#: admin_interface/models.py:249
msgid "text color"
msgstr "colore del testo"
#: admin_interface/models.py:151 admin_interface/models.py:176
#: admin_interface/models.py:192
#: admin_interface/models.py:160 admin_interface/models.py:185
#: admin_interface/models.py:201
msgid "link color"
msgstr "colore dei link"
#: admin_interface/models.py:157 admin_interface/models.py:182
#: admin_interface/models.py:198
#: admin_interface/models.py:166 admin_interface/models.py:191
#: admin_interface/models.py:207
msgid "link hover color"
msgstr "colore dei link in hover"
#: admin_interface/models.py:185 admin_interface/models.py:270
#: admin_interface/models.py:194 admin_interface/models.py:279
msgid "rounded corners"
msgstr "bordi arrotondati"
#: admin_interface/models.py:211 admin_interface/models.py:230
#: admin_interface/models.py:220 admin_interface/models.py:239
msgid "background hover color"
msgstr "colore di sfondo in hover"
#: admin_interface/models.py:267
#: admin_interface/models.py:276
msgid "background opacity"
msgstr "opacità dello sfondo"
#: admin_interface/models.py:273
#: admin_interface/models.py:282
msgid "close button visible"
msgstr "pulsante chiudi visibile"
#: admin_interface/models.py:277
#: admin_interface/models.py:286
msgid "use dropdown"
msgstr "usa dropdown"
#: admin_interface/models.py:289
#: admin_interface/models.py:298
msgid "Theme"
msgstr "Tema"
#: admin_interface/models.py:290
#: admin_interface/models.py:299
msgid "Themes"
msgstr "Temi"
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('admin_interface', '0015_add_language_chooser_active'),
]
operations = [
migrations.AddField(
model_name='theme',
name='language_chooser_display',
field=models.CharField(choices=[('code', 'code'), ('name', 'name')], default='code', max_length=10, verbose_name='display'),
),
]
+16 -5
View File
@@ -2,14 +2,16 @@
from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import post_delete, post_save, pre_save
from django.utils.encoding import python_2_unicode_compatible, force_text
from django.utils.translation import ugettext_lazy as _
from admin_interface.cache import del_cached_active_theme
from colorfield.fields import ColorField
from admin_interface.cache import del_cached_active_theme
from django.db import models
from django.db.models.signals import post_delete, post_save, pre_save
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from six import python_2_unicode_compatible
@python_2_unicode_compatible
@@ -130,6 +132,15 @@ class Theme(models.Model):
language_chooser_active = models.BooleanField(
default=True,
verbose_name=_('active'))
language_chooser_display_choices = (
('code', _('code'), ),
('name', _('name'), ),
)
language_chooser_display = models.CharField(
max_length=10,
choices=language_chooser_display_choices,
default='code',
verbose_name=_('display'))
css_header_background_color = ColorField(
blank=True,
@@ -64,6 +64,9 @@ https://github.com/fabiocaccamo/django-admin-interface
{% block welcome-msg %}
{% get_admin_interface_theme as theme %}
{% if theme.language_chooser_active %}{% get_admin_interface_language_chooser %}{% endif %}
{% if theme.language_chooser_active %}
{% get_admin_interface_languages as languages %}
{% include "admin_interface/language_chooser.html" %}
{% endif %}
{% if theme.env_visible_in_header %}<span class="environment-label {{ theme.env_name }}"></span> - {% endif %}{{ block.super }}<br>
{% endblock %}
@@ -135,6 +135,10 @@ body.admin-interface .paginator a.showall:visited {
margin-left: 5px;
}
.admin-interface .file-thumbnail > a {
display: inline-block;
}
.admin-interface .aligned p.file-upload {
display:table;
}
@@ -269,3 +269,7 @@
border-radius:4px;
{% endif %}
}
.admin-interface .select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
background-color: {{ theme.css_header_background_color }};
}
@@ -1,5 +1,6 @@
{% load admin_interface_tags %}
{% if languages %}
<div class="language-chooser">
{% for language in languages %}
<form class="language-chooser-hidden-form" id="language-chooser-hidden-form-{{ language.code }}" action="{{ language.activation_url }}" method="POST">
@@ -11,8 +12,9 @@
{% csrf_token %}
<select name="language" onchange="document.getElementById(String('language-chooser-hidden-form-' + this.value)).submit();">
{% for language in languages %}
<option value="{{ language.code }}" {% if language.active %}selected{% endif %}>{{ language.code|upper }}</option>
<option value="{{ language.code }}" {% if language.active %}selected{% endif %}>{% if theme.language_chooser_display == 'code' %}{{ language.code|upper }}{% elif theme.language_chooser_display == 'name' %}{{ language.name }}{% endif %}</option>
{% endfor %}
</select>
</form>
</div>
</div>
{% endif %}
@@ -4,9 +4,9 @@ import django
from django import template, VERSION
from django.conf import settings
if django.VERSION < (1, 10):
from django.core.urlresolvers import reverse
from django.core.urlresolvers import NoReverseMatch, reverse
else:
from django.urls import reverse
from django.urls import NoReverseMatch, reverse
from django.utils import translation
from admin_interface.cache import get_cached_active_theme, set_cached_active_theme
@@ -24,33 +24,46 @@ else:
simple_tag = register.simple_tag
@register.inclusion_tag('admin_interface/language_chooser.html', takes_context=True)
def get_admin_interface_language_chooser(context):
@simple_tag(takes_context=True)
def get_admin_interface_languages(context):
if not settings.USE_I18N:
# i18n disabled
return None
if len(settings.LANGUAGES) < 2:
# less than 2 languages
return None
try:
set_language_url = reverse('set_language')
except NoReverseMatch:
# ImproperlyConfigured - must include i18n urls:
# urlpatterns += [url(r'^i18n/', include('django.conf.urls.i18n')),]
return None
request = context.get('request', None)
if not request:
return None
full_path = request.get_full_path()
admin_nolang_url = re.sub(r'^\/([\w]{2})([\-\_]{1}[\w]{2})?\/', '/', full_path)
if admin_nolang_url == full_path:
# ImproperlyConfigured - must include admin urls using i18n_patterns:
# from django.conf.urls.i18n import i18n_patterns
# urlpatterns += i18n_patterns(url(r'^admin/', admin.site.urls))
return None
langs_data = []
if settings.USE_I18N and len(settings.LANGUAGES) > 1:
request = context.get('request')
full_path = request.get_full_path()
default_lang_code = settings.LANGUAGE_CODE
current_lang_code = translation.get_language() or default_lang_code
for language in settings.LANGUAGES:
lang_code = language[0].lower()
lang_name = language[1].title()
lang_data = {
'code': lang_code,
'name': lang_name,
'default': bool(lang_code == default_lang_code),
'active': bool(lang_code == current_lang_code),
}
with translation.override(lang_code):
lang_set_url = '{}?language={}'.format(
reverse('set_language'), lang_code)
lang_next_url = re.sub(
r'^\/[\w\-\_]+', '/{}'.format(lang_code), full_path)
lang_activation_url = '{}&next={}'.format(
lang_set_url, lang_next_url)
lang_data['activation_url'] = lang_activation_url
langs_data.append(lang_data)
return { 'languages':langs_data }
default_lang_code = settings.LANGUAGE_CODE
current_lang_code = translation.get_language() or default_lang_code
for language in settings.LANGUAGES:
lang_code = language[0].lower()
lang_name = language[1].title()
lang_data = {
'code': lang_code,
'name': lang_name,
'default': lang_code == default_lang_code,
'active': lang_code == current_lang_code,
'activation_url': '{}?next=/{}{}'.format(
set_language_url, lang_code, admin_nolang_url)
}
langs_data.append(lang_data)
return langs_data
@simple_tag(takes_context=True)
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
__version__ = '0.11.0'
__version__ = '0.11.2'
+4
View File
@@ -0,0 +1,4 @@
django-colorfield
django-flat-theme
django-flat-responsive
six>=1.9.0
+3
View File
@@ -37,6 +37,7 @@ setup(
'django-colorfield >= 0.1, < 1.0',
'django-flat-theme >= 1.0, < 2.0',
'django-flat-responsive >= 1.0, < 3.0',
'six >= 1.9.0, < 2.0.0',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
@@ -50,6 +51,7 @@ setup(
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
@@ -61,6 +63,7 @@ setup(
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Build Tools',
],
license='MIT',
+4 -2
View File
@@ -3,8 +3,9 @@ envlist =
py27-{dj17,dj18,dj19,dj110,dj111}-{sqlite,postgres},
py34-{dj17,dj18,dj19,dj110,dj111,dj20}-{sqlite,postgres},
py35-{dj18,dj19,dj110,dj111,dj20,dj21,dj22}-{sqlite,postgres},
py36-{dj18,dj19,dj110,dj111,dj20,dj21,dj22,djmaster}-{sqlite,postgres},
py37-{dj20,dj21,dj22,djmaster}-{sqlite,postgres},
py36-{dj18,dj19,dj110,dj111,dj20,dj21,dj22,dj30,djmaster}-{sqlite,postgres},
py37-{dj20,dj21,dj22,dj30,djmaster}-{sqlite,postgres},
py38-{dj22,dj30,djmaster}-{sqlite,postgres},
[testenv]
passenv = CI TRAVIS TRAVIS_*
deps =
@@ -16,6 +17,7 @@ deps =
dj20: Django >= 2.0, < 2.1
dj21: Django >= 2.1, < 2.2
dj22: Django >= 2.2, < 2.3
dj30: Django >= 3.0, < 3.1
djmaster: https://github.com/django/django/archive/master.tar.gz
# mysql: mysqlclient
postgres: psycopg2-binary