diff --git a/app/assets/stylesheets/notifications.scss b/app/assets/stylesheets/notifications.scss index 375614782..2499f72d6 100644 --- a/app/assets/stylesheets/notifications.scss +++ b/app/assets/stylesheets/notifications.scss @@ -435,6 +435,26 @@ } } +.notification-nav { + margin-bottom: var(--su-4); + + &:last-child { + margin-bottom: 0; + } + + header { + color: var(--base-80); + } + + .crayons-link { + margin-bottom: var(--su-1); + + &:last-child { + margin-bottom: 0; + } + } +} + .notifications-filter__list { li { margin-bottom: var(--su-1); diff --git a/app/views/notifications/_nav_menu.html.erb b/app/views/notifications/_nav_menu.html.erb new file mode 100644 index 000000000..713458fdf --- /dev/null +++ b/app/views/notifications/_nav_menu.html.erb @@ -0,0 +1,35 @@ + + diff --git a/app/views/notifications/_nav_menu_filter.html.erb b/app/views/notifications/_nav_menu_filter.html.erb new file mode 100644 index 000000000..20203551e --- /dev/null +++ b/app/views/notifications/_nav_menu_filter.html.erb @@ -0,0 +1,38 @@ +
+ <% if @organizations.present? %> +
+ +
+ <% end %> + +
+ + <% if @organizations.present? %> + <% @organizations.each do |org| %> + + <% end %> + <% end %> +
+
diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index a60290d92..7487bf198 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -42,119 +42,10 @@ <% if user_signed_in? %>
- -
- <% if @organizations.present? %> -
- -
- <% end %> - - -
+ <%= render "notifications/nav_menu_filter" %> <%= render "notifications_list", params: params %>