<% if user_signed_in? %> <%= RailsBase.config.app.web_name_logged_in(current_user) %> <% else %> <%= RailsBase.config.app.web_name_logged_out %> <% end %> <% unless defined?(@error_page) %> <%= csrf_meta_tags %> <%= csp_meta_tag %> <% # dont load turbolinks twice when we render error pages %> <% # casues Uncaught Error: rails-ujs has already been loaded! %> <%= javascript_include_tag 'rails_base/application', 'data-turbolinks-track': 'reload' %> <% end %> <%= stylesheet_link_tag 'rails_base/application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= if RailsBase.config.app.favicon_path favicon_link_tag 'rails_base/favicon.ico' end %> <% rails_base_alert = "alertid-#{(10**10*rand).to_i}" %> <% rails_base_success = "successid-#{(10**10*rand).to_i}"%>
<% if current_user %> <%= render partial: 'rails_base/shared/logged_in_header'%> <% else %> <%= render partial: 'rails_base/shared/logged_out_header'%> <% end %> <% if notice %> <% end %> <% if alert %> <% end %>
<%= yield %>
<% if RailsBase.appearance.footer.enable? %> <% end %>