diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 48764df..5518b4c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,7 @@ Changelog Unreleased ========== +* fix: Added styling to lock icon 1.1.0 (2022-06-08) ================== diff --git a/djangocms_version_locking/templates/djangocms_version_locking/admin/locked_mixin_icon.html b/djangocms_version_locking/templates/djangocms_version_locking/admin/locked_mixin_icon.html index 1680192..9211735 100644 --- a/djangocms_version_locking/templates/djangocms_version_locking/admin/locked_mixin_icon.html +++ b/djangocms_version_locking/templates/djangocms_version_locking/admin/locked_mixin_icon.html @@ -1,5 +1,7 @@ {% load static i18n %} - + + + {% if locked_by %} ({{ locked_by }}) diff --git a/tests/test_admin.py b/tests/test_admin.py index 5360bc9..3d2a66b 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py @@ -188,7 +188,7 @@ def test_version_lock_added_to_locked_alias(self): with self.login_user_context(self.regular_staff_user): response = self.client.get(admin_url) - self.assertContains(response, '') + self.assertContains(response, '') self.assertContains(response, '') self.assertContains(response, self.alias_content.name)