-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added notifications #161
base: dev
Are you sure you want to change the base?
Added notifications #161
Changes from all commits
7dfa525
76a85df
4bd8370
b055689
674b1ec
5409e61
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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
<%# https://getbootstrap.com/docs/4.5/components/navbar/ %> | ||
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | ||
<div class="navbar-brand"><%= link_to I18n.t('index.portal_name'), root_path, class: 'portal-link' %></div> | ||
<form class="form-inline"> | ||
<i class="fa fa-bell" style="color: white; padding: 10px"></i> | ||
<a href="<%= search_users_path %>"><i class="fa fa-search" style="color: white; padding: 10px"></i> </a> | ||
</form> | ||
<% if user_signed_in? %> | ||
<form class="form-inline"> | ||
<% if current_user.has_contact_request? %> | ||
<a href="<%= user_contact_requests_path(current_user) %>"> <i class="fa fa-bell" style="color: red; padding: 3px"></i> </a> | ||
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. I would extract all styles into an appropriate css file 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. I wouldn't like to do that, because if someone else uses the bell icon, they don't necessarily want my styling... 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. Yes but you could use a class like 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. I agree with @felixauringer. If someone doesn't like the styling, the class can be changed even easier |
||
<span class="badge badge-pill badge-danger"><%= current_user.count_contact_requests%></span> | ||
<% else %> | ||
<i class="fa fa-bell" style="color: white; padding: 10px"></i> | ||
<% end %> | ||
<a href="<%= search_users_path %>"><i class="fa fa-search" style="color: white; padding: 10px"></i> </a> | ||
</form> | ||
<% end %> | ||
<%= render 'layouts/navbar_desktop_part' %> | ||
</nav> | ||
</nav> |
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.