Skip to content

Commit ab05b9c

Browse files
committed
ensured user inbox is accessible even if JS is disabled
1 parent ccb09c3 commit ab05b9c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/views/layouts/_header.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
<% end %>
7373
<% end %>
7474
<% if user_signed_in? %>
75-
<a href="#" class="header--item inbox-toggle is-visible-on-mobile"
76-
data-header-slide="#js-inbox"
77-
title='Open notifications'
78-
>
75+
<a href="<%= notifications_path %>"
76+
class="header--item inbox-toggle is-visible-on-mobile"
77+
data-header-slide="#js-inbox"
78+
title="Open notifications">
7979
<% unread = current_user.unread_count %>
8080
<% if unread > 0 %>
8181
<span class="header--alert inbox-count"><%= unread %></span>
@@ -194,7 +194,7 @@
194194
<div class="h-p-2 h-bg-tertiary-050 h-fw-bold">Notifications</div>
195195
<div class="h-p-2 h-bg-tertiary-050 h-fw-bold">
196196
<a class="no-unread js-read-all-notifs" href="#"><i class="fas fa-envelope-open"></i> Mark all as read</a>
197-
<a href="/users/me/notifications" class="button is-muted is-small">See all your notifications &raquo;</a>
197+
<a href="<%= notifications_path %>" class="button is-muted is-small">See all your notifications &raquo;</a>
198198
</div>
199199
<div class="inbox--container h-p-2"></div>
200200
</div>

0 commit comments

Comments
 (0)