• <%= link_to 'Map', map_url, class: "#{active_class?(map_url)}" %>
  • <%= link_to 'Tripsα'.html_safe, trips_url, class: "#{active_class?(trips_url)}" %>
  • <%= link_to 'Stats', stats_url, class: "#{active_class?(stats_url)}" %>
  • <% if user_signed_in? && DawarichSettings.family_feature_enabled? %>
  • <% if current_user.in_family? %>
    <%= link_to family_path, class: "#{active_class?(family_path)} flex items-center space-x-2" do %> Family
    <% end %>
    <% else %> <%= link_to 'Familyα'.html_safe, new_family_path, class: "#{active_class?(new_family_path)}" %> <% end %>
  • <% end %>
  • My data
    • <%= link_to 'Points', points_url, class: "#{active_class?(points_url)}" %>
    • <%= link_to 'Visits & Placesα'.html_safe, visits_url(status: :confirmed), class: "#{active_class?(visits_url)}" %>
    • <%= link_to 'Imports', imports_url, class: "#{active_class?(imports_url)}" %>
    • <%= link_to 'Exports', exports_url, class: "#{active_class?(exports_url)}" %>
    • <%= link_to 'Tags', tags_url, class: "#{active_class?(tags_url)}" %>
  • <% if user_signed_in? && current_user.can_subscribe? %>
  • <%= link_to 'Subscribe', "#{MANAGER_URL}/auth/dawarich?token=#{current_user.generate_subscription_token}", class: 'btn btn-sm btn-success' %>
  • <% end %>
<%= link_to 'Dawarichα'.html_safe, root_path, class: 'btn btn-ghost normal-case text-xl'%>
<% if new_version_available? %> <%= APP_VERSION %> ! <% else %> <%= APP_VERSION %> <% end %>
<% if user_signed_in? %> <% if current_user.theme == 'light' %> <%= link_to settings_theme_path(theme: 'dark'), data: { turbo: false }, class: 'btn btn-ghost' do %> <% end %> <% else %> <%= link_to settings_theme_path(theme: 'light'), data: { turbo: false }, class: 'btn btn-ghost' do %> <% end %> <% end %> <% end %>
  • <%= link_to 'Map', map_url, class: "mx-1 #{active_class?(map_url)}" %>
  • <%= link_to 'Tripsα'.html_safe, trips_url, class: "mx-1 #{active_class?(trips_url)}" %>
  • <%= link_to 'Stats', stats_url, class: "mx-1 #{active_class?(stats_url)}" %>
  • <% if user_signed_in? && DawarichSettings.family_feature_enabled? %>
  • <% if current_user.in_family? %>
    <%= link_to family_path, class: "mx-1 flex items-center space-x-2" do %> Familyα
    <% end %>
    <% else %> <%= link_to 'Familyα'.html_safe, new_family_path, class: "mx-1 #{active_class?(new_family_path)}" %> <% end %>
  • <% end %>
  • My data
    • <%= link_to 'Points', points_url, class: "mx-1 #{active_class?(points_url)}" %>
    • <%= link_to 'Visits & Placesα'.html_safe, visits_url(status: :confirmed), class: "mx-1 #{active_class?(visits_url)}" %>
    • <%= link_to 'Imports', imports_url, class: "#{active_class?(imports_url)}" %>
    • <%= link_to 'Exports', exports_url, class: "#{active_class?(exports_url)}" %>
    • <%= link_to 'Tags', tags_url, class: "#{active_class?(tags_url)}" %>
    <% if user_signed_in? %> <% if current_user.can_subscribe? %>
    <%= link_to "#{MANAGER_URL}/auth/dawarich?token=#{current_user.generate_subscription_token}" do %> <% expiry = current_user.active_until %> <% if expiry.blank? || expiry.past? %> Trial expired 🥺 <% else %> <% days_left = [(expiry.to_date - Time.zone.today).to_i, 0].max %> <%= pluralize(days_left, 'day') %> remaining <% end %> Subscribe <% end %>
    <% end %>
    <%= icon 'bell' %> <% if @unread_notifications.present? %> <%= @unread_notifications.size %> <% end %>
    • <%= link_to 'See all', notifications_path %>
    • <% @unread_notifications.first(10).each do |notification| %>
    • <%= link_to notification do %> <%= notification.title %>
      <% end %>
    • <% end %>
  • <%= icon 'user' %> <% if onboarding_modal_showable?(current_user) %> <% end %> <% if current_user.admin? %> <%= icon 'star' %> <% end %>
    • <%= link_to 'Account', edit_user_registration_path %>
    • <%= link_to 'Settings', settings_path %>
    • <% if !DawarichSettings.self_hosted? %>
    • <%= link_to 'Subscription', "#{MANAGER_URL}/auth/dawarich?token=#{current_user.generate_subscription_token}" %>
    • <% end %>
    • Get started <% if onboarding_modal_showable?(current_user) %> <% end %>
    • <%= link_to 'Logout', destroy_user_session_path, method: :delete, data: { turbo: false } %>
  • <% else %>
  • <%= link_to 'Login', new_user_session_path %>
  • <% if !SELF_HOSTED && defined?(devise_mapping) && devise_mapping&.registerable? %>
  • <%= link_to 'Register', new_user_registration_path %>
  • <% end %> <% end %>