Skip to content

Commit d50bcff

Browse files
committed
Moved the activity bell out of the mobile dropdown and into the top-right header (mobile only)
Signed-off-by: Kai Wagner <kai.wagner@percona.com>
1 parent 2038757 commit d50bcff

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

app/assets/stylesheets/components/navigation.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
gap: 6px;
125125
}
126126

127+
.nav-mobile-bell {
128+
display: none;
129+
}
130+
127131
.nav-link-activity i {
128132
font-size: 1.05em;
129133
}
@@ -227,6 +231,11 @@
227231
display: none;
228232
}
229233

234+
.nav-mobile-bell {
235+
display: inline-flex;
236+
margin-left: auto;
237+
}
238+
230239
body.has-sidebar .nav-burger {
231240
display: inline-flex;
232241
}

app/views/layouts/application.html.slim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ html data-theme="light"
6969
= link_to "Sign in", new_session_path, class: "nav-link"
7070
= link_to "Register", new_registration_path, class: "nav-link"
7171
span.tagline PostgreSQL Hackers Archive
72+
- if user_signed_in?
73+
- unread = activity_unread_count
74+
= link_to activities_path, class: "nav-link nav-link-activity nav-mobile-bell", title: "Activity" do
75+
i.fa-regular.fa-bell
76+
- if unread.positive?
77+
span.nav-badge = unread
7278
.nav-links
7379
= link_to "Topics", topics_path, class: "nav-link"
7480
- search_link = content_for?(:search_sidebar) ? "#search" : topics_path(anchor: "search")

0 commit comments

Comments
 (0)