- <%= 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 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 %>