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.
@@ -1,5 +1,5 @@
1
1
  {% if help_text %}
2
2
  <div class="leading-relaxed mt-2 text-gray-500 text-xs dark:text-gray-400">
3
- {{ help_text|safe }}
3
+ {{ help_text }}
4
4
  </div>
5
5
  {% endif %}
@@ -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-4/12">
7
- <div class="module" id="recent-actions-module">
8
- <h2 class="mb-4 font-semibold text-gray-700 text-sm dark:text-gray-200">
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 bg-gray-50 rounded-md p-3 dark:bg-gray-800">
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-4 p-3 rounded-md shadow-sm last:mb-0 dark:bg-gray-900">
15
- <div class="mb-3 text-gray-500 overflow-hidden text-ellipsis text-sm whitespace-nowrap dark:text-gray-200">
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
- {% include "unfold/helpers/theme_switch.html" %}
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>