<% # Copyright (C) 2011 - 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 . %> <% provide :page_title, @tag.title # modules are a bit different, and it's not possible to get the URL to a specific # module using context_url, so we get the URL to a course's modules, and append # the id of the module we're interested in. # if you change this, see also application_controller#content_tag_redirect where # it calls add_crumb cu = context_url(@context, :context_context_modules_url) cu = "#{cu}/#{@tag.context_module.id}" add_crumb @tag.context_module.name, cu add_crumb @tag.title js_bundle :file js_bundle 'module_sequence_footer' %>

<%= @tag.title %>

<% if @tag.try(:new_tab) %> <%= t :new_tab, "This site was opened in a new browser window." %>
@tag.title) %>" aria-label="<%= t("Open %{title} in a new window", :title => @tag.title) %>" rel="noopener noreferrer" > <%= t("Open %{title} in a new window", :title => @tag.title) %>
<% else %> <% if @tag.url.start_with?('http://') %>

<%= t('You are trying to launch insecure content from within a secure site (canvas). Some web browsers may prevent this content from loading.') %>

<% end %> <% css_bundle :ui_listview %> <% end %> <%= render :partial => 'shared/sequence_footer', :locals => {:asset => @tag} %> <% if @tag.try(:new_tab) %> <% end %>