2 Commits 6687f1c1ff ... a5f2457d37

Author SHA1 Message Date
  Tomek Wójcik a5f2457d37 Version bumped to `v1.0.2` 5 months ago
  Tomek Wójcik d5cce22212 Toolbar tweaks 5 months ago

+ 1 - 1
django_changelist_inline/__init__.py

@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-__version__ = '1.0.1'
+__version__ = '1.0.2'
 
 default_app_config = (
     'django_changelist_inline.apps.DjangoChangelistInlineConfig'

+ 1 - 1
django_changelist_inline/admin.py

@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# django-changelist-inline v1.0.0 | (c) 2021-present Tomek Wójcik | MIT License
+# django-changelist-inline v1.0.2 | (c) 2021-present Tomek Wójcik | MIT License
 import copy
 
 from django.contrib import admin

+ 1 - 1
django_changelist_inline/apps.py

@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# django-changelist-inline v1.0.0 | (c) 2021-present Tomek Wójcik | MIT License
+# django-changelist-inline v1.0.2 | (c) 2021-present Tomek Wójcik | MIT License
 from django.apps import AppConfig
 
 

+ 3 - 2
django_changelist_inline/static/django_changelist_inline/css/changelist_inline.css

@@ -1,11 +1,12 @@
-/*! django-changelist-inline v1.0.0 | (c) 2021-present Tomek Wójcik | MIT License */
+/*! django-changelist-inline v1.0.2 | (c) 2021-present Tomek Wójcik | MIT License */
 .django_changelist_inline h2 {
     text-transform: uppercase;
 }
 
 .django_changelist_inline #toolbar {
     display: flex;
-    margin-bottom: 0px;
+    font-size: 12px;
+    margin-bottom: 0px !important;
 }
 
 .django_changelist_inline__toolbar a {

+ 15 - 15
django_changelist_inline/templates/django_changelist_inline/changelist_inline.html

@@ -9,26 +9,26 @@
         <div class="changelist-form-container">
           {% if cl.result_list %}
             {% result_list cl %}
-            {% if cl.has_toolbar %}
-              <div id="toolbar" class="django_changelist_inline__toolbar">
-                {% if cl.add_url %}
-                  <a class="addlink" href="{{ cl.add_url }}">
-                    {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
-                  </a>
-                {% endif %}
-                {% if cl.toolbar_links %}
-                  {{ cl.toolbar_links|safe }}
-                {% endif %}
-                {% if cl.show_all_url %}
-                  <a href="{{ cl.show_all_url }}">{% trans 'Show all' %} &raquo;</a>
-                {% endif %}
-              </div>
-            {% endif %}
           {% else %}
             <p class="paginator">
               {{ cl.model_admin.no_results_message }}
             </p>
           {% endif %}
+          {% if cl.has_toolbar %}
+            <div id="toolbar" class="django_changelist_inline__toolbar">
+              {% if cl.add_url %}
+                <a class="addlink" href="{{ cl.add_url }}">
+                  {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
+                </a>
+              {% endif %}
+              {% if cl.toolbar_links %}
+                {{ cl.toolbar_links|safe }}
+              {% endif %}
+              {% if cl.show_all_url %}
+                <a href="{{ cl.show_all_url }}">{% trans 'Show all' %} &raquo;</a>
+              {% endif %}
+            </div>
+          {% endif %}
         </div>
       </div>
     </div>

+ 1 - 1
setup.py

@@ -27,7 +27,7 @@ PACKAGES = find_packages(
 
 setup(
     name='django-changelist-inline',
-    version='1.0.1',
+    version='1.0.2',
     url='https://git.bthlabs.pl/tomekwojcik/django-changelist-inline',
     license='Other/Proprietary License',
     author='Tomek Wójcik',