Skip to content

Commit

Permalink
fix border
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jan 31, 2024
1 parent add02dc commit a4d2aa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ephios/core/templates/core/notification_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ <h1 class="page-header clearfix">
</a>
</small>
</h1>
<ul class="list-group mb-3">
<ul class="list-group mb-3" id="notification-list">
{% for notification in notification_list %}
<li class="list-group-item {% if not notification.read and not notification.is_obsolete %}unread-notification{% endif %}">
<li class="list-group-item {% if not notification.read and not notification.is_obsolete %}unread{% else %}text-body-secondary{% endif %}">
<div class="row mb-1">
<div class="col">
<small class="text-body-secondary">{{ notification.created_at|date:"d.m.Y H:i" }}</small>
Expand All @@ -34,7 +34,7 @@ <h6 class="fw-bold">
</div>
<div class="col">
{% for label, url in notification.get_actions %}
<a class="btn btn-secondary btn-sm" href="{{ url }}">{{ label }}</a>
<a class="btn btn-sm {% if not notification.read and not notification.is_obsolete %}btn-secondary{% else %}btn-outline-secondary{% endif %}" href="{{ url }}">{{ label }}</a>
{% endfor %}
</div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions ephios/static/ephios/scss/ephios_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ a.badge {
padding-bottom: 1rem;
}

.unread-notification {
border-left-color: $primary;
#notification-list li {
border-left-width: 0.5rem;

&.unread {
border-left-color: $primary;
}
}

0 comments on commit a4d2aa3

Please sign in to comment.