Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8185c7edf6 | ||
|
|
51862ad3ed | ||
|
|
0eed8c8679 | ||
|
|
d74fcd4001 | ||
|
|
97e1a2b315 | ||
|
|
45266906a3 | ||
|
|
5496f996be | ||
|
|
d85690fb9c | ||
|
|
c44621dae1 | ||
|
|
5f2e2982b1 | ||
|
|
1b0d20f494 | ||
|
|
7e85ebac9b | ||
|
|
95fb2df285 |
No files matched your search
@@ -1 +1,2 @@
|
|||||||
github: [fabiocaccamo]
|
github: [fabiocaccamo]
|
||||||
|
custom: ['https://www.paypal.me/fabiocaccamo']
|
||||||
@@ -18,7 +18,12 @@ jobs:
|
|||||||
uses: ffurrer2/extract-release-notes@v1
|
uses: ffurrer2/extract-release-notes@v1
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: ncipollo/release-action@v1
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: ${{ github.ref }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
body: ${{ steps.extract-release-notes.outputs.release_notes }}
|
body: ${{ steps.extract-release-notes.outputs.release_notes }}
|
||||||
token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }}
|
|
||||||
@@ -4,15 +4,6 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [0.20.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.20.0) - 2022-08-25
|
|
||||||
- Add `django-streamfield` compatibility.
|
|
||||||
|
|
||||||
## [0.19.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.19.2) - 2022-08-04
|
|
||||||
- Fix `hashlib` compatibility with `FIPS` enabled systems. #167 (by [@jonlev1n](https://github.com/jonlev1n) in #168)
|
|
||||||
|
|
||||||
## [0.19.1](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.19.1) - 2022-05-14
|
|
||||||
- [css] Fixed dashboard alignment when recent-actions are not visible.
|
|
||||||
|
|
||||||
## [0.19.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.19.0) - 2022-03-08
|
## [0.19.0](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.19.0) - 2022-03-08
|
||||||
- Converted dynamic inline CSS to external static CSS using CSS variables. #157 #93 (thanks to [@Mustafa-Abu-Ghazy](https://github.com/Mustafa-Abu-Ghazy))
|
- Converted dynamic inline CSS to external static CSS using CSS variables. #157 #93 (thanks to [@Mustafa-Abu-Ghazy](https://github.com/Mustafa-Abu-Ghazy))
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ django-admin-interface is a modern **responsive flat admin interface customizabl
|
|||||||
- `django-json-widget`
|
- `django-json-widget`
|
||||||
- `django-modeltranslation`
|
- `django-modeltranslation`
|
||||||
- `django-tabbed-admin`
|
- `django-tabbed-admin`
|
||||||
- `django-streamfield`
|
|
||||||
- `sorl-thumbnail`
|
- `sorl-thumbnail`
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -101,48 +100,31 @@ You can add a theme you've created through the admin to this repository by [send
|
|||||||
4. Edit the section above to document your theme.
|
4. Edit the section above to document your theme.
|
||||||
|
|
||||||
### Add theme support to third-party libraries
|
### Add theme support to third-party libraries
|
||||||
You can add **theme support to existing third-party libraries** using the following **CSS variables**:
|
You can add **theme support to existing third-party libraries** using the following **css variables**:
|
||||||
|
|
||||||
#### Header
|
- `--admin-interface-title-color`
|
||||||
|
- `--admin-interface-logo-color`
|
||||||
- `--admin-interface-header-background-color`
|
- `--admin-interface-env-color`
|
||||||
|
- `--admin-interface-header-background-color:`
|
||||||
- `--admin-interface-header-text-color`
|
- `--admin-interface-header-text-color`
|
||||||
- `--admin-interface-header-link-color`
|
- `--admin-interface-header-link-color`
|
||||||
- `--admin-interface-header-link_hover-color`
|
- `--admin-interface-header-link_hover-color`
|
||||||
- `--admin-interface-title-color`
|
|
||||||
- `--admin-interface-env-color`
|
|
||||||
|
|
||||||
#### Logo
|
|
||||||
|
|
||||||
- `--admin-interface-logo-color`
|
|
||||||
- `--admin-interface-logo-default-background-image`
|
|
||||||
- `--admin-interface-logo-max-width`
|
|
||||||
- `--admin-interface-logo-max-height`
|
|
||||||
|
|
||||||
#### Modules / Links
|
|
||||||
- `--admin-interface-module-background-color`
|
- `--admin-interface-module-background-color`
|
||||||
- `--admin-interface-module-background-selected-color`
|
- `--admin-interface-module-background-selected-color`
|
||||||
- `--admin-interface-module-border-radius`
|
|
||||||
- `--admin-interface-module-text-color`
|
- `--admin-interface-module-text-color`
|
||||||
- `--admin-interface-module-link-color`
|
- `--admin-interface-module-link-color`
|
||||||
- `--admin-interface-module-link-selected-color`
|
- `--admin-interface-module-link-selected-color`
|
||||||
- `--admin-interface-module-link-hover-color`
|
- `--admin-interface-module-link-hover-color`
|
||||||
- `--admin-interface-generic-link-color`
|
- `--admin-interface-generic-link-color`
|
||||||
- `--admin-interface-generic-link-hover-color`
|
- `--admin-interface-generic-link-hover-color`
|
||||||
|
|
||||||
#### Buttons
|
|
||||||
- `--admin-interface-save-button-background-color`
|
- `--admin-interface-save-button-background-color`
|
||||||
- `--admin-interface-save-button-background-hover-color`
|
- `--admin-interface-save-button-background-hover-color`
|
||||||
- `--admin-interface-save-button-text-color`
|
- `--admin-interface-save-button-text-color`
|
||||||
- `--admin-interface-delete-button-background-color`
|
- `--admin-interface-delete-button-background-color`
|
||||||
- `--admin-interface-delete-button-background-hover-color`
|
- `--admin-interface-delete-button-background-hover-color`
|
||||||
- `--admin-interface-delete-button-text-color`
|
- `--admin-interface-delete-button-text-color`
|
||||||
|
|
||||||
#### Related Modal
|
|
||||||
- `--admin-interface-related-modal-background-color`
|
- `--admin-interface-related-modal-background-color`
|
||||||
- `--admin-interface-related-modal-background-opacity`
|
- `--admin-interface-related-modal-background-opacity`
|
||||||
- `--admin-interface-related-modal-border-radius`
|
|
||||||
- `--admin-interface-related-modal-close-button-display`
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -176,7 +158,7 @@ You must configure multilanguage `settings` and `urls` correctly:
|
|||||||
LANGUAGES = (
|
LANGUAGES = (
|
||||||
("en", _("English")),
|
("en", _("English")),
|
||||||
("it", _("Italiano")),
|
("it", _("Italiano")),
|
||||||
("fr", _("Français")),
|
("fr", _("Française")),
|
||||||
# more than one language is expected here
|
# more than one language is expected here
|
||||||
)
|
)
|
||||||
LANGUAGE_CODE = "en"
|
LANGUAGE_CODE = "en"
|
||||||
@@ -205,17 +187,18 @@ urlpatterns += i18n_patterns(path("admin/", admin.site.urls))
|
|||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
```bash
|
```bash
|
||||||
# clone repository
|
# create python virtual environment
|
||||||
git clone https://github.com/fabiocaccamo/django-admin-interface.git && cd django-admin-interface
|
virtualenv testing_django_admin_interface
|
||||||
|
|
||||||
# create virtualenv and activate it
|
# activate virtualenv
|
||||||
python -m venv venv && . venv/bin/activate
|
cd testing_django_admin_interface && . bin/activate
|
||||||
|
|
||||||
# upgrade pip
|
# clone repo
|
||||||
python -m pip install --upgrade pip
|
git clone https://github.com/fabiocaccamo/django-admin-interface.git src && cd src
|
||||||
|
|
||||||
# install requirements
|
# install dependencies
|
||||||
pip install -r requirements.txt -r requirements-test.txt
|
pip install -r requirements.txt
|
||||||
|
pip install -r requirements-test.txt
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
tox
|
tox
|
||||||
@@ -232,13 +215,6 @@ Released under [MIT License](LICENSE.txt).
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Supporting
|
|
||||||
|
|
||||||
- :star: Star this project on [GitHub](https://github.com/fabiocaccamo/django-admin-interface)
|
|
||||||
- :octocat: Follow me on [GitHub](https://github.com/fabiocaccamo)
|
|
||||||
- :blue_heart: Follow me on [Twitter](https://twitter.com/fabiocaccamo)
|
|
||||||
- :moneybag: Sponsor me on [Github](https://github.com/sponsors/fabiocaccamo)
|
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
- [`django-colorfield`](https://github.com/fabiocaccamo/django-colorfield) - simple color field for models with a nice color-picker in the admin. 🎨
|
- [`django-colorfield`](https://github.com/fabiocaccamo/django-colorfield) - simple color field for models with a nice color-picker in the admin. 🎨
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ from django.contrib.auth import models as auth_models
|
|||||||
from admin_interface.compat import gettext_lazy as _
|
from admin_interface.compat import gettext_lazy as _
|
||||||
from admin_interface.models import Theme, UserTheme
|
from admin_interface.models import Theme, UserTheme
|
||||||
|
|
||||||
|
from .import_tema.admin import ImportMixin
|
||||||
|
|
||||||
|
|
||||||
class UserInline(admin.TabularInline):
|
class UserInline(admin.TabularInline):
|
||||||
model = UserTheme
|
model = UserTheme
|
||||||
@@ -13,13 +15,14 @@ class UserInline(admin.TabularInline):
|
|||||||
autocomplete_fields = ('user', )
|
autocomplete_fields = ('user', )
|
||||||
|
|
||||||
|
|
||||||
class ThemeAdmin(admin.ModelAdmin):
|
class ThemeAdmin(ImportMixin, admin.ModelAdmin):
|
||||||
inlines = [UserInline, ]
|
inlines = [UserInline, ]
|
||||||
|
|
||||||
list_display = (
|
list_display = (
|
||||||
"name",
|
"name",
|
||||||
"active",
|
"active",
|
||||||
"demo",
|
"demo",
|
||||||
|
"default",
|
||||||
)
|
)
|
||||||
list_editable = ("active",)
|
list_editable = ("active",)
|
||||||
list_per_page = 100
|
list_per_page = 100
|
||||||
@@ -34,6 +37,7 @@ class ThemeAdmin(admin.ModelAdmin):
|
|||||||
"name",
|
"name",
|
||||||
"active",
|
"active",
|
||||||
"demo",
|
"demo",
|
||||||
|
"default",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
from .models import Theme
|
from .models import Theme, UserTheme
|
||||||
|
|
||||||
def get_active_theme(request):
|
def get_active_theme(request):
|
||||||
objs_manager = Theme.objects
|
objs_manager = Theme.objects
|
||||||
|
user_theme_manager = UserTheme.objects
|
||||||
objs_active_qs = objs_manager.filter(active=True)
|
objs_active_qs = objs_manager.filter(active=True)
|
||||||
objs_active_ls = list(objs_active_qs)
|
objs_active_ls = list(objs_active_qs)
|
||||||
objs_active_count = len(objs_active_ls)
|
objs_active_count = len(objs_active_ls)
|
||||||
@@ -17,6 +18,7 @@ def get_active_theme(request):
|
|||||||
obj = objs_active_ls[0]
|
obj = objs_active_ls[0]
|
||||||
|
|
||||||
elif objs_active_count > 1:
|
elif objs_active_count > 1:
|
||||||
|
|
||||||
# for frame_record in inspect.stack():
|
# for frame_record in inspect.stack():
|
||||||
# if frame_record[3]=='get_response':
|
# if frame_record[3]=='get_response':
|
||||||
# request = frame_record[0].f_locals['request']
|
# request = frame_record[0].f_locals['request']
|
||||||
@@ -26,10 +28,15 @@ def get_active_theme(request):
|
|||||||
# request = None
|
# request = None
|
||||||
user = request.user
|
user = request.user
|
||||||
try:
|
try:
|
||||||
obj = objs_active_qs.filter(user=user).first()
|
obj = user_theme_manager.filter(user=user, theme__active=True).first().theme
|
||||||
except:
|
except:
|
||||||
obj = objs_active_ls[-1]
|
objs_default_qs = objs_active_qs.filter(default=True)
|
||||||
obj.set_active()
|
if len(objs_default_qs) == 0:
|
||||||
|
obj = objs_active_qs.first()
|
||||||
|
if obj:
|
||||||
|
obj.set_default()
|
||||||
|
else:
|
||||||
|
obj = objs_default_qs.first()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'theme': obj,
|
'theme': obj,
|
||||||
|
|||||||
@@ -109,12 +109,16 @@ class ImportMixin(admin.ModelAdmin):
|
|||||||
allowed_extensions=[".gif", ".jpg", ".jpeg", ".png", ".svg"]
|
allowed_extensions=[".gif", ".jpg", ".jpeg", ".png", ".svg"]
|
||||||
try:
|
try:
|
||||||
tema_json = [s for s in os.listdir(f'{tempdir}/{lst[0]}') if '.json' in s][0]
|
tema_json = [s for s in os.listdir(f'{tempdir}/{lst[0]}') if '.json' in s][0]
|
||||||
logo = [s for s in os.listdir(f'{tempdir}/{lst[0]}/logo') if any(ele in s for ele in allowed_extensions)][0]
|
logo = [s for s in os.listdir(f'{tempdir}/{lst[0]}/logo') if any(ele in s for ele in allowed_extensions)]
|
||||||
favicon = [s for s in os.listdir(f'{tempdir}/{lst[0]}/favicon') if any(ele in s for ele in allowed_extensions)][0]
|
logo = logo[0] if logo else None
|
||||||
|
favicon = [s for s in os.listdir(f'{tempdir}/{lst[0]}/favicon') if any(ele in s for ele in allowed_extensions)]
|
||||||
|
favicon = favicon[0] if favicon else None
|
||||||
with open(f'{tempdir}/{lst[0]}/{tema_json}', 'r') as temporary_file:
|
with open(f'{tempdir}/{lst[0]}/{tema_json}', 'r') as temporary_file:
|
||||||
result = json.loads(temporary_file.read())
|
result = json.loads(temporary_file.read())
|
||||||
|
if logo:
|
||||||
with open(f'{tempdir}/{lst[0]}/logo/{logo}', 'rb') as temporary_file:
|
with open(f'{tempdir}/{lst[0]}/logo/{logo}', 'rb') as temporary_file:
|
||||||
default_storage.save(f"admin-interface/logo/{temporary_file.name.split('/')[-1]}", temporary_file)
|
default_storage.save(f"admin-interface/logo/{temporary_file.name.split('/')[-1]}", temporary_file)
|
||||||
|
if favicon:
|
||||||
with open(f'{tempdir}/{lst[0]}/favicon/{favicon}', 'rb') as temporary_file:
|
with open(f'{tempdir}/{lst[0]}/favicon/{favicon}', 'rb') as temporary_file:
|
||||||
default_storage.save(f"admin-interface/favicon/{temporary_file.name.split('/')[-1]}", temporary_file)
|
default_storage.save(f"admin-interface/favicon/{temporary_file.name.split('/')[-1]}", temporary_file)
|
||||||
skip_result = False
|
skip_result = False
|
||||||
|
|||||||
@@ -45,5 +45,5 @@ class Migration(migrations.Migration):
|
|||||||
verbose_name="link selected color",
|
verbose_name="link selected color",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.RunPython(default_link_selected),
|
migrations.RunPython(default_link_selected,migrations.RunPython.noop),
|
||||||
]
|
]
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.0.3 on 2023-01-30 14:00
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('admin_interface', '0029_auto_20221025_1559'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='theme',
|
||||||
|
name='default',
|
||||||
|
field=models.BooleanField(default=False, verbose_name='default'),
|
||||||
|
),
|
||||||
|
]
|
||||||
+65
-14
@@ -57,6 +57,7 @@ class Theme(models.Model):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_active_theme():
|
def get_active_theme():
|
||||||
objs_manager = Theme.objects
|
objs_manager = Theme.objects
|
||||||
|
user_theme_manager = UserTheme.objects
|
||||||
objs_active_qs = objs_manager.filter(active=True)
|
objs_active_qs = objs_manager.filter(active=True)
|
||||||
objs_active_ls = list(objs_active_qs)
|
objs_active_ls = list(objs_active_qs)
|
||||||
objs_active_count = len(objs_active_ls)
|
objs_active_count = len(objs_active_ls)
|
||||||
@@ -81,10 +82,15 @@ class Theme(models.Model):
|
|||||||
request = None
|
request = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return objs_active_qs.filter(user=user).first()
|
return user_theme_manager.filter(user=user, theme__active=True).first().theme
|
||||||
except:
|
except:
|
||||||
obj = objs_active_ls[-1]
|
objs_default_qs = objs_active_qs.filter(default=True)
|
||||||
obj.set_active()
|
if len(objs_default_qs) == 0:
|
||||||
|
obj = objs_active_qs.first()
|
||||||
|
if obj:
|
||||||
|
obj.set_default()
|
||||||
|
else:
|
||||||
|
obj = objs_default_qs.first()
|
||||||
|
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
@@ -94,6 +100,9 @@ class Theme(models.Model):
|
|||||||
active = models.BooleanField(default=True, verbose_name=_("active"))
|
active = models.BooleanField(default=True, verbose_name=_("active"))
|
||||||
|
|
||||||
demo = models.BooleanField(default=False, verbose_name=_("is demo"))
|
demo = models.BooleanField(default=False, verbose_name=_("is demo"))
|
||||||
|
|
||||||
|
default = models.BooleanField(default=False, verbose_name="default")
|
||||||
|
|
||||||
users = models.ManyToManyField('auth.User', through=UserTheme)
|
users = models.ManyToManyField('auth.User', through=UserTheme)
|
||||||
|
|
||||||
title = models.CharField(
|
title = models.CharField(
|
||||||
@@ -172,8 +181,14 @@ class Theme(models.Model):
|
|||||||
default=True, verbose_name=_("active")
|
default=True, verbose_name=_("active")
|
||||||
)
|
)
|
||||||
language_chooser_display_choices = (
|
language_chooser_display_choices = (
|
||||||
("code", _("code")),
|
(
|
||||||
("name", _("name")),
|
"code",
|
||||||
|
_("code"),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"name",
|
||||||
|
_("name"),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
language_chooser_display = models.CharField(
|
language_chooser_display = models.CharField(
|
||||||
max_length=10,
|
max_length=10,
|
||||||
@@ -326,15 +341,42 @@ class Theme(models.Model):
|
|||||||
verbose_name=_("background color"),
|
verbose_name=_("background color"),
|
||||||
)
|
)
|
||||||
related_modal_background_opacity_choices = (
|
related_modal_background_opacity_choices = (
|
||||||
("0.1", "10%"),
|
(
|
||||||
("0.2", "20%"),
|
"0.1",
|
||||||
("0.3", "30%"),
|
"10%",
|
||||||
("0.4", "40%"),
|
),
|
||||||
("0.5", "50%"),
|
(
|
||||||
("0.6", "60%"),
|
"0.2",
|
||||||
("0.7", "70%"),
|
"20%",
|
||||||
("0.8", "80%"),
|
),
|
||||||
("0.9", "90%"),
|
(
|
||||||
|
"0.3",
|
||||||
|
"30%",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"0.4",
|
||||||
|
"40%",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"0.5",
|
||||||
|
"50%",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"0.6",
|
||||||
|
"60%",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"0.7",
|
||||||
|
"70%",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"0.8",
|
||||||
|
"80%",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"0.9",
|
||||||
|
"90%",
|
||||||
|
),
|
||||||
)
|
)
|
||||||
related_modal_background_opacity = models.CharField(
|
related_modal_background_opacity = models.CharField(
|
||||||
max_length=5,
|
max_length=5,
|
||||||
@@ -375,6 +417,15 @@ class Theme(models.Model):
|
|||||||
self.active = True
|
self.active = True
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
def set_default(self):
|
||||||
|
self.default = True
|
||||||
|
self.save()
|
||||||
|
|
||||||
|
def save(self):
|
||||||
|
if self.default:
|
||||||
|
Theme.objects.update(default=False)
|
||||||
|
super().save()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = "admin_interface"
|
app_label = "admin_interface"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var windowRef = window;
|
var windowRef = window;
|
||||||
var windowRefProxy;
|
|
||||||
var windowName, widgetName;
|
var windowName, widgetName;
|
||||||
var openerRef = windowRef.opener;
|
var openerRef = windowRef.opener;
|
||||||
if (!openerRef) {
|
if (!openerRef) {
|
||||||
@@ -15,14 +14,13 @@
|
|||||||
// django < 3.1 compatibility
|
// django < 3.1 compatibility
|
||||||
widgetName = openerRef.id_to_windowname(widgetName);
|
widgetName = openerRef.id_to_windowname(widgetName);
|
||||||
}
|
}
|
||||||
windowRefProxy = {
|
windowRef = {
|
||||||
name: widgetName,
|
name: widgetName,
|
||||||
location: windowRef.location,
|
location: windowRef.location,
|
||||||
close: function() {
|
close: function() {
|
||||||
openerRef.dismissRelatedObjectModal();
|
openerRef.dismissRelatedObjectModal();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
windowRef = windowRefProxy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// default django popup_response.js
|
// default django popup_response.js
|
||||||
|
|||||||
+1
-1
@@ -1507,7 +1507,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get element position relative to viewport
|
// Get element postion relative to viewport
|
||||||
_getOffset: function(isLarge) {
|
_getOffset: function(isLarge) {
|
||||||
var el;
|
var el;
|
||||||
if(isLarge) {
|
if(isLarge) {
|
||||||
|
|||||||
@@ -136,30 +136,23 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
|
|||||||
window.presentRelatedObjectModalOnClickOn = presentRelatedObjectModalOnClickOn;
|
window.presentRelatedObjectModalOnClickOn = presentRelatedObjectModalOnClickOn;
|
||||||
|
|
||||||
// django 1.7 compatibility
|
// django 1.7 compatibility
|
||||||
|
// $('a.add-another').removeAttr('onclick').click({ lookup:false }, presentRelatedObjectModal);
|
||||||
presentRelatedObjectModalOnClickOn('a.add-another');
|
presentRelatedObjectModalOnClickOn('a.add-another');
|
||||||
|
|
||||||
// django 1.8 and above
|
// django 1.8 and above
|
||||||
|
// $('a.related-widget-wrapper-link').click({ lookup:false }, presentRelatedObjectModal);
|
||||||
presentRelatedObjectModalOnClickOn('a.related-widget-wrapper-link');
|
presentRelatedObjectModalOnClickOn('a.related-widget-wrapper-link');
|
||||||
|
|
||||||
// raw_id_fields support
|
// raw_id_fields support
|
||||||
|
// $('a.related-lookup').unbind('click').click({ lookup:true }, presentRelatedObjectModal);
|
||||||
presentRelatedObjectModalOnClickOn('a.related-lookup', true);
|
presentRelatedObjectModalOnClickOn('a.related-lookup', true);
|
||||||
|
|
||||||
// django-dynamic-raw-id support - #61
|
// django-dynamic-raw-id support - #61
|
||||||
// https://github.com/lincolnloop/django-dynamic-raw-id
|
// https://github.com/lincolnloop/django-dynamic-raw-id
|
||||||
presentRelatedObjectModalOnClickOn('a.dynamic_raw_id-related-lookup', true);
|
presentRelatedObjectModalOnClickOn('a.dynamic_raw_id-related-lookup', true);
|
||||||
|
|
||||||
// django-streamfield support
|
// show_change_link=True support
|
||||||
// https://github.com/raagin/django-streamfield/
|
presentRelatedObjectModalOnClickOn('a.inlinechangelink');
|
||||||
presentRelatedObjectModalOnClickOn('.streamfield_app a.stream-btn[href*="_popup=1"]');
|
|
||||||
// Vanilla js for catching the click during capture phase for anticipating Vue.js listener.
|
|
||||||
document.addEventListener('click', function(event) {
|
|
||||||
// console.log('click intercepted before Vue.');
|
|
||||||
if (event.target.matches('.streamfield_app a.stream-btn[href*="_popup=1"]')) {
|
|
||||||
event.stopImmediatePropagation();
|
|
||||||
event.preventDefault();
|
|
||||||
$(event.target).trigger('click');
|
|
||||||
}
|
|
||||||
}, { capture: true });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
})(django.jQuery);
|
})(django.jQuery);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ CKEDITOR.skin.name = 'husky';
|
|||||||
// the complete list:
|
// the complete list:
|
||||||
// http://docs.ckeditor.com/#!/api/CKEDITOR.env
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.env
|
||||||
//
|
//
|
||||||
// Internet explorer is an exception and the browser version is also accepted
|
// Internet explorer is an expection and the browser version is also accepted
|
||||||
// (ie7, ie8, ie9, ie10), as well as a special name for IE in Quirks mode (iequirks).
|
// (ie7, ie8, ie9, ie10), as well as a special name for IE in Quirks mode (iequirks).
|
||||||
//
|
//
|
||||||
// The available browser specific files must be set separately for editor.css
|
// The available browser specific files must be set separately for editor.css
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
(function() {
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var windowRef = window;
|
|
||||||
var openerRef = windowRef.parent;
|
|
||||||
|
|
||||||
var initData = JSON.parse(document.getElementById('django-admin-popup-response-constants').dataset.popupResponse);
|
|
||||||
switch (initData.action) {
|
|
||||||
case 'change':
|
|
||||||
openerRef.streamapps[initData.app_id].updateBlock(initData.block_id, initData.instance_id);
|
|
||||||
openerRef.dismissRelatedObjectModal();
|
|
||||||
break;
|
|
||||||
case 'delete':
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
openerRef.streamapps[initData.app_id].updateBlock(initData.block_id, initData.instance_id);
|
|
||||||
openerRef.dismissRelatedObjectModal();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -2,89 +2,18 @@
|
|||||||
{% load i18n static admin_interface_tags %}
|
{% load i18n static admin_interface_tags %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% get_admin_interface_theme as theme %}
|
|
||||||
{% if title %}{{ title }} | {% endif %}{% if theme.title %}{% trans theme.title %}{% else %}{{ site_title|default:_('Django administration') }}{% endif %}
|
{% if title %}{{ title }} | {% endif %}{% if theme.title %}{% trans theme.title %}{% else %}{{ site_title|default:_('Django administration') }}{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extrastyle %}
|
{% block extrastyle %}
|
||||||
{% get_admin_interface_theme as theme %}
|
|
||||||
{% get_admin_interface_nocache as version_md5_cache %}
|
|
||||||
{% get_current_language as current_lang %}
|
{% get_current_language as current_lang %}
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
:root .admin-interface {
|
|
||||||
--admin-interface-title-color: {{ theme.title_color }};
|
|
||||||
--admin-interface-logo-color: {{ theme.logo_color }};
|
|
||||||
--admin-interface-logo-default-background-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg width='104px' height='36px' viewBox='0 0 104 36' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns'><g id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' sketch:type='MSPage'><g id='logo-django' sketch:type='MSArtboardGroup' transform='translate(-8.000000, -5.000000)' fill='{{ theme.logo_color|urlencode }}'><path d='M20.2602817,5 L25.9509859,5 L25.9509859,31.0824248 C23.0360563,31.6338042 20.8901408,31.8507285 18.5684507,31.8507285 C11.6180282,31.8434735 8,28.7383366 8,22.7747325 C8,17.0287781 11.8377465,13.2997118 17.7847887,13.2997118 C18.7076056,13.2997118 19.4107042,13.3722617 20.2602817,13.5899115 L20.2602817,5 L20.2602817,5 Z M20.2602817,18.1242821 C19.5938028,17.9066323 19.044507,17.8340823 18.3414085,17.8340823 C15.4630986,17.8340823 13.8005634,19.5897906 13.8005634,22.6666331 C13.8005634,25.6622196 15.3898592,27.316358 18.3047887,27.316358 C18.9346479,27.316358 19.4473239,27.2808085 20.2602817,27.1719836 L20.2602817,18.1242821 L20.2602817,18.1242821 Z M34.9960563,13.6987364 L34.9960563,26.7577235 C34.9960563,31.2550936 34.6591549,33.417807 33.6704225,35.2823401 C32.7476056,37.0750489 31.531831,38.2053768 29.0197183,39.453961 L23.7391549,36.9654985 C26.2512676,35.7981701 27.4670423,34.7665101 28.2433803,33.1921767 C29.056338,31.5822938 29.3126761,29.7177606 29.3126761,24.8133855 L29.3126761,13.6987364 L34.9960563,13.6987364 Z M29.3126761,5.02901997 L35.0033803,5.02901997 L35.0033803,10.8112493 L29.3126761,10.8112493 L29.3126761,5.02901997 Z M38.4302535,14.9828702 C40.9430986,13.8148163 43.3453521,13.2997118 45.9673239,13.2997118 C48.8895775,13.2997118 50.8077183,14.0687411 51.6580282,15.5705246 C52.1340845,16.4121037 52.2878873,17.5076077 52.2878873,19.8509704 L52.2878873,31.2993491 C49.7398873,31.6620987 46.5239437,31.922553 44.1649014,31.922553 C39.3970141,31.922553 37.2584225,30.2756696 37.2584225,26.6198787 C37.2584225,22.6659076 40.1008451,20.8376494 47.079831,20.2565245 L47.079831,19.0159207 C47.079831,17.9929667 46.559831,17.6229621 45.124338,17.6229621 C43.0223662,17.6229621 40.6567324,18.2106165 38.4375775,19.3423954 L38.4302535,14.9828702 Z M47.336169,23.9420608 C43.571662,24.3048105 42.3485634,24.8931904 42.3485634,26.3579734 C42.3485634,27.4549284 43.051662,27.9693073 44.604338,27.9693073 C45.4539155,27.9693073 46.2302535,27.8967574 47.3354366,27.7153826 L47.3354366,23.9420608 L47.336169,23.9420608 Z M55.056338,14.5765906 C58.4180282,13.6987364 61.1857465,13.2997118 63.9908169,13.2997118 C66.9057465,13.2997118 69.0157746,13.9599162 70.2674366,15.2367949 C71.4458592,16.4411237 71.8208451,17.7615324 71.8208451,20.5764696 L71.8208451,31.6258237 L66.1294085,31.6258237 L66.1294085,20.8013744 C66.1294085,18.6393866 65.3896901,17.8340823 63.3616901,17.8340823 C62.5846197,17.8340823 61.8822535,17.9066323 60.7397183,18.2403619 L60.7397183,31.6265492 L55.056338,31.6265492 L55.056338,14.5765906 Z M74.0326761,34.7012152 C76.0240563,35.7241692 78.0169014,36.1964692 80.1261972,36.1964692 C83.8540845,36.1964692 85.4433803,34.6946857 85.4433803,31.1107193 L85.4433803,31.0018944 C84.3374648,31.5460188 83.223493,31.7716491 81.7513803,31.7716491 C76.764507,31.7716491 73.5932394,28.5141573 73.5932394,23.3558574 C73.5932394,16.9496987 78.2878873,13.3294573 86.5932394,13.3294573 C89.0321127,13.3294573 91.2878873,13.583382 94.0189859,14.1347615 L92.0708169,18.1975575 C90.5562254,17.9073578 91.9463099,18.1540275 90.804507,18.0452026 L90.804507,18.6328571 L90.8777465,21.0124947 L90.9136338,24.0886117 C90.9509859,24.8583664 90.9509859,25.6259447 90.988338,26.3956994 L90.988338,27.9330324 C90.988338,32.7648576 90.5774648,35.0291409 89.3616901,36.900929 C87.5892958,39.6425908 84.5212958,41 80.1620845,41 C77.943662,41 76.0240563,40.6727998 74.0326761,39.9030451 L74.0326761,34.7012152 L74.0326761,34.7012152 Z M85.3335211,17.8703573 L85.1504225,17.8703573 L84.7395493,17.8703573 C83.6336338,17.8340823 82.3380282,18.1242821 81.4510986,18.6756615 C80.0895775,19.4446908 79.3872113,20.8376494 79.3872113,22.8110074 C79.3872113,25.6252192 80.7934085,27.2365531 83.3055211,27.2365531 C84.0811268,27.2365531 84.7117183,27.0921787 85.4441127,26.8738034 L85.4441127,26.4667983 L85.4441127,24.9294653 C85.4441127,24.269261 85.4067606,23.5365067 85.4067606,22.7674775 L85.3708732,20.17019 L85.3335211,18.3056569 L85.3335211,17.8703573 Z M102.84507,13.2271619 C108.528451,13.2271619 112,16.7748534 112,22.5208077 C112,28.4118619 108.382704,32.1039278 102.617296,32.1039278 C96.9265915,32.1039278 93.4176901,28.5569618 93.4176901,22.8480079 C93.4272113,16.9199532 97.044507,13.2271619 102.84507,13.2271619 Z M102.727887,27.5623023 C104.910423,27.5623023 106.199437,25.7710445 106.199437,22.6586526 C106.199437,19.5825356 104.94631,17.7542774 102.765239,17.7542774 C100.509465,17.7542774 99.2189859,Line truncated
|
|
||||||
--admin-interface-env-color: {{ theme.env_color }};
|
|
||||||
--admin-interface-header-background-color: {{ theme.css_header_background_color }};
|
|
||||||
--admin-interface-header-text-color: {{ theme.css_header_text_color }};
|
|
||||||
--admin-interface-header-link-color: {{ theme.css_header_link_color }};
|
|
||||||
--admin-interface-header-link-hover-color: {{ theme.css_header_link_hover_color }};
|
|
||||||
--admin-interface-module-background-color: {{ theme.css_module_background_color }};
|
|
||||||
--admin-interface-module-background-selected-color: {{ theme.css_module_background_selected_color }};
|
|
||||||
--admin-interface-module-text-color: {{ theme.css_module_text_color }};
|
|
||||||
--admin-interface-module-link-color: {{ theme.css_module_link_color }};
|
|
||||||
--admin-interface-module-link-selected-color: {{ theme.css_module_link_selected_color }};
|
|
||||||
--admin-interface-module-link-hover-color: {{ theme.css_module_link_hover_color }};
|
|
||||||
--admin-interface-generic-link-color: {{ theme.css_generic_link_color }};
|
|
||||||
--admin-interface-generic-link-hover-color: {{ theme.css_generic_link_hover_color }};
|
|
||||||
--admin-interface-save-button-background-color: {{ theme.css_save_button_background_color }};
|
|
||||||
--admin-interface-save-button-background-hover-color: {{ theme.css_save_button_background_hover_color }};
|
|
||||||
--admin-interface-save-button-text-color: {{ theme.css_save_button_text_color }};
|
|
||||||
--admin-interface-delete-button-background-color: {{ theme.css_delete_button_background_color }};
|
|
||||||
--admin-interface-delete-button-background-hover-color: {{ theme.css_delete_button_background_hover_color }};
|
|
||||||
--admin-interface-delete-button-text-color: {{ theme.css_delete_button_text_color }};
|
|
||||||
--admin-interface-related-modal-background-color: {{ theme.related_modal_background_color }};
|
|
||||||
--admin-interface-related-modal-background-opacity: {{ theme.related_modal_background_opacity }};
|
|
||||||
|
|
||||||
{% if theme.css_header_background_color != theme.css_module_background_color %}
|
|
||||||
--admin-interface-main-border-top: 10px solid var(--admin-interface-module-background-color);
|
|
||||||
{% else %}
|
|
||||||
--admin-interface-main-border-top: 0px;
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if theme.logo_max_width > 0 %}
|
|
||||||
--admin-interface-logo-max-width: min({{ theme.logo_max_width }}px, 100%);
|
|
||||||
{% else %}
|
|
||||||
--admin-interface-logo-max-width: 100%;
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if theme.logo_max_height > 0 %}
|
|
||||||
--admin-interface-logo-max-height: {{ theme.logo_max_height }}px;
|
|
||||||
{% else %}
|
|
||||||
--admin-interface-logo-max-height: unset;
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if theme.related_modal_rounded_corners %}
|
|
||||||
--admin-interface-related-modal-border-radius: 4px;
|
|
||||||
{% else %}
|
|
||||||
--admin-interface-related-modal-border-radius: 0px;
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if theme.css_module_rounded_corners %}
|
|
||||||
--admin-interface-module-border-radius: 4px;
|
|
||||||
--admin-interface-jsoneditor-border-radius: var(--admin-interface-module-border-radius);
|
|
||||||
--admin-interface-jsoneditor-overflow: hidden;
|
|
||||||
{% else %}
|
|
||||||
--admin-interface-module-border-radius: 0px;
|
|
||||||
--admin-interface-jsoneditor-border-radius: var(--admin-interface-module-border-radius);
|
|
||||||
--admin-interface-jsoneditor-overflow: unset;
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not theme.related_modal_close_button_visible %}
|
|
||||||
--admin-interface-related-modal-close-button-display: none;
|
|
||||||
{% else %}
|
|
||||||
--admin-interface-related-modal-close-button-display: unset;
|
|
||||||
{% endif %}
|
|
||||||
}
|
|
||||||
{% include "admin_interface/css/admin-interface.css" %}
|
{% include "admin_interface/css/admin-interface.css" %}
|
||||||
{% include "admin_interface/css/admin-interface-fix.css" %}
|
{% include "admin_interface/css/admin-interface-fix.css" %}
|
||||||
{% include "admin_interface/css/form-controls.css" %}
|
{% include "admin_interface/css/form-controls.css" %}
|
||||||
{% include "admin_interface/css/language-chooser.css" %}
|
|
||||||
{% include "admin_interface/css/list-filter-dropdown.css" %}
|
{% include "admin_interface/css/list-filter-dropdown.css" %}
|
||||||
{% include "admin_interface/css/recent-actions.css" %}
|
{% include "admin_interface/css/recent-actions.css" %}
|
||||||
{% include "admin_interface/css/related-modal.css" %}
|
{% include "admin_interface/css/related-modal.css" %}
|
||||||
{% include "admin_interface/css/streamfield.css" %}
|
|
||||||
{% include "admin_interface/css/jquery.ui.tabs.css" %}
|
{% include "admin_interface/css/jquery.ui.tabs.css" %}
|
||||||
{% include "admin_interface/css/modeltranslation.css" %}
|
{% include "admin_interface/css/modeltranslation.css" %}
|
||||||
{% include "admin_interface/css/sorl-thumbnail.css" %}
|
{% include "admin_interface/css/sorl-thumbnail.css" %}
|
||||||
@@ -103,12 +32,10 @@
|
|||||||
|
|
||||||
{% block blockbots %}
|
{% block blockbots %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
{% get_admin_interface_theme as theme %}
|
|
||||||
{% get_admin_interface_nocache as version_md5_cache %}
|
|
||||||
{# https://github.com/elky/django-flat-responsive#important-note #}
|
{# https://github.com/elky/django-flat-responsive#important-note #}
|
||||||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/responsive.css' %}?nocache={{ version_md5_cache }}">
|
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/responsive.css' %}">
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/responsive_rtl.css' %}?nocache={{ version_md5_cache }}">
|
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/responsive_rtl.css' %}">
|
||||||
{% include "admin_interface/favicon.html" %}
|
{% include "admin_interface/favicon.html" %}
|
||||||
{% include "admin_interface/foldable-apps.html" %}
|
{% include "admin_interface/foldable-apps.html" %}
|
||||||
{% include "admin_interface/related-modal.html" %}
|
{% include "admin_interface/related-modal.html" %}
|
||||||
@@ -119,17 +46,14 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block bodyclass %}
|
{% block bodyclass %}
|
||||||
{% get_admin_interface_theme as theme %}
|
|
||||||
flat-theme admin-interface
|
flat-theme admin-interface
|
||||||
{% if theme.name %} {{ theme.name|slugify }}-theme {% endif %}
|
{% if theme.name %} {{ theme.name|slugify }}-theme {% endif %}
|
||||||
{% if theme.foldable_apps %} foldable-apps {% endif %}
|
{% if theme.foldable_apps %} foldable-apps {% endif %}
|
||||||
{% if theme.form_submit_sticky %} sticky-submit {% endif %}
|
{% if theme.form_submit_sticky %} sticky-submit {% endif %}
|
||||||
{% if theme.form_pagination_sticky %} sticky-pagination {% endif %}
|
{% if theme.form_pagination_sticky %} sticky-pagination {% endif %}
|
||||||
{% if theme.list_filter_sticky %} list-filter-sticky {% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block branding %}
|
{% block branding %}
|
||||||
{% get_admin_interface_theme as theme %}
|
|
||||||
<h1 id="site-name">
|
<h1 id="site-name">
|
||||||
<a href="{% url 'admin:index' %}">
|
<a href="{% url 'admin:index' %}">
|
||||||
{% if theme.logo_visible %}
|
{% if theme.logo_visible %}
|
||||||
@@ -147,7 +71,6 @@ flat-theme admin-interface
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block welcome-msg %}
|
{% block welcome-msg %}
|
||||||
{% get_admin_interface_theme as theme %}
|
|
||||||
{% if theme.language_chooser_active %}
|
{% if theme.language_chooser_active %}
|
||||||
{% get_admin_interface_languages as languages %}
|
{% get_admin_interface_languages as languages %}
|
||||||
{% include "admin_interface/language_chooser.html" %}
|
{% include "admin_interface/language_chooser.html" %}
|
||||||
|
|||||||
@@ -42,13 +42,41 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root .admin-interface {
|
||||||
|
--admin-interface-title-color: {{ theme.title_color }};
|
||||||
|
--admin-interface-logo-color: {{ theme.logo_color }};
|
||||||
|
--admin-interface-env-color: {{ theme.env_color }};
|
||||||
|
--admin-interface-header-background-color: {{ theme.css_header_background_color }};
|
||||||
|
--admin-interface-header-text-color: {{ theme.css_header_text_color }};
|
||||||
|
--admin-interface-header-link-color: {{ theme.css_header_link_color }};
|
||||||
|
--admin-interface-header-link_hover-color: {{ theme.css_header_link_hover_color }};
|
||||||
|
--admin-interface-module-background-color: {{ theme.css_module_background_color }};
|
||||||
|
--admin-interface-module-background-selected-color: {{ theme.css_module_background_selected_color }};
|
||||||
|
--admin-interface-module-text-color: {{ theme.css_module_text_color }};
|
||||||
|
--admin-interface-module-link-color: {{ theme.css_module_link_color }};
|
||||||
|
--admin-interface-module-link-selected-color: {{ theme.css_module_link_selected_color }};
|
||||||
|
--admin-interface-module-link-hover-color: {{ theme.css_module_link_hover_color }};
|
||||||
|
--admin-interface-generic-link-color: {{ theme.css_generic_link_color }};
|
||||||
|
--admin-interface-generic-link-hover-color: {{ theme.css_generic_link_hover_color }};
|
||||||
|
--admin-interface-save-button-background-color: {{ theme.css_save_button_background_color }};
|
||||||
|
--admin-interface-save-button-background-hover-color: {{ theme.css_save_button_background_hover_color }};
|
||||||
|
--admin-interface-save-button-text-color: {{ theme.css_save_button_text_color }};
|
||||||
|
--admin-interface-delete-button-background-color: {{ theme.css_delete_button_background_color }};
|
||||||
|
--admin-interface-delete-button-background-hover-color: {{ theme.css_delete_button_background_hover_color }};
|
||||||
|
--admin-interface-delete-button-text-color: {{ theme.css_delete_button_text_color }};
|
||||||
|
--admin-interface-related-modal-background-color: {{ theme.related_modal_background_color }};
|
||||||
|
--admin-interface-related-modal-background-opacity: {{ theme.related_modal_background_opacity }};
|
||||||
|
}
|
||||||
|
|
||||||
.admin-interface #header {
|
.admin-interface #header {
|
||||||
background: var(--admin-interface-header-background-color);
|
background: {{ theme.css_header_background_color }};
|
||||||
color: var(--admin-interface-header-text-color);
|
color: {{ theme.css_header_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #header + #main {
|
.admin-interface #header + #main {
|
||||||
border-top: var(--admin-interface-main-border-top);
|
{% if theme.css_header_background_color != theme.css_module_background_color %}
|
||||||
|
border-top: 10px solid {{ theme.css_module_background_color }};
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .environment-label {
|
.admin-interface .environment-label {
|
||||||
@@ -59,7 +87,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
background-color: var(--admin-interface-env-color);
|
background-color: {{ theme.env_color }};
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -71,7 +99,7 @@
|
|||||||
content: "{{ theme.env_name }} - ";
|
content: "{{ theme.env_name }} - ";
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width:1024px) {
|
||||||
.admin-interface .environment-label::after {
|
.admin-interface .environment-label::after {
|
||||||
content: "{{ theme.env_name }}";
|
content: "{{ theme.env_name }}";
|
||||||
}
|
}
|
||||||
@@ -84,14 +112,12 @@
|
|||||||
right: 15px;
|
right: 15px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
@media (min-width:768px) {
|
||||||
@media (min-width: 768px) {
|
|
||||||
.admin-interface .language-chooser {
|
.admin-interface .language-chooser {
|
||||||
right: 30px;
|
right: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (min-width:1024px) {
|
||||||
@media (min-width: 1024px) {
|
|
||||||
.admin-interface .language-chooser {
|
.admin-interface .language-chooser {
|
||||||
position: static;
|
position: static;
|
||||||
float: right;
|
float: right;
|
||||||
@@ -110,7 +136,7 @@
|
|||||||
.admin-interface #branding h1,
|
.admin-interface #branding h1,
|
||||||
.admin-interface.login #header h1,
|
.admin-interface.login #header h1,
|
||||||
.admin-interface.login #header h1 a {
|
.admin-interface.login #header h1 a {
|
||||||
color: var(--admin-interface-title-color);
|
color: {{ theme.title_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #branding h1 a {
|
.admin-interface #branding h1 a {
|
||||||
@@ -122,125 +148,137 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-size: 104px 36px;
|
background-size: 104px 36px;
|
||||||
background-image: var(--admin-interface-logo-default-background-image);
|
background-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg width='104px' height='36px' viewBox='0 0 104 36' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns'><g id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' sketch:type='MSPage'><g id='logo-django' sketch:type='MSArtboardGroup' transform='translate(-8.000000, -5.000000)' fill='{{ theme.logo_color|urlencode }}'><path d='M20.2602817,5 L25.9509859,5 L25.9509859,31.0824248 C23.0360563,31.6338042 20.8901408,31.8507285 18.5684507,31.8507285 C11.6180282,31.8434735 8,28.7383366 8,22.7747325 C8,17.0287781 11.8377465,13.2997118 17.7847887,13.2997118 C18.7076056,13.2997118 19.4107042,13.3722617 20.2602817,13.5899115 L20.2602817,5 L20.2602817,5 Z M20.2602817,18.1242821 C19.5938028,17.9066323 19.044507,17.8340823 18.3414085,17.8340823 C15.4630986,17.8340823 13.8005634,19.5897906 13.8005634,22.6666331 C13.8005634,25.6622196 15.3898592,27.316358 18.3047887,27.316358 C18.9346479,27.316358 19.4473239,27.2808085 20.2602817,27.1719836 L20.2602817,18.1242821 L20.2602817,18.1242821 Z M34.9960563,13.6987364 L34.9960563,26.7577235 C34.9960563,31.2550936 34.6591549,33.417807 33.6704225,35.2823401 C32.7476056,37.0750489 31.531831,38.2053768 29.0197183,39.453961 L23.7391549,36.9654985 C26.2512676,35.7981701 27.4670423,34.7665101 28.2433803,33.1921767 C29.056338,31.5822938 29.3126761,29.7177606 29.3126761,24.8133855 L29.3126761,13.6987364 L34.9960563,13.6987364 Z M29.3126761,5.02901997 L35.0033803,5.02901997 L35.0033803,10.8112493 L29.3126761,10.8112493 L29.3126761,5.02901997 Z M38.4302535,14.9828702 C40.9430986,13.8148163 43.3453521,13.2997118 45.9673239,13.2997118 C48.8895775,13.2997118 50.8077183,14.0687411 51.6580282,15.5705246 C52.1340845,16.4121037 52.2878873,17.5076077 52.2878873,19.8509704 L52.2878873,31.2993491 C49.7398873,31.6620987 46.5239437,31.922553 44.1649014,31.922553 C39.3970141,31.922553 37.2584225,30.2756696 37.2584225,26.6198787 C37.2584225,22.6659076 40.1008451,20.8376494 47.079831,20.2565245 L47.079831,19.0159207 C47.079831,17.9929667 46.559831,17.6229621 45.124338,17.6229621 C43.0223662,17.6229621 40.6567324,18.2106165 38.4375775,19.3423954 L38.4302535,14.9828702 Z M47.336169,23.9420608 C43.571662,24.3048105 42.3485634,24.8931904 42.3485634,26.3579734 C42.3485634,27.4549284 43.051662,27.9693073 44.604338,27.9693073 C45.4539155,27.9693073 46.2302535,27.8967574 47.3354366,27.7153826 L47.3354366,23.9420608 L47.336169,23.9420608 Z M55.056338,14.5765906 C58.4180282,13.6987364 61.1857465,13.2997118 63.9908169,13.2997118 C66.9057465,13.2997118 69.0157746,13.9599162 70.2674366,15.2367949 C71.4458592,16.4411237 71.8208451,17.7615324 71.8208451,20.5764696 L71.8208451,31.6258237 L66.1294085,31.6258237 L66.1294085,20.8013744 C66.1294085,18.6393866 65.3896901,17.8340823 63.3616901,17.8340823 C62.5846197,17.8340823 61.8822535,17.9066323 60.7397183,18.2403619 L60.7397183,31.6265492 L55.056338,31.6265492 L55.056338,14.5765906 Z M74.0326761,34.7012152 C76.0240563,35.7241692 78.0169014,36.1964692 80.1261972,36.1964692 C83.8540845,36.1964692 85.4433803,34.6946857 85.4433803,31.1107193 L85.4433803,31.0018944 C84.3374648,31.5460188 83.223493,31.7716491 81.7513803,31.7716491 C76.764507,31.7716491 73.5932394,28.5141573 73.5932394,23.3558574 C73.5932394,16.9496987 78.2878873,13.3294573 86.5932394,13.3294573 C89.0321127,13.3294573 91.2878873,13.583382 94.0189859,14.1347615 L92.0708169,18.1975575 C90.5562254,17.9073578 91.9463099,18.1540275 90.804507,18.0452026 L90.804507,18.6328571 L90.8777465,21.0124947 L90.9136338,24.0886117 C90.9509859,24.8583664 90.9509859,25.6259447 90.988338,26.3956994 L90.988338,27.9330324 C90.988338,32.7648576 90.5774648,35.0291409 89.3616901,36.900929 C87.5892958,39.6425908 84.5212958,41 80.1620845,41 C77.943662,41 76.0240563,40.6727998 74.0326761,39.9030451 L74.0326761,34.7012152 L74.0326761,34.7012152 Z M85.3335211,17.8703573 L85.1504225,17.8703573 L84.7395493,17.8703573 C83.6336338,17.8340823 82.3380282,18.1242821 81.4510986,18.6756615 C80.0895775,19.4446908 79.3872113,20.8376494 79.3872113,22.8110074 C79.3872113,25.6252192 80.7934085,27.2365531 83.3055211,27.2365531 C84.0811268,27.2365531 84.7117183,27.0921787 85.4441127,26.8738034 L85.4441127,26.4667983 L85.4441127,24.9294653 C85.4441127,24.269261 85.4067606,23.5365067 85.4067606,22.7674775 L85.3708732,20.17019 L85.3335211,18.3056569 L85.3335211,17.8703573 Z M102.84507,13.2271619 C108.528451,13.2271619 112,16.7748534 112,22.5208077 C112,28.4118619 108.382704,32.1039278 102.617296,32.1039278 C96.9265915,32.1039278 93.4176901,28.5569618 93.4176901,22.8480079 C93.4272113,16.9199532 97.044507,13.2271619 102.84507,13.2271619 Z M102.727887,27.5623023 C104.910423,27.5623023 106.199437,25.7710445 106.199437,22.6586526 C106.199437,19.5825356 104.94631,17.7542774 102.765239,17.7542774 C100.509465,17.7542774 99.2189859,19.5462607 99.2189859,22.6586526 C99.21Line truncated
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #branding h1 img.logo,
|
.admin-interface #branding h1 img.logo,
|
||||||
.admin-interface.login #header #branding h1 img.logo {
|
.admin-interface.login #header #branding h1 img.logo {
|
||||||
max-width: var(--admin-interface-logo-max-width);
|
{% if theme.logo_max_width > 0 %}
|
||||||
max-height: var(--admin-interface-logo-max-height);
|
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;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #header #user-tools a {
|
.admin-interface #header #user-tools a,
|
||||||
color: var(--admin-interface-header-link-color);
|
.admin-interface #header #user-tools button {
|
||||||
|
color:{{ theme.css_header_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #header #user-tools a:hover,
|
.admin-interface #header #user-tools a:hover,
|
||||||
.admin-interface #header #user-tools a:active {
|
.admin-interface #header #user-tools a:active,
|
||||||
color: var(--admin-interface-header-link-hover-color);
|
.admin-interface #header #user-tools button:active,
|
||||||
border-bottom-color: rgba(255, 255, 255, 0.5);
|
.admin-interface #header #user-tools button:hover {
|
||||||
|
color:{{ theme.css_header_link_hover_color }};
|
||||||
|
border-bottom-color:rgba(255, 255, 255, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #nav-sidebar .current-app .section:link,
|
.admin-interface #nav-sidebar .current-app .section:link,
|
||||||
.admin-interface #nav-sidebar .current-app .section:visited {
|
.admin-interface #nav-sidebar .current-app .section:visited {
|
||||||
color: var(--admin-interface-module-link-selected-color);
|
color: {{ theme.css_module_link_selected_color }};
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #nav-sidebar .current-app .section:focus,
|
.admin-interface #nav-sidebar .current-app .section:focus,
|
||||||
.admin-interface #nav-sidebar .current-app .section:hover {
|
.admin-interface #nav-sidebar .current-app .section:hover {
|
||||||
color: var(--admin-interface-module-link-hover-color);
|
color: {{ theme.css_module_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #nav-sidebar .current-model {
|
.admin-interface #nav-sidebar .current-model {
|
||||||
background: var(--admin-interface-module-background-selected-color);
|
background: {{ theme.css_module_background_selected_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #changelist table tbody tr.selected {
|
.admin-interface #changelist table tbody tr.selected {
|
||||||
background-color: var(--admin-interface-module-background-selected-color);
|
background-color: {{ theme.css_module_background_selected_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .module h2,
|
.admin-interface .module h2,
|
||||||
.admin-interface .module caption,
|
.admin-interface .module caption,
|
||||||
.admin-interface .module.filtered h2 {
|
.admin-interface .module.filtered h2 {
|
||||||
background: var(--admin-interface-module-background-color);
|
background:{{ theme.css_module_background_color }};
|
||||||
color: var(--admin-interface-module-text-color);
|
color:{{ theme.css_module_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .module a.section:link,
|
.admin-interface .module a.section:link,
|
||||||
.admin-interface .module a.section:visited {
|
.admin-interface .module a.section:visited {
|
||||||
color: var(--admin-interface-module-link-color);
|
color:{{ theme.css_module_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .module a.section:active,
|
.admin-interface .module a.section:active,
|
||||||
.admin-interface .module a.section:hover {
|
.admin-interface .module a.section:hover {
|
||||||
color: var(--admin-interface-module-link-hover-color);
|
color:{{ theme.css_module_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface div.breadcrumbs {
|
.admin-interface div.breadcrumbs {
|
||||||
background: var(--admin-interface-module-background-color);
|
background:{{ theme.css_module_background_color }};
|
||||||
color: var(--admin-interface-module-text-color);
|
color:{{ theme.css_module_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface div.breadcrumbs a {
|
.admin-interface div.breadcrumbs a {
|
||||||
color: var(--admin-interface-module-link-color);
|
color:{{ theme.css_module_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface div.breadcrumbs a:active,
|
.admin-interface div.breadcrumbs a:active,
|
||||||
.admin-interface div.breadcrumbs a:focus,
|
.admin-interface div.breadcrumbs a:focus,
|
||||||
.admin-interface div.breadcrumbs a:hover {
|
.admin-interface div.breadcrumbs a:hover {
|
||||||
color: var(--admin-interface-module-link-hover-color);
|
color:{{ theme.css_module_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface fieldset.collapse.collapsed a.collapse-toggle {
|
.admin-interface fieldset.collapse.collapsed a.collapse-toggle {
|
||||||
color: var(--admin-interface-module-link-color);
|
color:{{ theme.css_module_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface fieldset.collapse.collapsed a.collapse-toggle:hover,
|
.admin-interface fieldset.collapse.collapsed a.collapse-toggle:hover,
|
||||||
.admin-interface fieldset.collapse.collapsed a.collapse-toggle:active {
|
.admin-interface fieldset.collapse.collapsed a.collapse-toggle:active {
|
||||||
color: var(--admin-interface-module-link-hover-color);
|
color:{{ theme.css_module_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface fieldset.collapse a.collapse-toggle {
|
.admin-interface fieldset.collapse a.collapse-toggle {
|
||||||
color: var(--admin-interface-module-link-color);
|
color:{{ theme.css_module_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface fieldset.collapse a.collapse-toggle:hover,
|
.admin-interface fieldset.collapse a.collapse-toggle:hover,
|
||||||
.admin-interface fieldset.collapse a.collapse-toggle:active {
|
.admin-interface fieldset.collapse a.collapse-toggle:active {
|
||||||
color: var(--admin-interface-module-link-hover-color);
|
color:{{ theme.css_module_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .inline-group h2 {
|
.admin-interface .inline-group h2 {
|
||||||
background: var(--admin-interface-module-background-color);
|
background:{{ theme.css_module_background_color }};
|
||||||
color: var(--admin-interface-module-text-color);
|
color:{{ theme.css_module_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .selector .selector-chosen h2 {
|
.admin-interface .selector .selector-chosen h2 {
|
||||||
border-color: var(--admin-interface-module-background-color);
|
border-color:{{ theme.css_module_background_color }};
|
||||||
background: var(--admin-interface-module-background-color);
|
background:{{ theme.css_module_background_color }};
|
||||||
color: var(--admin-interface-module-text-color);
|
color:{{ theme.css_module_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .selector .selector-available h2,
|
.admin-interface .selector .selector-available h2,
|
||||||
.admin-interface .selector .selector-chosen h2 {
|
.admin-interface .selector .selector-chosen h2 {
|
||||||
border-bottom-left-radius: 0px;
|
{% if theme.css_module_rounded_corners %}
|
||||||
border-bottom-right-radius: 0px;
|
border-bottom-left-radius:0;
|
||||||
|
border-bottom-right-radius:0;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .selector a.selector-chooseall:focus,
|
.admin-interface .selector a.selector-chooseall:focus,
|
||||||
.admin-interface .selector a.selector-chooseall:hover,
|
.admin-interface .selector a.selector-chooseall:hover,
|
||||||
.admin-interface .selector a.selector-clearall:focus,
|
.admin-interface .selector a.selector-clearall:focus,
|
||||||
.admin-interface .selector a.selector-clearall:hover {
|
.admin-interface .selector a.selector-clearall:hover {
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
color:{{ theme.css_generic_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface a:link,
|
.admin-interface a:link,
|
||||||
.admin-interface a:visited {
|
.admin-interface a:visited {
|
||||||
color: var(--admin-interface-generic-link-color);
|
color:{{ theme.css_generic_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface a:hover {
|
.admin-interface a:hover {
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
color:{{ theme.css_generic_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface thead th a,
|
.admin-interface thead th a,
|
||||||
@@ -256,8 +294,8 @@
|
|||||||
.admin-interface input[type=button],
|
.admin-interface input[type=button],
|
||||||
.admin-interface .submit-row input,
|
.admin-interface .submit-row input,
|
||||||
.admin-interface a.button {
|
.admin-interface a.button {
|
||||||
background: var(--admin-interface-save-button-background-color);
|
background:{{ theme.css_save_button_background_color }};
|
||||||
color: var(--admin-interface-save-button-text-color);
|
color:{{ theme.css_save_button_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .button:active,
|
.admin-interface .button:active,
|
||||||
@@ -269,16 +307,16 @@
|
|||||||
.admin-interface input[type=button]:active,
|
.admin-interface input[type=button]:active,
|
||||||
.admin-interface input[type=button]:focus,
|
.admin-interface input[type=button]:focus,
|
||||||
.admin-interface input[type=button]:hover {
|
.admin-interface input[type=button]:hover {
|
||||||
background: var(--admin-interface-save-button-background-hover-color);
|
background:{{ theme.css_save_button_background_hover_color }};
|
||||||
color: var(--admin-interface-save-button-text-color);
|
color:{{ theme.css_save_button_text_color }};
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .button.default,
|
.admin-interface .button.default,
|
||||||
.admin-interface input[type=submit].default,
|
.admin-interface input[type=submit].default,
|
||||||
.admin-interface .submit-row input.default {
|
.admin-interface .submit-row input.default {
|
||||||
background: var(--admin-interface-save-button-background-color);
|
background:{{ theme.css_save_button_background_color }};
|
||||||
color: var(--admin-interface-save-button-text-color);
|
color:{{ theme.css_save_button_text_color }};
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -289,91 +327,83 @@
|
|||||||
.admin-interface input[type=submit].default:focus,
|
.admin-interface input[type=submit].default:focus,
|
||||||
.admin-interface input[type=submit].default:hover,
|
.admin-interface input[type=submit].default:hover,
|
||||||
.admin-interface.delete-confirmation form .cancel-link:hover {
|
.admin-interface.delete-confirmation form .cancel-link:hover {
|
||||||
background: var(--admin-interface-save-button-background-hover-color);
|
background:{{ theme.css_save_button_background_hover_color }};
|
||||||
color: var(--admin-interface-save-button-text-color);
|
color:{{ theme.css_save_button_text_color }};
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .submit-row a.deletelink:link,
|
.admin-interface .submit-row a.deletelink:link,
|
||||||
.admin-interface .submit-row a.deletelink:visited,
|
.admin-interface .submit-row a.deletelink:visited,
|
||||||
.admin-interface.delete-confirmation form input[type="submit"] {
|
.admin-interface.delete-confirmation form input[type="submit"] {
|
||||||
background: var(--admin-interface-delete-button-background-color);
|
background:{{ theme.css_delete_button_background_color }};
|
||||||
color: var(--admin-interface-delete-button-text-color);
|
color:{{ theme.css_delete_button_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .submit-row a.deletelink:hover,
|
.admin-interface .submit-row a.deletelink:hover,
|
||||||
.admin-interface.delete-confirmation form input[type="submit"]:hover {
|
.admin-interface.delete-confirmation form input[type="submit"]:hover {
|
||||||
background: var(--admin-interface-delete-button-background-hover-color);
|
background:{{ theme.css_delete_button_background_hover_color }};
|
||||||
color: var(--admin-interface-delete-button-text-color);
|
color:{{ theme.css_delete_button_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .paginator a,
|
.admin-interface .paginator a,
|
||||||
.admin-interface .paginator a:link,
|
.admin-interface .paginator a:link,
|
||||||
.admin-interface .paginator a:visited,
|
.admin-interface .paginator a:visited,
|
||||||
.admin-interface .paginator .this-page {
|
.admin-interface .paginator .this-page {
|
||||||
border-radius: var(--admin-interface-module-border-radius);
|
{% if theme.css_module_rounded_corners %}border-radius:4px;{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .paginator a,
|
.admin-interface .paginator a,
|
||||||
.admin-interface .paginator a:link,
|
.admin-interface .paginator a:link,
|
||||||
.admin-interface .paginator a:visited {
|
.admin-interface .paginator a:visited {
|
||||||
background-color: #FFFFFF;
|
background-color:#FFFFFF;
|
||||||
color: var(--admin-interface-generic-link-color);
|
color:{{ theme.css_generic_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .paginator a:hover,
|
.admin-interface .paginator a:hover,
|
||||||
.admin-interface .paginator a:active {
|
.admin-interface .paginator a:active {
|
||||||
background-color: #F8F8F8;
|
background-color:#F8F8F8;
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
color:{{ theme.css_generic_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .paginator .this-page {
|
.admin-interface .paginator .this-page {
|
||||||
background-color: var(--admin-interface-module-background-color);
|
background-color:{{ theme.css_module_background_color }};
|
||||||
color: var(--admin-interface-module-link-color);
|
color:{{ theme.css_module_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .paginator a.showall,
|
.admin-interface .paginator a.showall,
|
||||||
.admin-interface .paginator a.showall:link,
|
.admin-interface .paginator a.showall:link,
|
||||||
.admin-interface .paginator a.showall:visited {
|
.admin-interface .paginator a.showall:visited {
|
||||||
color: var(--admin-interface-generic-link-color);
|
color:{{ theme.css_generic_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .paginator a.showall:hover,
|
.admin-interface .paginator a.showall:hover,
|
||||||
.admin-interface .paginator a.showall:active {
|
.admin-interface .paginator a.showall:active {
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
color:{{ theme.css_generic_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* list-filter sticky */
|
/* list-filter sticky */
|
||||||
|
{% if theme.list_filter_sticky %}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.admin-interface.list-filter-sticky .module.filtered #changelist-filter {
|
.admin-interface .module.filtered #changelist-filter {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 30px;
|
top: 40px;
|
||||||
float: right;
|
float: right;
|
||||||
z-index: 30;
|
z-index: 30;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
overflow-y: auto;
|
|
||||||
height: 100%;
|
|
||||||
max-height: calc(100vh - 60px);
|
|
||||||
}
|
}
|
||||||
.admin-interface.list-filter-sticky.sticky-pagination .module.filtered #changelist-filter {
|
|
||||||
max-height: calc(100vh - 125px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* feature not available for django < 3.1.2 */
|
/* feature not available for django < 3.1.2 */
|
||||||
.admin-interface.list-filter-sticky .module.filtered #toolbar + #changelist-filter {
|
.admin-interface .module.filtered #toolbar + #changelist-filter {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
z-index: 30;
|
z-index: 30;
|
||||||
max-height: calc(100vh - 105px);
|
|
||||||
}
|
|
||||||
.admin-interface.list-filter-sticky.sticky-pagination .module.filtered #toolbar + #changelist-filter {
|
|
||||||
max-height: calc(100vh - 170px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
.admin-interface .module.filtered #changelist-filter {
|
.admin-interface .module.filtered #changelist-filter {
|
||||||
border-radius: var(--admin-interface-module-border-radius);
|
{% if theme.css_module_rounded_corners %}
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .module.filtered #changelist-filter #changelist-filter-clear a:focus,
|
.admin-interface .module.filtered #changelist-filter #changelist-filter-clear a:focus,
|
||||||
@@ -394,7 +424,7 @@
|
|||||||
.admin-interface .module.filtered #changelist-filter li.selected a:focus,
|
.admin-interface .module.filtered #changelist-filter li.selected a:focus,
|
||||||
.admin-interface .module.filtered #changelist-filter li.selected a:hover {
|
.admin-interface .module.filtered #changelist-filter li.selected a:hover {
|
||||||
/* color: #666; */
|
/* color: #666; */
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
color: {{ theme.css_generic_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* begin fix issue #11 - Inline border bottom should not be rounded */
|
/* begin fix issue #11 - Inline border bottom should not be rounded */
|
||||||
@@ -403,41 +433,50 @@
|
|||||||
.admin-interface #nav-sidebar .module th,
|
.admin-interface #nav-sidebar .module th,
|
||||||
.admin-interface #nav-sidebar .module caption,
|
.admin-interface #nav-sidebar .module caption,
|
||||||
.admin-interface .module.filtered h2 {
|
.admin-interface .module.filtered h2 {
|
||||||
border-radius: var(--admin-interface-module-border-radius);
|
{% if theme.css_module_rounded_corners %}
|
||||||
|
border-radius:4px;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .inline-group h2 {
|
.admin-interface .inline-group h2 {
|
||||||
border-bottom-left-radius: 0px;
|
{% if theme.css_module_rounded_corners %}
|
||||||
border-bottom-right-radius: 0px;
|
border-bottom-left-radius:0;
|
||||||
|
border-bottom-right-radius:0;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .module.collapse.collapsed h2 {
|
.admin-interface .module.collapse.collapsed h2 {
|
||||||
/* fix collapsed inlines rounded bottom borders */
|
/* fix collapsed inlines rounded bottom borders */
|
||||||
border-bottom-left-radius: var(--admin-interface-module-border-radius);
|
{% if theme.css_module_rounded_corners %}
|
||||||
border-bottom-right-radius: var(--admin-interface-module-border-radius);
|
border-bottom-left-radius:4px;
|
||||||
|
border-bottom-right-radius:4px;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* end fix */
|
/* end fix */
|
||||||
|
|
||||||
.admin-interface #content-related {
|
.admin-interface #content-related {
|
||||||
border-radius: var(--admin-interface-module-border-radius);
|
{% if theme.css_module_rounded_corners %}
|
||||||
|
border-radius:4px;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
|
.admin-interface .select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
|
||||||
background-color: var(--admin-interface-module-background-color);
|
background-color: {{ theme.css_module_background_color }};
|
||||||
color: var(--admin-interface-module-text-color);
|
color: {{ theme.css_module_text_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #toggle-nav-sidebar {
|
.admin-interface #toggle-nav-sidebar {
|
||||||
border-top-right-radius: var(--admin-interface-module-border-radius);
|
{% if theme.css_module_rounded_corners %}
|
||||||
border-bottom-right-radius: var(--admin-interface-module-border-radius);
|
border-top-right-radius: 4px;
|
||||||
color: var(--admin-interface-generic-link-color);
|
border-bottom-right-radius: 4px;
|
||||||
|
{% endif %}
|
||||||
|
color: {{ theme.css_generic_link_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface #toggle-nav-sidebar:focus,
|
.admin-interface #toggle-nav-sidebar:focus,
|
||||||
.admin-interface #toggle-nav-sidebar:hover,
|
.admin-interface #toggle-nav-sidebar:hover,
|
||||||
.admin-interface #toggle-nav-sidebar:active {
|
.admin-interface #toggle-nav-sidebar:active {
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
color: {{ theme.css_generic_link_hover_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .calendar td.selected a,
|
.admin-interface .calendar td.selected a,
|
||||||
@@ -447,5 +486,5 @@
|
|||||||
.admin-interface .timelist a:active,
|
.admin-interface .timelist a:active,
|
||||||
.admin-interface .timelist a:focus,
|
.admin-interface .timelist a:focus,
|
||||||
.admin-interface .timelist a:hover {
|
.admin-interface .timelist a:hover {
|
||||||
background: var(--admin-interface-module-background-color);
|
background: {{ theme.css_module_background_color }};
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border-top: 1px solid #EEEEEE !important;
|
border-top: 1px solid #EEEEEE;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
.admin-interface .language-chooser {
|
|
||||||
display: inline-block;
|
|
||||||
position: absolute;
|
|
||||||
top: 15px;
|
|
||||||
right: 15px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.admin-interface .language-chooser {
|
|
||||||
right: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
.admin-interface .language-chooser {
|
|
||||||
position: static;
|
|
||||||
float: right;
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .language-chooser-hidden-form {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .language-chooser-select-form {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
@@ -3,12 +3,8 @@ list-filter-dropdown
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.admin-interface .list-filter-dropdown {
|
.admin-interface .list-filter-dropdown {
|
||||||
margin-top: 0;
|
margin-top:10px;
|
||||||
margin-bottom: 20px;
|
margin-bottom:20px;
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .list-filter-dropdown h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface .list-filter-dropdown select {
|
.admin-interface .list-filter-dropdown select {
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
{% if not theme.recent_actions_visible %}
|
{% if not theme.recent_actions_visible %}
|
||||||
.admin-interface.dashboard #content {
|
.admin-interface.dashboard #content {
|
||||||
width: auto;
|
max-width:600px;
|
||||||
max-width: 600px;
|
margin-right:0;
|
||||||
margin-right: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-interface.dashboard #content #recent-actions-module {
|
.admin-interface.dashboard #content #recent-actions-module {
|
||||||
display: none;
|
display:none;
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -1,200 +0,0 @@
|
|||||||
/*
|
|
||||||
django-streamfield support
|
|
||||||
https://github.com/raagin/django-streamfield/
|
|
||||||
*/
|
|
||||||
|
|
||||||
.admin-interface .form-row.field-stream {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .form-row.field-stream label[for=id_stream] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app {
|
|
||||||
clear: both;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-help-text {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-help-text .stream-help-text__title {
|
|
||||||
align-self: flex-end;
|
|
||||||
user-select: none;
|
|
||||||
padding: 8px;
|
|
||||||
padding-right: 0;
|
|
||||||
color: var(--admin-interface-generic-link-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-help-text .stream-help-text__title:hover {
|
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-help-text .stream-help-text__content {
|
|
||||||
background: var(--admin-interface-module-background-selected-color);
|
|
||||||
border-radius: var(--admin-interface-module-border-radius);
|
|
||||||
border: 1px solid rgba(0,0,0,0.1);
|
|
||||||
padding: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-help-text .stream-help-text__content > ul {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .collapse-handler {
|
|
||||||
user-select: none;
|
|
||||||
padding: 8px;
|
|
||||||
padding-right: 0;
|
|
||||||
margin: 0 0 5px 0;
|
|
||||||
color: var(--admin-interface-generic-link-color);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .collapse-handler:hover {
|
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block {
|
|
||||||
position: relative;
|
|
||||||
box-shadow: none;
|
|
||||||
border: 1px solid rgba(0,0,0,0.1);
|
|
||||||
border-radius: var(--admin-interface-module-border-radius);
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block,
|
|
||||||
.admin-interface .streamfield_app .streamfield-models.collapsed .stream-model-block {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
margin: 0;
|
|
||||||
padding: 10px 10px 10px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title span {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle {
|
|
||||||
position: static;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
color: var(--admin-interface-generic-link-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle:hover {
|
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle .block-move,
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle .block-delete {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
font-weight: normal;
|
|
||||||
background: none;
|
|
||||||
flex-shrink: 0;
|
|
||||||
color: inherit;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle .block-move {
|
|
||||||
cursor: move; /* fallback if grab cursor is unsupported */
|
|
||||||
cursor: grab;
|
|
||||||
cursor: -moz-grab;
|
|
||||||
cursor: -webkit-grab;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle .block-move:before {
|
|
||||||
content: "↕";
|
|
||||||
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .streamblock__block__title .streamblock__block-handle .block-delete:before {
|
|
||||||
content: "×";
|
|
||||||
display: block;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .block-fields > div {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .stream-model-block__content {
|
|
||||||
background-color: #f8f8f8;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-model-block .stream-model-block__content.no-subblocks.abstract-block {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-insert-new-block {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-insert-new-block .add-new-block-button {
|
|
||||||
color: var(--admin-interface-generic-link-color);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-insert-new-block .add-new-block-button:hover {
|
|
||||||
color: var(--admin-interface-generic-link-hover-color);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-insert-new-block ul {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
margin: 10px 0 0 0;
|
|
||||||
padding: 0;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-insert-new-block ul li {
|
|
||||||
display: inline-block;
|
|
||||||
font-size: 12px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-btn {
|
|
||||||
font-weight: normal;
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: var(--admin-interface-generic-link-color);
|
|
||||||
padding: 6px 12px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-btn:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: var(--admin-interface-generic-link-hover-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-interface .streamfield_app .stream-insert-new-block ul li .stream-btn {
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
{% if theme.favicon %}
|
{% if theme.favicon %}
|
||||||
<link rel="icon" href="{{ theme.favicon.url }}">
|
<link rel="icon" href="{{ theme.favicon.url }}">
|
||||||
{% if theme.env_visible_in_favicon %}
|
{% if theme.env_visible_in_favicon %}
|
||||||
<script type="text/javascript" src="{% static 'admin_interface/favico/favico-0.3.10-patched.min.js' %}?nocache={{ version_md5_cache }}"></script>
|
<script type="text/javascript" src="{% static 'admin_interface/favico/favico-0.3.10-patched.min.js' %}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var favicon = new Favico({
|
var favicon = new Favico({
|
||||||
type: 'circle',
|
type: 'circle',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% if theme.foldable_apps %}
|
{% if theme.foldable_apps %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'admin_interface/foldable-apps/foldable-apps.css' %}?nocache={{ version_md5_cache }}">
|
<link rel="stylesheet" type="text/css" href="{% static 'admin_interface/foldable-apps/foldable-apps.css' %}">
|
||||||
<script type="text/javascript" src="{% static 'admin_interface/foldable-apps/foldable-apps.js' %}?nocache={{ version_md5_cache }}"></script>
|
<script type="text/javascript" src="{% static 'admin_interface/foldable-apps/foldable-apps.js' %}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% if theme.related_modal_active %}
|
{% if theme.related_modal_active %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'admin_interface/magnific-popup/magnific-popup.css' %}?nocache={{ version_md5_cache }}">
|
<link rel="stylesheet" type="text/css" href="{% static 'admin_interface/magnific-popup/magnific-popup.css' %}">
|
||||||
<script type="text/javascript" src="{% static 'admin_interface/magnific-popup/jquery.magnific-popup.js' %}?nocache={{ version_md5_cache }}"></script>
|
<script type="text/javascript" src="{% static 'admin_interface/magnific-popup/jquery.magnific-popup.js' %}"></script>
|
||||||
<script type="text/javascript" src="{% static 'admin_interface/related-modal/related-modal.js' %}?nocache={{ version_md5_cache }}"></script>
|
<script type="text/javascript" src="{% static 'admin_interface/related-modal/related-modal.js' %}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -80,9 +80,9 @@ def get_admin_interface_version():
|
|||||||
|
|
||||||
|
|
||||||
def hash_string(text):
|
def hash_string(text):
|
||||||
hash_object = hashlib.sha224(text.encode())
|
hash_object = hashlib.md5(text.encode())
|
||||||
sha224_hash = hash_object.hexdigest()
|
md5_hash = hash_object.hexdigest()
|
||||||
return sha224_hash
|
return md5_hash
|
||||||
|
|
||||||
|
|
||||||
@simple_tag(takes_context=False)
|
@simple_tag(takes_context=False)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__version__ = "0.20.0"
|
__version__ = "0.19.8"
|
||||||
@@ -12,6 +12,7 @@ sponsor_url = "https://github.com/sponsors/fabiocaccamo/"
|
|||||||
twitter_url = "https://twitter.com/fabiocaccamo"
|
twitter_url = "https://twitter.com/fabiocaccamo"
|
||||||
package_name = "django-admin-interface"
|
package_name = "django-admin-interface"
|
||||||
package_url = "{}/{}".format(github_url, package_name)
|
package_url = "{}/{}".format(github_url, package_name)
|
||||||
|
package_issues_url = "{}/issues".format(github_url)
|
||||||
package_path = os.path.abspath(os.path.dirname(__file__))
|
package_path = os.path.abspath(os.path.dirname(__file__))
|
||||||
long_description_file_path = os.path.join(package_path, "README.md")
|
long_description_file_path = os.path.join(package_path, "README.md")
|
||||||
long_description_content_type = "text/markdown"
|
long_description_content_type = "text/markdown"
|
||||||
@@ -38,8 +39,8 @@ setup(
|
|||||||
url=package_url,
|
url=package_url,
|
||||||
download_url="{}/archive/{}.tar.gz".format(package_url, __version__),
|
download_url="{}/archive/{}.tar.gz".format(package_url, __version__),
|
||||||
project_urls={
|
project_urls={
|
||||||
"Documentation": "{}#readme".format(package_url),
|
"Documentation": package_url,
|
||||||
"Issues": "{}/issues".format(package_url),
|
"Issues": package_issues_url,
|
||||||
"Funding": sponsor_url,
|
"Funding": sponsor_url,
|
||||||
"Twitter": twitter_url,
|
"Twitter": twitter_url,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user