change out icons

This commit is contained in:
Matthias 2021-11-30 16:55:39 +01:00
parent 0cefbe41c8
commit 5614fde368
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 4 additions and 3 deletions

View File

@ -152,14 +152,14 @@ function showMessage(message, options={}) {
function getReadEditButton(pk, state) { function getReadEditButton(pk, state) {
if (state) { if (state) {
var bReadText = '{% trans "Mark as unread" %}'; var bReadText = '{% trans "Mark as unread" %}';
var bReadIcon = 'fa-uncheck icon-red'; var bReadIcon = 'fas fa-bookmark icon-red';
var bReadTarget = 'unread'; var bReadTarget = 'unread';
} else { } else {
var bReadText = '{% trans "Mark as read" %}'; var bReadText = '{% trans "Mark as read" %}';
var bReadIcon = 'fa-check icon-green'; var bReadIcon = 'far fa-bookmark icon-green';
var bReadTarget = 'read'; var bReadTarget = 'read';
} }
return `<button title='${bReadText}' class='notification-read btn btn-outline-secondary' type='button' pk='${pk}' target='${bReadTarget}'><span class='fas ${bReadIcon}'></span></button>`; return `<button title='${bReadText}' class='notification-read btn btn-outline-secondary' type='button' pk='${pk}' target='${bReadTarget}'><span class='${bReadIcon}'></span></button>`;
} }

View File

@ -182,6 +182,7 @@
<script type='text/javascript' src="{% i18n_static 'table_filters.js' %}"></script> <script type='text/javascript' src="{% i18n_static 'table_filters.js' %}"></script>
<script type='text/javascript' src="{% static 'fontawesome/js/solid.js' %}"></script> <script type='text/javascript' src="{% static 'fontawesome/js/solid.js' %}"></script>
<script type='text/javascript' src="{% static 'fontawesome/js/regular.js' %}"></script>
<script type='text/javascript' src="{% static 'fontawesome/js/brands.js' %}"></script> <script type='text/javascript' src="{% static 'fontawesome/js/brands.js' %}"></script>
<script type='text/javascript' src="{% static 'fontawesome/js/fontawesome.js' %}"></script> <script type='text/javascript' src="{% static 'fontawesome/js/fontawesome.js' %}"></script>