forked from mirrors/bookwyrm
Merge pull request #1809 from bookwyrm-social/unread-notifications
Show unread notifications color
This commit is contained in:
commit
2fabad63e0
18 changed files with 27 additions and 20 deletions
|
@ -14,7 +14,7 @@ VERSION = "0.1.1"
|
||||||
PAGE_LENGTH = env("PAGE_LENGTH", 15)
|
PAGE_LENGTH = env("PAGE_LENGTH", 15)
|
||||||
DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English")
|
DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English")
|
||||||
|
|
||||||
JS_CACHE = "2d3181e1"
|
JS_CACHE = "9b4cc1f7"
|
||||||
|
|
||||||
# email
|
# email
|
||||||
EMAIL_BACKEND = env("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend")
|
EMAIL_BACKEND = env("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend")
|
||||||
|
|
|
@ -751,6 +751,13 @@ ol.ordered-list li::before {
|
||||||
padding: 0 0.75em;
|
padding: 0 0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Notifications page
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
.notification a.icon {
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Breadcrumbs
|
/* Breadcrumbs
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block primary_link %}{% spaceless %}
|
{% block primary_link %}{% spaceless %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% load bookwyrm_tags %}
|
{% load bookwyrm_tags %}
|
||||||
{% related_status notification as related_status %}
|
{% related_status notification as related_status %}
|
||||||
<div class="box is-shadowless has-background-white-ter {% if notification.id in unread %} is-primary{% endif %}">
|
<div class="notification {% if notification.id in unread %}has-background-primary{% endif %}">
|
||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile {% if notification.id in unread %}has-text-white{% else %}has-text-grey{% endif %}">
|
||||||
<div class="column is-narrow is-size-3 {% if notification.id in unread%}has-text-white{% else %}has-text-grey{% endif %}">
|
<div class="column is-narrow is-size-3">
|
||||||
<a class="has-text-dark" href="{% block primary_link %}{% endblock %}">
|
<a class="icon" href="{% block primary_link %}{% endblock %}">
|
||||||
{% block icon %}{% endblock %}
|
{% block icon %}{% endblock %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'notifications/items/item_layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
|
|
Loading…
Reference in a new issue