mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
- Remove links to demo and docs website from README
- Remove most links across the codebase referring to docs.astuto.io and astuto.io
Goodbye, Astuto 🥲
114 lines
5.7 KiB
Plaintext
114 lines
5.7 KiB
Plaintext
<nav class="header">
|
|
<div class="container">
|
|
<%=
|
|
link_to get_url_for_logo, class: "brand#{@tenant_setting.logo_links_to == 'nothing' ? ' brandDisabled' : ''}", tabindex: @tenant_setting.logo_links_to == 'nothing' ? -1 : 0 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
|
|
%>
|
|
|
|
<button
|
|
class="navbarToggler"
|
|
type="button"
|
|
data-toggle="collapse"
|
|
data-target="#navbarSupportedContent"
|
|
aria-controls="navbarSupportedContent"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation"
|
|
>
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="boardsNav">
|
|
<% if @tenant_setting.show_roadmap_in_header %>
|
|
<li class="nav-item<%= (current_page?(roadmap_path) or (@tenant_setting.root_board_id == 0 and current_page?(root_path))) ? ' active' : '' %>">
|
|
<%= link_to t('roadmap.title'), @header_full_urls ? get_url_for(method(:roadmap_url)) : roadmap_path, class: 'nav-link' %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<%= render 'layouts/boards_nav_section', boards: @boards unless @boards.nil? %>
|
|
</ul>
|
|
|
|
<ul class="profileNav">
|
|
<% if user_signed_in? %>
|
|
<li class="nav-item dropdown">
|
|
<a class="profileToggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<%= image_tag(current_user.gravatar_url, class: 'gravatar', alt: current_user.full_name, size: 24) %>
|
|
<span class="fullname"><%= current_user.full_name.truncate(24) %></span>
|
|
<% if current_user.moderator? && Post.pending.length > 0 %>
|
|
<span class="notificationDot notificationDotTop"><%= Post.pending.length %></span>
|
|
<% end %>
|
|
</a>
|
|
<div class="dropdown-menu" onclick="event.stopPropagation()" aria-labelledby="navbarDropdown">
|
|
<% if current_user.moderator? %>
|
|
<h6 class="dropdown-header"><%= t('header.menu.administration_header') %></h6>
|
|
<% 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 %>
|
|
|
|
<span class="notificationDot"><%= Post.pending.length %></span>
|
|
<% 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? %>
|
|
<span style="color: red; font-size: 18px;">⚠️</span>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
<% end %>
|
|
|
|
<h6 class="dropdown-header"><%= t('header.menu.profile_header') %></h6>
|
|
<%= 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' %>
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<% if current_user.admin? %>
|
|
<h6 class="dropdown-header"><%= t('header.menu.help_header') %></h6>
|
|
<% 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://github.com/astuto/astuto-docs', 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' %>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
<% end %>
|
|
|
|
<% unless @disable_sign_out %>
|
|
<%= button_to t('header.menu.sign_out'), destroy_user_session_path, method: :delete, class: 'dropdown-item' %>
|
|
<% else %>
|
|
<small style="font-size: 12px; color: grey; padding: 0.25rem 1.5rem;">
|
|
Sign out disabled
|
|
</small>
|
|
<% end %>
|
|
</div>
|
|
</li>
|
|
<% else %>
|
|
<li class="nav-item">
|
|
<%= link_to t('header.log_in'), @header_full_urls ? get_url_for(method(:new_user_session_url)) : new_user_session_path, class: 'nav-link' %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav> |