<%- # Copyright (C) 2012 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . -%> > <% if Setting.get('disable_lato_extended', false) == 'false' %> <%= stylesheet_link_tag(css_url_for('lato_extended')) %> <% else %> <%= stylesheet_link_tag(css_url_for('lato')) %> <% end %> <% unless params && (params[:controller]&.starts_with?('login/') || params[:controller]&.starts_with?('oauth')) # some windows apps need to do the oauth login dance from an ie11 webview %> <% end %> <%= render_datadog_rum_js %> <%= favicon_link_tag(favicon) %> <%= favicon_link_tag(brand_variable('ic-brand-apple-touch-icon'), rel: 'apple-touch-icon', type: nil) %> <%= stylesheet_link_tag(active_brand_config_url('css'), media: "all") %> <%= yield :head %> <%= include_custom_meta_tags %> <%= benchmark("include_css_bundles") { include_css_bundles } %> <%= include_account_css %> <% js_bundle :navigation_header unless @headers == false %> <% js_env(active_context_tab: get_active_tab) %> <%= benchmark("include_head_js") { include_head_js } %> <% @xhrs_to_prefetch_from_controller&.each do |(args, kwargs)| %> <%= prefetch_xhr(*args, **kwargs) %> <% end %> <% @content_for_head&.each do |string| %> <%= string %> <% end %> <%= @page_title || (yield :page_title).presence || t('default_page_title', "Canvas LMS") %> <%= render partial: 'layouts/google_analytics_snippet' %> <% if fullstory_enabled_for_session?(session) %> <%= render :partial => "shared/fullstory_snippet" %> <% end %> <% if @include_recaptcha %> <% end %>