scinote-web/app/views/shared/navigation/_top.html.erb

21 lines
759 B
Text
Raw Normal View History

2023-04-18 16:50:16 +08:00
<% if user_signed_in? %>
2024-04-11 18:45:00 +08:00
<div id="sciNavigationTopMenuContainer" data-turbolinks-permanent data-behaviour="vue" data-e2e="e2e-CO-topMenu">
2023-04-18 16:50:16 +08:00
<top-menu-container
url="<%= top_menu_navigations_path %>"
notifications-url="<%= user_notifications_path %>"
2024-02-23 21:08:51 +08:00
quick-search-url="<%= quick_search_path %>"
unseen-notifications-url="<%= unseen_counter_user_notifications_path %>"
teams-url="<%= visible_teams_teams_path %>"
users-url="<%= visible_users_teams_path %>"
/>
2023-04-18 16:50:16 +08:00
</div>
<% else %>
<div class="sci--navigation--top-menu-container">
<div class="sci--navigation--top-menu-logo">
<a title="SciNote" href="/">
<%= image_tag "scinote_logo.svg", class: "logo" %>
2023-04-18 16:50:16 +08:00
</a>
</div>
</div>
<% end %>