<%= link_to @header_full_urls ? get_url_for(method(:root_url)) : root_path, class: 'brand' do app_name = content_tag :span, @tenant.site_name logo = image_tag(@tenant.site_logo ? @tenant.site_logo : "", class: 'logo', skip_pipeline: true) if @tenant_setting.brand_display == "name_and_logo" logo + app_name elsif @tenant_setting.brand_display == "name_only" app_name elsif @tenant_setting.brand_display == "logo_only" logo end end %>
    <% if @tenant_setting.show_roadmap_in_header %>
  • <%= link_to t('roadmap.title'), @header_full_urls ? get_url_for(method(:roadmap_url)) : roadmap_path, class: 'nav-link' %>
  • <% end %> <%= render 'layouts/boards_nav_section', boards: @boards unless @boards.nil? %>
    <% if user_signed_in? %>
  • <%= image_tag(current_user.gravatar_url, class: 'gravatar', alt: current_user.full_name, size: 24) %> <%= current_user.full_name %> <% if current_user.moderator? && Post.pending.length > 0 %> <%= Post.pending.length %> <% end %>
    <% if current_user.moderator? %>
    <%= t('header.menu.administration_header') %>
    <% if current_user.admin? or current_user.owner? %> <%= link_to t('header.menu.site_settings'), @header_full_urls ? get_url_for(method(:site_settings_general_url)) : site_settings_general_path, class: 'dropdown-item siteSettingsDropdown' %> <% end %> <%= link_to @header_full_urls ? get_url_for(method(:moderation_feedback_url)) : moderation_feedback_path, class: 'dropdown-item moderationDropdown' do %> <%= t('header.menu.moderation') %> <% if Post.pending.length > 0 %>   <%= Post.pending.length %> <% end %> <% end %> <% if current_user.owner? and Rails.application.multi_tenancy? %> <%= link_to @header_full_urls ? get_url_for(method(:request_billing_page_url)) : request_billing_page_path, class: 'dropdown-item', data: {turbolinks: false} do %> <%= t('billing.title') %> <% if not Current.tenant.tenant_billing.has_active_subscription? %> ⚠️ <% end %> <% end %> <% end %>
    <% end %>
    <%= t('header.menu.profile_header') %>
    <%= link_to t('header.menu.profile_settings'), @header_full_urls ? get_url_for(method(:edit_user_registration_url)) : edit_user_registration_path, class: 'dropdown-item' %>
    <% if current_user.admin? %>
    <%= t('header.menu.help_header') %>
    <% unless @boards.empty? %> <%= link_to t('header.menu.tour'), @header_full_urls ? get_url_for(method(:board_url), resource: @boards.first, options: { tour: true }) : board_path(@boards.first, tour: true), class: 'dropdown-item tourDropdown' %> <% end %> <%= link_to t('header.menu.docs'), 'https://docs.astuto.io', class: 'dropdown-item', target: '_blank' %> <%= link_to t('header.menu.support'), Rails.application.multi_tenancy? ? 'mailto:info@astuto.io' : 'https://github.com/astuto/astuto/issues', class: 'dropdown-item', target: '_blank' %>
    <% end %> <% unless @disable_sign_out %> <%= button_to t('header.menu.sign_out'), destroy_user_session_path, method: :delete, class: 'dropdown-item' %> <% else %> Sign out disabled <% end %>
  • <% else %>
  • <%= link_to t('header.log_in'), @header_full_urls ? get_url_for(method(:new_user_session_url)) : new_user_session_path, class: 'nav-link' %>
  • <% end %>