-
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
Changes from all commits
f08dd50
1e5901f
27e5b93
831f08b
fd8970c
d579f7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,17 +16,49 @@ | |
margin-top: 15px; | ||
} | ||
|
||
.box { | ||
width: 350px; | ||
border: 1px solid black; | ||
padding: 5px; | ||
margin: 5px; | ||
margin-bottom: 15px; | ||
.subtitle { | ||
font-family: Roboto, sans-serif; | ||
font-weight: bold; | ||
font-size: 20px; | ||
spacing: auto spacing; | ||
color: #b8043c; | ||
margin-bottom: 7px; | ||
} | ||
|
||
.button { | ||
width: 100%; | ||
border: none; | ||
color: white; | ||
padding: 10px 20px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
margin: 4px 2px; | ||
cursor: pointer; | ||
font-family: Roboto, sans-serif; | ||
font-weight: bold; | ||
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 commentThe 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 commentThe 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 |
||
background-color: #2596be; | ||
<% else %> | ||
background-color: #7cc0d8; | ||
<% end %> | ||
} | ||
|
||
.button:hover { | ||
color: white; | ||
} | ||
|
||
</style> | ||
<p class="title"><%= t('views.dashboard.greeting', name: @user.first_name)%></p> | ||
|
||
<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 commentThe reason will be displayed to describe this comment to others. Learn more. Hier ist der Check auch überflüssig, oder? |
||
<p class="title"><%= t('views.dashboard.greeting', name: @user.first_name)%></p> | ||
|
||
<a href="/notifications" class="button" id="notifications-button"><%= t('views.dashboard.unread_messages', num: @user.notifications.where(unread: true).size) %></a> | ||
|
||
<h3 class="subtitle"><%= t 'views.dashboard.lent_items.title' %></h3> | ||
|
||
<h3 class="subtitle"><%= t 'views.dashboard.lent_items.title' %></h3> | ||
<%= render "lent_items"%> | ||
|
@@ -36,3 +68,4 @@ | |
|
||
<h3 class=" subtitle place-holder-nav"><%= t 'views.dashboard.wishlist.title' %></h3> | ||
<%= render "wishlist"%> | ||
<% end %> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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?