Skip to content

Commit

Permalink
fix: Added styling to lock icon (FidelityInternational#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardvdv authored Jun 9, 2022
1 parent 15d737b commit ce379bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog

Unreleased
==========
* fix: Added styling to lock icon

1.1.0 (2022-06-08)
==================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% load static i18n %}
<a class="btn cms-versioning-action-btn inactive" title="{% trans "Locked" %}">
<link rel="stylesheet" type="text/css" href="{% static "djangocms_version_locking/css/version-locking.css" %}">

<a class="cms-version-locked-status-icon" title="{% trans "Locked" %}">
<img src="{% static 'djangocms_version_locking/svg/lock.svg' %}">
{% if locked_by %}
({{ locked_by }})
Expand Down
2 changes: 1 addition & 1 deletion tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, '<a class="btn cms-versioning-action-btn inactive" title="Locked">')
self.assertContains(response, '<a class="cms-version-locked-status-icon" title="Locked">')
self.assertContains(response, '<img src="/static/djangocms_version_locking/svg/lock.svg">')
self.assertContains(response, self.alias_content.name)

Expand Down

0 comments on commit ce379bd

Please sign in to comment.