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

17 lines
579 B
Text
Raw Normal View History

2023-04-18 16:50:16 +08:00
<% if user_signed_in? %>
<div id="sciNavigationTopMenuContainer" data-turbolinks-permanent data-behaviour="vue">
<top-menu-container
url="<%= top_menu_navigations_path %>"
notifications-url="<%= user_notifications_path %>"
unseen-notifications-url="<%= unseen_counter_user_notifications_path %>" />
</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 %>