explorak5_login_prueba 6.0.3 → 6.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c9fd2fa5e42fad01c7c0a1d89c18f519cfa6f15399f3c5bbc64fcfcf289e4cf
4
- data.tar.gz: eb575b84fa45523d39febcfc727e71023c4268221c08a70e56f595511d7db13b
3
+ metadata.gz: a688b28bdb8ddc5ef2a361ac5d3ae4303ab8a262279875b2e4dd07fa476458d8
4
+ data.tar.gz: e7a3c0981ffbd145c44b0b124bf360e037ce1714fa48e2e105477413408b7dfa
5
5
  SHA512:
6
- metadata.gz: d3e563bf71ef9e9b297db6c393fbf4a511debde1a74222fb3d30caf63afba7e27bcc59423b77f49cf029cf57bc5487e5f01b97d5ccbd909801e97ddf6964affb
7
- data.tar.gz: 47b931e160d6058c3b555bfe6bd5d75a92158bbb2418268b605a9b0aa0754c7e19b5bcab80b6acf42de84fe5eccee92a7be513ebda1d4ea549da83c56c0fb93d
6
+ metadata.gz: dbfa35f7e98b3f39edbff21af23b00c200575547d87afecc32996646dd5a81fed6465f54d0e120bd30131d2dc857e3ccd32afe4b8bfeca76ef57e54e3b4c75aa
7
+ data.tar.gz: 951d2e8727db18c96933b12b3ab84315555a39961a05908cedf456567bcfc3deb34d0f4cf4a4e799d96054e9faacd926ea4a9ff4e51937e39fd722d6da7e1499
@@ -0,0 +1,20 @@
1
+ <%
2
+ # Copyright (C) 2015 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <% url = (params[:canvas_login] != '1' && @domain_root_account.try(:forgot_password_external_url)) || "#" %>
20
+ <%= link_to t('dont_know_password', "Forgot Password?"), url, :class => (url != '#' ? "ic-Login__link not_external" : "ic-Login__link forgot_password_link"), :id => "login_forgot_password" %>
@@ -0,0 +1,34 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="110" height="16" viewBox="25 265 743 80"><title>Instructure</title>
2
+ <g class="ic-Instructure-Logo">
3
+ <g>
4
+ <polygon class="st0" points="23.8,331.5 72.3,358.8 120.7,331.5 72.3,304.2 "/>
5
+ <polygon class="st0" points="98.4,293.7 120.7,281.1 98.3,268.5 76,281.1 "/>
6
+ <polygon class="st0" points="94.6,266.4 72.3,253.8 49.9,266.4 72.3,279 "/>
7
+ <polygon class="st0" points="68.5,281.1 46.2,268.5 23.8,281.1 46.2,293.7 "/>
8
+ </g>
9
+ <g>
10
+ <path class="st0" d="M166.3,344.9v-78.1h12.9v78.1H166.3z"/>
11
+ <path class="st0" d="M202,344.9v-78.1H215l16.4,48.3v-48.3h11.8v78.1h-12.3l-17.1-50.7v50.7H202z"/>
12
+ <path class="st0" d="M357.4,278.2h-13v66.7h-12.9v-66.7h-13v-11.4h39V278.2z"/>
13
+ <path class="st0" d="M404.6,344.9l-9.9-31.1h-6.5v31.1h-12.9v-78.1h20.2c11.8,0,19.6,4.7,19.6,16.5v13.9c0,7.5-3.1,12.2-8.5,14.5
14
+ l11.2,33.1H404.6z M388.2,302.7h6.8c4.2,0,7.1-1.6,7.1-7.1v-10.1c0-5.6-2.9-7.1-7.1-7.1h-6.8V302.7z"/>
15
+ <path class="st0" d="M475.4,329.3c0,12-7.6,16.5-19.4,16.5h-0.4c-11.8,0-19.4-4.4-19.4-16.5v-62.5h12.9v60.5
16
+ c0,5.6,2.5,7.1,6.7,7.1c4.2,0,6.7-1.6,6.7-7.1v-60.5h12.9V329.3z"/>
17
+ <path class="st0" d="M536.5,329.3c0,12-7.8,16.5-19.6,16.5h-0.2c-11.8,0-19.6-4.4-19.6-16.5v-46.8c0-11.6,7.8-16.5,19.6-16.5h0.2
18
+ c11.8,0,19.6,4.9,19.6,16.5v9h-12.9v-7c0-5.5-2.7-7.1-6.8-7.1c-4.1,0-6.8,1.7-6.8,7.1v42.8c0,5.5,2.7,7.1,6.8,7.1
19
+ c4.1,0,6.8-1.7,6.8-7.1v-8.9h12.9V329.3z"/>
20
+ <path class="st0" d="M592.1,278.2h-13v66.7h-12.9v-66.7h-13v-11.4h39V278.2z"/>
21
+ <path class="st0" d="M649,329.3c0,12-7.6,16.5-19.4,16.5h-0.4c-11.8,0-19.4-4.4-19.4-16.5v-62.5h12.9v60.5c0,5.6,2.5,7.1,6.7,7.1
22
+ c4.2,0,6.7-1.6,6.7-7.1v-60.5H649V329.3z"/>
23
+ <path class="st0" d="M700.4,344.9l-9.9-31.1H684v31.1H671v-78.1h20.2c11.8,0,19.6,4.7,19.6,16.5v13.9c0,7.5-3.1,12.2-8.5,14.5
24
+ l11.2,33.1H700.4z M684,302.7h6.8c4.2,0,7.1-1.6,7.1-7.1v-10.1c0-5.6-2.9-7.1-7.1-7.1H684V302.7z"/>
25
+ <path class="st0" d="M289.8,289.5v-5.7c0-4.9-2.8-6.7-6.6-6.7c-3.8,0-6.6,1.8-6.6,6.7v5.4c0,4,1.3,5.8,5,7.9l9.1,5.1
26
+ c7.5,4.2,11.9,7.7,11.9,16.1v11.3c0,12-7.5,16.3-19.3,16.3h-0.2c-11.8,0-19.3-4.1-19.3-16.3v-8.4h12.7v6.6c0,4.8,2.8,6.9,6.7,6.9
27
+ c3.9,0,6.7-2.1,6.7-6.9v-6.1c0-4-1.2-6-5.1-8.1l-9-5.1c-7.6-4.3-11.9-7.9-11.9-16.1V282c0-11.6,8.5-16.1,19.2-16.1h0.2
28
+ c10.7,0,19.2,4.5,19.2,16.1v7.5H289.8z"/>
29
+ <polygon class="st0" points="732.5,344.9 732.5,266.9 766.7,266.9 766.7,278.2 745.4,278.2 745.4,299.6 763.3,299.6 763.3,311
30
+ 745.4,311 745.4,333.5 767,333.5 767,344.9 "/>
31
+ </g>
32
+ </g>
33
+
34
+ </svg>
@@ -0,0 +1,49 @@
1
+ <%
2
+ # Copyright (C) 2015 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <% hide_self_reg_banner ||= false %>
20
+
21
+ <% if @domain_root_account && @domain_root_account.self_registration? && !hide_self_reg_banner %>
22
+ <% if @domain_root_account.self_registration_type == 'observer' %>
23
+ <% js_env :ACCOUNT => account_json(@domain_root_account, nil, session, ['registration_settings']),
24
+ :PASSWORD_POLICY => @domain_root_account.password_policy %>
25
+ <%= link_to '#',
26
+ :id => 'coenrollment_link',
27
+ :class => "ic-Login__link ic-Login__register-banner",
28
+ data: reg_link_data(nil) do %>
29
+ <div class="ic-Login__banner-title">
30
+ <%= t('Parent of a Canvas User?') %>
31
+ </div>
32
+ <div class="ic-Login__banner-subtitle">
33
+ <%= t('Click Here For an Account') %>
34
+ </div>
35
+ <% end %>
36
+ <% else %>
37
+ <%= link_to "/register_from_website",
38
+ :id => 'register_link',
39
+ :class => "ic-Login__link ic-Login__register-banner" do %>
40
+ <div class="ic-Login__banner-title">
41
+ <%= t('Need a Canvas Account?') %>
42
+ </div>
43
+ <div class="ic-Login__banner-subtitle">
44
+ <%= t("Click Here, It's Free!") %>
45
+ </div>
46
+ <% end %>
47
+ <% end %>
48
+ <% end %>
49
+
@@ -30,6 +30,7 @@
30
30
  nil
