|
7 | 7 | <% end %> |
8 | 8 | </div> |
9 | 9 |
|
10 | | - <div class="flex v-center"> |
| 10 | + <div class="flex v-center relative"> |
11 | 11 | <% if user_signed_in? %> |
12 | | - <%= render partial: 'shared/nav_item', locals: { path: root_path, icon: 'home' } %> |
13 | | - <%= render partial: 'shared/nav_item', locals: { path: folders_path, icon: 'folder' } %> |
14 | | - <%= render partial: 'shared/nav_item', locals: { path: snippets_path, icon: 'snippet' } %> |
15 | | - <%= render partial: 'shared/nav_item', locals: { path: notifications_path, icon: 'bell' } %> |
16 | | - <%= render partial: 'shared/nav_item', locals: { path: connect_path, icon: 'connect' } %> |
| 12 | + <%= render partial: 'shared/nav_item', locals: { path: root_path, page_title: 'Feed', icon: 'home' } %> |
| 13 | + <%= render partial: 'shared/nav_item', locals: { path: folders_path, page_title: 'Folders', icon: 'folder' } %> |
| 14 | + <%= render partial: 'shared/nav_item', locals: { path: snippets_path, page_title: 'Snippets', icon: 'snippet' } %> |
| 15 | + <%= render partial: 'shared/nav_item', locals: { path: notifications_path, page_title: 'Notifications', icon: 'bell' } %> |
| 16 | + <%= render partial: 'shared/nav_item', locals: { path: connect_path, page_title: 'Connect', icon: 'connect' } %> |
| 17 | + <% end %> |
| 18 | + |
| 19 | + <% if @page_title %> |
| 20 | + <div data-controller="tooltip-listener" data-tooltip-listener-target="tooltip" data-action="hide-tooltip@window->tooltip-listener#hide display-tooltip@window->tooltip-listener#display" class="transition shadow-sm px-2 absolute text-sm bg-white text-cyan transform rounded-sm m-auto -bottom-2.5 left-1/2 -translate-x-2/4"> |
| 21 | + <span><%= @page_title %></span> |
| 22 | + </div> |
17 | 23 | <% end %> |
18 | 24 | </div> |
19 | 25 |
|
|
0 commit comments