-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/mw 38 dashboard unread messages #212
Conversation
padding: 5px; | ||
margin: 5px; | ||
margin-bottom: 15px; | ||
.subtitle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das sollte mit den neuen Stylesheets nicht mehr nötig sein, oder?
font-size: 16px; | ||
spacing: auto spacing; | ||
margin-bottom: 18px; | ||
<% if user_signed_in? && @user.notifications.where(unread: true).size > 0 %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der Check, ob der user signed in ist, sollte überflüssig sein, da nur auf das Dashboard zugegriffen werden kann, wenn man signed in ist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An der Stelle sind ohne zumindest immer Tests fehlgeschlagen, weil es user nicht kannte
|
||
<h3 class="subtitle box"><%= t 'views.dashboard.unread_messages' %></h3> | ||
<% if user_signed_in? %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hier ist der Check auch überflüssig, oder?
Fixes #38
Button now displays "You have (number of unread notifications) unread messages" on dashboard. When there are more than zero of those, the button is highlighted in a darker blue. When new notifications are added while user is on the page, page needs to be refreshed.
PR checklist