31
31
  end
32
32
  %>
33
+
33
34
  <div>
34
35
  <button onclick="window.open('http://www.espol.edu.ec')" style="background-image:url('/images/images_k5/logoespol.png')" class="btn-img-login-espol" alt="Logo Espol"></button>
35
36
  </div>
@@ -45,14 +46,6 @@
45
46
 
46
47
  <div class="ic-Login-header">
47
48
  <%= render :partial => 'login/shared/header_logo' %>
48
- <div class="ic-Login-header__links">
49
- <%= render "login/canvas/login_banner" %>
50
- <% if @domain_root_account.enable_course_catalog? %>
51
- <a href="/search/all_courses" class="ic-Login__link">
52
- <%= t('browse_courses', 'Browse courses') %>
53
- </a>
54
- <% end %>
55
- </div>
56
49
  </div>
57
50
 
58
51
  <div class="ic-Login__body">
@@ -83,8 +76,12 @@
83
76
  <%= render "login/canvas/forgot_password_link" %>
84
77
  </div>
85
78
  </div>
79
+ <br>
86
80
  <div class="ic-Form-control ic-Form-control--login">
87
- <%= submit_tag t('log_in', 'Log In'), type: login_btn_type, class: "Button Button--login" %>
81
+ <button type="<%= login_btn_type %>" class="Button Button--login">
82
+ <%= t('log_in', 'Log In') %>
83
+ <img src='/images/images_k5/flecha.svg' style="width: 10%; margin-left: 5%"/>
84
+ </button>
88
85
  </div>
