django-unfold 0.20.4__py3-none-any.whl → 0.21.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_unfold-0.20.4.dist-info → django_unfold-0.21.0.dist-info}/METADATA +3 -2
- {django_unfold-0.20.4.dist-info → django_unfold-0.21.0.dist-info}/RECORD +18 -18
- {django_unfold-0.20.4.dist-info → django_unfold-0.21.0.dist-info}/WHEEL +1 -1
- unfold/checks.py +1 -5
- unfold/contrib/filters/admin.py +4 -12
- unfold/contrib/forms/static/unfold/forms/css/trix.css +8 -6
- unfold/contrib/forms/static/unfold/forms/js/trix.js +4 -3
- unfold/forms.py +2 -1
- unfold/sites.py +1 -0
- unfold/static/unfold/css/styles.css +1 -1
- unfold/templates/admin/includes/fieldset.html +1 -3
- unfold/templates/admin/index.html +1 -1
- unfold/templates/unfold/helpers/app_list_default.html +53 -53
- unfold/templates/unfold/helpers/help_text.html +1 -1
- unfold/templates/unfold/helpers/history.html +6 -6
- unfold/templates/unfold/helpers/userlinks.html +3 -1
- unfold/templates/unfold/layouts/skeleton.html +1 -1
- {django_unfold-0.20.4.dist-info → django_unfold-0.21.0.dist-info}/LICENSE.md +0 -0
@@ -3,16 +3,16 @@
|
|
3
3
|
{% get_admin_log 10 as admin_log for_user user %}
|
4
4
|
|
5
5
|
{% if admin_log %}
|
6
|
-
<div id="content-related" class="lg:w-
|
7
|
-
<div
|
8
|
-
<h2 class="mb-
|
6
|
+
<div id="content-related" class="lg:w-96">
|
7
|
+
<div id="recent-actions-module" class="module bg-gray-50 rounded-md p-3 dark:bg-gray-800">
|
8
|
+
<h2 class="mb-3 font-semibold text-gray-700 text-sm dark:text-gray-200">
|
9
9
|
{% translate 'Recent actions' %}
|
10
10
|
</h2>
|
11
11
|
|
12
|
-
<ul class="actionlist
|
12
|
+
<ul class="actionlist">
|
13
13
|
{% for entry in admin_log %}
|
14
|
-
<li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %} bg-white mb-
|
15
|
-
<div class="mb-3 text-gray-
|
14
|
+
<li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %} border border-gray-400/10 bg-white mb-3 p-3 rounded-md shadow-sm last:mb-0 dark:bg-gray-900">
|
15
|
+
<div class="mb-3 text-gray-700 overflow-hidden text-ellipsis text-sm whitespace-nowrap dark:text-gray-200">
|
16
16
|
{% if entry.is_deletion or not entry.get_admin_url %}
|
17
17
|
{{ entry.object_repr }}
|
18
18
|
{% else %}
|
@@ -7,7 +7,9 @@
|
|
7
7
|
{% include "unfold/helpers/label.html" with text=environment.0 type=environment.1 %}
|
8
8
|
{% endif %}
|
9
9
|
|
10
|
-
{%
|
10
|
+
{% if not theme %}
|
11
|
+
{% include "unfold/helpers/theme_switch.html" %}
|
12
|
+
{% endif %}
|
11
13
|
|
12
14
|
{% include "unfold/helpers/account_links.html" %}
|
13
15
|
</div>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
{% capture as actions_items silent %}{% block actions-items %}{% endblock %}{% endcapture %}
|
13
13
|
|
14
14
|
<!DOCTYPE html>
|
15
|
-
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" dir="{{ LANGUAGE_BIDI|yesno:"rtl,ltr,auto" }}" x-data="{ adminTheme: $persist('auto').as('adminTheme') }" x-bind:class="{'dark': adminTheme === 'dark' || (adminTheme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)}" x-cloak>
|
15
|
+
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" dir="{{ LANGUAGE_BIDI|yesno:"rtl,ltr,auto" }}" {% if theme %}class="{{ theme }}"{% else %}x-data="{ adminTheme: $persist('auto').as('adminTheme') }" x-bind:class="{'dark': adminTheme === 'dark' || (adminTheme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)}" x-cloak{% endif %}>
|
16
16
|
|
17
17
|
<head>
|
18
18
|
<title>{% block title %}{% endblock %}</title>
|
File without changes
|