<% # Copyright (C) 2015 - 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 . %> <% hide_self_reg_banner ||= false %> <% if @domain_root_account && @domain_root_account.self_registration? && !hide_self_reg_banner %> <% if @domain_root_account.self_registration_type == 'observer' %> <% js_env :ACCOUNT => account_json(@domain_root_account, nil, session, ['registration_settings']), :PASSWORD_POLICY => @domain_root_account.password_policy %> <%= link_to '#', :id => 'coenrollment_link', :class => "ic-Login__link ic-Login__register-banner", data: reg_link_data(nil) do %>
<%= t('Parent of a Canvas User?') %>
<%= t('Click Here For an Account') %>
<% end %> <% else %> <%= link_to "/register_from_website", :id => 'register_link', :class => "ic-Login__link ic-Login__register-banner" do %>
<%= t('Need a Canvas Account?') %>
<%= t("Click Here, It's Free!") %>
<% end %> <% end %> <% end %>