89
86
  </div> <!-- ic-Login__actions -->
90
87
  <%= render partial: "sso_buttons", locals: { aacs: @aacs_with_buttons } %>
@@ -99,37 +96,21 @@
99
96
  <%= login_handle_name %>
100
97
  </label>
101
98
  <input aria-describedby="forgot_password_instructions" class="ic-Input email_address text" type="text" name="pseudonym_session[unique_id_forgot]" value="" id="pseudonym_session_unique_id_forgot" />
102
-
103
99
  </div>
104
100
  <div class="ic-Form-control ic-Form-control--login">
105
101
  <div class="ic-Login__actions">
106
- <%= link_to t('back_to_login', "Back to Login"), login_path, :class => "ic-Login__actions--left ic-Login__link login_link"%>
102
+ <a href="/" ><img src='/images/images_k5/flecha.png' style="width: 10%; transform: rotate(-180deg);"/></a>
103
+ <%=link_to t('back_to_login', "Back to Login"), login_path, :class => "ic-Login__actions--left ic-Login__link login_link"%>
104
+ <p></p>
107
105
  <button type="<%= forgot_password_btn_type %>" class="Button Button--login">
108
106
  <%= t('buttons.request_password', 'Request Password') %>
107
+ <img src='/images/images_k5/flecha.png' style="width: 10%; margin-left: 5%"/>
109
108
  </button>
110
109
  </div> <!-- end ic-Login__actions -->
111
110
  </div>
112
111
  <% end %>
113
112
  </div> <!-- end ic-Login__body -->
114
113
  </div> <!-- end ic-Login__innerContent -->
115
- <footer role="contentinfo" id="footer" class="ic-Login-footer">
116
-
117
- <div id="footer-links" class="ic-Login-footer__links">
118
- <% if Setting.get("show_opensource_linkback", "false") == "true" %>
119
- <a href="http://instructure.com">
120
- <%= t('open_source_learning_management_system', 'Open Source LMS') %>
121
- </a>
122
- <% end %>
123
- <%= help_link %>
124
- <%= render :partial => 'shared/footer_links' %>
125
- </div>
126
- <a href="http://www.instructure.com" class="ic-Login-footer__logo-link" aria-label="By Instructure">
127
- <%= render partial: "login/canvas/instructure_logo", formats: [:svg] %>
128
- </a>
129
- <div id="footer-epilogue" class="ic-Login-footer__links">
130
- <%= render :partial => 'shared/footer_epilogue' %>
131
- </div>
132
- </footer>
133
114
  </div> <!-- end ic-Login__content -->
134
115
  </div>
135
- </div> <!-- end ic-Login -->
116
+ </div> <!-- end ic-Login -->
@@ -0,0 +1,40 @@
1
+ <%
2
+ # Copyright (C) 2015 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <% if aacs.present? %>
20
+ <div class="ic-Login__sso">
21
+ <ul class="ic-Login__sso-list">
22
+ <% aacs.each do |aac| %>
23
+ <% only_one = aacs.size < 2 %>
24
+ <% only_one_of_type = aacs.select { |a| a.auth_type == aac.auth_type }.size < 2 %>
25
+ <li class="ic-Login__sso-list__item">
26
+ <a href="/login/<%= aac.auth_type %><%= only_one_of_type ? '' : "/#{aac.id}" %>"
27
+ class="Button Button--primary <%= only_one ? 'ic-Login__sso-button--has-text ' : '' %>ic-Login__sso-button ic-Login__sso-button--<%= aac.auth_type %>">
28
+ <%= render partial: "shared/auth_type_icon",
29
+ locals: {
30
+ auth_type: aac.auth_type,
31
+ sr_message: only_one ? nil : aac.class.login_message,
32
+ with_login_text: only_one ? aac.class.login_message : nil
33
+ } %>
34
+ </a>
35
+
36
+ </li>
37
+ <% end %>
38
+ </ul>
39
+ </div>
40
+ <% end %>
@@ -0,0 +1,144 @@
1
+ <%
2
+ # Copyright (C) 2011 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <% js_bundle :mobile_login %>
20
+
21
+ <% extend Api::V1::Account %>
22
+ <%
23
+ unique_id = begin
24
+ params.dig(:pseudonym_session, :unique_id)&.to_s
25
+ rescue TypeError
26
+ nil
27
+ end
28
+ %>
29
+
30
+ <div class="mobileLogin-Header">
31
+ <span class="screenreader-only">
32
+ <%= t 'Canvas by Instructure' %>
33
+ <script type="text/javascript">
34
+ window.onload = function() {
35
+ var msg
36
+ var email = document.querySelector('[placeholder="Email"]')
37
+ function showMessage() {
38
+ var elt = document.querySelector('span#screenreader-errormsg')
39
+ if (elt) elt.innerText = msg
40
+ }
41
+ <% if request.post? && flash[:error] %>
42
+ msg = '<%= t "Error logging in: %{error_msg}", error_msg: flash[:error] %>'
43
+ setTimeout(showMessage, 1500)
44
+ if (email) email.focus()
45
+ <% end %>
46
+ }
47
+ </script>
48
+ <span aria-live="assertive" id="screenreader-errormsg"></span>
49
+ </span>
50
+ </div>
51
+ <%= form_for :pseudonym_session, :url => url_for({ action: :create }.merge(params.slice(:id).to_unsafe_h)), :html => {:id => "login_form", :class => "front face", :novalidate => 'novalidate', :autocomplete => "off" } do |f| %>
52
+
53
+ <div class="ic-Form-control">
54
+ <input
55
+ class="ic-Input"
56
+ autocomplete="off"
57
+ autocorrect="off"
58
+ placeholder="<%= @login_handle_name%>"
59
+ type="<%= @login_handle_is_email ? 'email' : 'text' %>"
60
+ name="pseudonym_session[unique_id]"
61
+ value="<%= unique_id %>" />
62
+ </div>
63
+ <div class="ic-Form-control">
64
+ <input
65
+ class="ic-Input"
66
+ type="password"
67
+ name="pseudonym_session[password]"
68
+ autocomplete="off"
69
+ autocorrect="off"
70
+ placeholder="<%= t :password, "Password" %>" />
71
+ </div>
72
+ <button
73
+ type="submit"
74
+ class="Button Button--primary Button--block"><%= t('log_in', 'Log In') %>
75
+ </button>
76
+
77
+ <% if request.post? && flash[:error] %>
78
+ <div aria-hidden="true" class="error"><%= flash[:error] %></div>
79
+ <% end %>
80
+
81
+ <div class="forgotBlock">
82
+ <% if url = params[:canvas_login].blank? && @domain_root_account.try(:forgot_password_external_url) %>
83
+ <%= link_to t('dont_know_password', "Forgot Password?"), url, :class => 'forgot-password' %>
84
+ <% else %>
85
+ <a tabindex="0" role="link" class="forgot-password flip-to-back"><%= t('dont_know_password', "Forgot Password?") %></a>
86
+ <% end %>
87
+ </div>
88
+ <% end %>
89
+ <%= form_for :pseudonym_session, :url => forgot_password_path, :html => {:id => "forgot_password_form", :class => 'back face', :autocomplete => "off" } do |f| %>
90
+ <div class="ic-Form-control">
91
+ <label for="pseudonym_session_unique_id_forgot" class="screenreader-only"><%= t('login_handle', "Enter your %{login_handle_name} and we'll send you a link to change your password.", :login_handle_name => @login_handle_name) %></label>
92
+ <input
93
+ class="ic-Input"
94
+ autocomplete="off"
95
+ autocorrect="off"
96
+ type="<%= @login_handle_is_email ? 'email' : 'text' %>"
97
+ name="pseudonym_session[unique_id_forgot]"
98
+ value=""
99
+ placeholder="<%= @login_handle_name %>"
100
+ id="pseudonym_session_unique_id_forgot" />
101
+ </div>
102
+ <button
103
+ type="submit"
104
+ class="Button Button--primary Button--block request-password-button"
105
+ data-text-while-loading="<%= t(:sending, "Sending...") %>"
106
+ data-text-when-loaded="<%= t(:sent, "Sent!") %>"
107
+ data-text-on-error="<%= t(:error, "An error occurred, please try again later.") %>"
108
+ >
109
+ <%= t('buttons.request_password', 'Request Password') %>
110
+ </button>
111
+ <div class="forgotBlock">
112
+ <a tabindex="0" role="link" class="flip-to-front"><%= t('back_to_login', "Back to Login") %></a>
113
+ </div>
114
+ <% end %>
115
+
116
+ <% if @domain_root_account && @domain_root_account.self_registration? %>
117
+ <% if @domain_root_account.self_registration_type == 'observer' %>
118
+ <% js_env :ACCOUNT => account_json(@domain_root_account, nil, session, ['registration_settings']),
119
+ :PASSWORD_POLICY => @domain_root_account.password_policy %>
120
+ <div id='coenrollment_link' class='enrollment_link'>
121
+ <div class="ic-Login__banner-title">
122
+ <%= t('Parent of a Canvas User?') %>
123
+ </div>
124
+ <%= link_to '#',
125
+ :class => "ic-Login__link ic-Login__register-banner ic-Login__banner-subtitle",
126
+ data: reg_link_data(nil) do %>
127
+ <%= t('Create Account') %>
128
+ <% end %>
129
+ </div>
130
+ <% else %>
131
+ <div class='enrollment_link'>
132
+ <%= link_to "/register_from_website",
133
+ :id => 'register_link',
134
+ :class => "ic-Login__link ic-Login__register-banner" do %>
135
+ <div class="ic-Login__banner-title">
136
+ <%= t('Need a Canvas Account?') %>
137
+ </div>
138
+ <div class="ic-Login__banner-subtitle">
139
+ <%= t("Click Here, It's Free!") %>
140
+ </div>
141
+ <% end %>
142
+ </div>
143
+ <% end %>
144
+ <% end %>
@@ -0,0 +1,32 @@
1
+ <%
2
+ # Copyright (C) 2015 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <%
20
+ css_bundle :login
21
+ js_bundle :login
22
+ provide :page_title, t(:page_title, "Log In to Canvas")
23
+ %>
24
+
25
+ <% extend Api::V1::Account %>
26
+
27
+ <% add_body_class "full-width ic-Login-Body" %>
28
+ <%= render "login/canvas/new_login_content" %>
29
+
30
+ <% if flash[:logged_out] && HostUrl.file_host(@domain_root_account, request.host_with_port) %>
31
+ <img class="hidden-readable" src="//<%= HostUrl.file_host(@domain_root_account, request.host_with_port) %>/file_session/clear"/>
32
+ <% end %>
@@ -0,0 +1,43 @@
1
+ <%
2
+ # Copyright (C) 2024 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <%
20
+ css_bundle :login_confirm
21
+ @headers = false
22
+ add_body_class "full-width modal body--login-confirmation"
23
+ provide :page_title, t("Account Verification Required")
24
+ %>
25
+
26
+ <div id="modal-box" class="ic-Login-confirmation">
27
+ <header class="ic-Login-confirmation__header">
28
+ <%= image_tag("login/canvas-logo@2x.png", class: "ic-Login-confirmation__logo", alt: "Canvas by Instructure") %>
29
+ </header>
30
+ <div class="ic-Login-confirmation__content">
31
+ <h2 class="ic-Login-confirmation__headline"><%= t("Account Verification Required") %></h2>
32
+ <p><%= t("To secure your account, you must validate your email before you can log in to Canvas.") %></p>
33
+ <p><%= t("A verification code has been sent to %{email}. Please provide this code below:", email: @verification_email) %></p>
34
+ <%= form_tag login_email_verify_url do %>
35
+ <%= hidden_field_tag :d, @jwt %>
36
+ <%= text_field_tag :code, nil, class: "ic-Input", placeholder: t("Verification Code"), autocomplete: "off" %>
37
+ <div class="button_box ic-Login-confirmation__actions">
38
+ <%= submit_tag(t("Submit"), class: "Button Button--primary") %>
39
+ <%= link_to(t("Cancel"), login_url, :class => "Button Button--secondary") %>
40
+ </div>
41
+ <% end %>
42
+ </div>
43
+ </div>
@@ -0,0 +1,53 @@
1
+ <%
2
+ # Copyright (C) 2014 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <%
20
+ css_bundle :login
21
+ @headers = false
22
+ provide :page_title, t(:page_title, "Log Out")
23
+ add_body_class "full-width ic-Login-Body"
24
+ %>
25
+ <div class="ic-Login">
26
+ <div class="ic-Login__container">
27
+ <div class="ic-Login__content">
28
+ <div class="ic-Login__innerContent">
29
+ <div class="ic-Login__header">
30
+ <%= render :partial => 'login/shared/header_logo' %>
31
+ </div>
32
+ <div class="ic-Login__body">
33
+ <h1 class="ic-Login__title">
34
+ <%= t 'log_out', 'Log Out' %>
35
+ </h1>
36
+ <p class="ic-Login__text">
37
+ <%= t 'details.log_out', 'Are you sure you want to log out of Canvas?' %>
38
+ </p>
39
+ <%= form_tag logout_path, method: :delete do %>
40
+ <div class="ic-Login__actions">
41
+ <%= link_to(t(:cancel, "Cancel"), '/', :class => "ic-Login__link") %>
42
+ <div class="ic-Login__actions--right">
43
+ <button type="submit" class="Button Button--login" id="Button--logout-confirm">
44
+ <%= t("Log Out") %>
45
+ </button>
46
+ </div>
47
+ </div>
48
+ <% end %>
49
+ </div> <!-- end ic-Login__body -->
50
+ </div> <!-- end ic-Login__innerContent -->
51
+ </div> <!-- end ic-Login__content -->
52
+ </div> <!-- end ic-Login__content -->
53
+ </div> <!-- end ic-Login__container -->
@@ -0,0 +1,46 @@
1
+ <%
2
+ # Copyright (C) 2014 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <%
20
+ css_bundle :login
21
+ @headers = false
22
+ provide :page_title, t(:page_title, "Logged Out")
23
+ add_body_class "full-width ic-Login-Body"
24
+ %>
25
+ <div class="ic-Login">
26
+ <div class="ic-Login__container">
27
+ <div class="ic-Login__content">
28
+ <div class="ic-Login__innerContent">
29
+ <div class="ic-Login__header">
30
+ <%= render :partial => 'login/shared/header_logo' %>
31
+ </div>
32
+ <div class="ic-Login__body">
33
+ <h1 class="ic-Login__title">
34
+ <%= t 'Logged Out' %>
35
+ </h1>
36
+ <p class="ic-Login__text">
37
+ <%= t 'You are logged out of Canvas.' %>
38
+ </p>
39
+ <div class="ic-Login__actions">
40
+ <%= link_to(t("Click here to log in again"), login_url, :class => "ic-Login__link") %>
41
+ </div>
42
+ </div> <!-- end ic-Login__body -->
43
+ </div> <!-- end ic-Login__innerContent -->
44
+ </div> <!-- end ic-Login__content -->
45
+ </div> <!-- end ic-Login__content -->
46
+ </div> <!-- end ic-Login__container -->
@@ -0,0 +1,36 @@
1
+ <%
2
+ # Copyright (C) 2015 - present Instructure, Inc.
3
+ #
4
+ # This file is part of Canvas.
5
+ #
6
+ # Canvas is free software: you can redistribute it and/or modify it under
7
+ # the terms of the GNU Affero General Public License as published by the Free
8
+ # Software Foundation, version 3 of the License.
9
+ #
10
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
+ # details.
14
+ #
15
+ # You should have received a copy of the GNU Affero General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ %>
18
+
19
+ <% provide :page_title do %>
20
+ <%= t 'Failed to Log In' %>
21
+ <% end %>
22
+
23
+ <div id="unauthorized_holder">
24
+ <% css_bundle("unauthorized_message") %>
25
+ <div id="unauthorized_message">
26
+ <h2 class="ui-state-error">
27
+ <%= t 'Failed to Log In' %>
28
+ </h2>
29
+ <p>
30
+ <%= flash[:delegated_message] %>
31
+ </p>
32
+ <p>
33
+ <%= t "You can try to *log in again*.", wrapper: link_to('\1', login_url) %>
34
+ </p>
35
+ </div>
36
+ </div>