explorak5_canvas_login 0.2.0 → 0.4.0

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: 6898df192b804e330b248a70ce276b7462db97fc2500c3273b1b4197ac4c6f08
4
- data.tar.gz: f0c4ae0cba2e21ecb91502ea326d3943c592948b0ab0630832c7faea2ff8d98b
3
+ metadata.gz: e4d75412ae494627f1db7597741441ed7757e8b59761556ec15bfc945267399f
4
+ data.tar.gz: 6a403ccc44040e9347fca1467db0e8502ad975d113e26ba56cb6abad3de11f42
5
5
  SHA512:
6
- metadata.gz: 37a8c405a91849888e9863be08e780d8a716b04f0ec6f2f86fa21326833341728395f1cfa614ad42d2299230b8c6c71024ee6f333c57a88fd3cd87622fa267ed
7
- data.tar.gz: 19915c5497f615e0f4c7a8ab410bc2e89e2c4c608d0f8f9d45b0f4683904932e271af0cbd710ef8f26b35678eb91430aaeac82033026802493c5ca1a6f16ec55
6
+ metadata.gz: 30e8ba34d3de805ea78256e7be76cb37688f1f28a42654c714c8ccb41c6f4093a55979018c05bc5b928b78f35d61a1ac9606ca17e6d8faff2797de08d7683789
7
+ data.tar.gz: bbdfd7070806577cf94b1cbd837871176b55247e6681620ce660e2b609dafbda37b65702ba960c54ae0d0049e4b80e412d236b1c220488ce62882038ad55bb49
@@ -0,0 +1,206 @@
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
+ <% js_bundle :navigation_header %>
20
+
21
+ <% if @domain_root_account && @domain_root_account.feature_enabled?(:product_tours) %>
22
+ <% js_bundle :nav_tourpoints %>
23
+ <% end %>
24
+
25
+ <%
26
+ if k5_user?
27
+ dashboard_title = t('Home')
28
+ dashboard_icon_path = "shared/svg/svg_icon_home"
29
+ courses_title = t('Subjects')
30
+ else
31
+ dashboard_title = t('Dashboard')
32
+ dashboard_icon_path = "shared/svg/#{'k12/' if k12?}svg_icon_dashboard"
33
+ courses_title = t('Courses')
34
+ end
35
+ %>
36
+
37
+
38
+ <header id="mobile-header" class="no-print">
39
+ <div aria-hidden="true" style="min-width: 20%; display:flex; justify-content: space-between; padding-top: 1rem; padding-left:1rem; padding-right: 1rem;" class="fs-exclude <% if @real_current_user && @real_current_user != @current_user %>ic-avatar--fake-student<% end %>">
40
+ <a id="hamburguer-menu" class="ic-app-header__logomark"></a>
41
+ <div id=myLinks>
42
+ <ul id="menu" class="ic-app-header__menu-list">
43
+ <li class="menu-item ic-app-header__menu-list-item">
44
+ <a id="global_nav_calendar_link" href="/" class="ic-app-header__menu-list-link">
45
+ <div class="menu-item-icon-container" aria-hidden="true">
46
+ <img src='/images/images_k5/Página de Inicio.png' alt="Tablero"></img>
47
+ </div>
48
+ <div class="menu-item__text">Inicio | Mis Materias</div>
49
+ </a>
50
+ </li>
51
+ <% if @current_user && @current_user.roles(@domain_root_account).include?('admin') %>
52
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/accounts') %>">
53
+ <a id="global_nav_accounts_link" role="button" href="/accounts" class="ic-app-header__menu-list-link">
54
+ <div class="menu-item-icon-container" aria-hidden="true">
55
+ <%= render(:partial => "shared/svg/svg_icon_accounts_new_styles", formats: [:svg]) %>
56
+ </div>
57
+ <div class="menu-item__text">
58
+ <%= t('Admin') %>
59
+ </div>
60
+ </a>
61
+ </li>
62
+ <% end %>
63
+ <% if @current_user && @current_user.adminable_accounts.present? %>
64
+ <li class="menu-item ic-app-header__menu-list-item <%= 'ic-app-header__menu-list-item--active' if active_path?('/courses') %>">
65
+ <a id="global_nav_courses_link" role="button" href="<%= courses_path %>" class="ic-app-header__menu-list-link">
66
+ <div class="menu-item-icon-container" aria-hidden="true">
67
+ <!--<%= render(partial: "shared/svg/#{'k12/' if k12?}svg_icon_courses_new_styles", formats: [:svg]) %>-->
68
+ <img src='/images/images_k5/1._materias.png' alt="Cursos"></img>
69
+ </div>
70
+ <div class="menu-item__text">Cursos</div>
71
+ </a>
72
+ </li>
73
+ <% end %>
74
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/calendar') %>">
75
+ <a id="global_nav_calendar_link" href="/calendar" class="ic-app-header__menu-list-link">
76
+ <div class="menu-item-icon-container" aria-hidden="true">
77
+ <!--<%= render(partial: "shared/svg/#{'k12/' if k12?}svg_icon_calendar_new_styles", formats: [:svg]) %>-->
78
+ <img src='/images/images_k5/2._calendario.png' alt="Calendario"></img>
79
+ </div>
80
+ <div class="menu-item__text">Calendario</div>
81
+ </a>
82
+ </li>
83
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/conversations') %>">
84
+ <a id="global_nav_conversations_link" href="/conversations" class="ic-app-header__menu-list-link">
85
+ <div class="menu-item-icon-container">
86
+ <%# <span aria-hidden="true"> %>
87
+ <!--<%= render(partial: "shared/svg/#{'k12/' if k12?}svg_icon_inbox", formats: [:svg]) %>-->
88
+ <img src='/images/images_k5/3._mensajes.png' alt="Mensajes"></img>
89
+ <%# </span> %>
90
+ </div>
91
+ <div class="menu-item__text">Conversaciones</div>
92
+ </a>
93
+ </li>
94
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/agenda') %>">
95
+ <a id="global_nav_conversations_link" href="/agenda" class="ic-app-header__menu-list-link">
96
+ <div class="menu-item-icon-container">
97
+ <img src='/images/images_k5/agenda.png' alt="Agenda"></img>
98
+ </div>
99
+ <div class="menu-item__text">Agenda</div>
100
+ </a>
101
+ </li>
102
+ <% if @current_user && @current_user.roles(@domain_root_account).include?('admin') %>
103
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/reporte') %>">
104
+ <a id="global_nav_conversations_link" href="/reporte" class="ic-app-header__menu-list-link">
105
+ <div class="menu-item-icon-container">
106
+ <img src='/images/images_k5/icono_reporte.png' alt="Reportes"></img>
107
+ </div>
108
+ <div class="menu-item__text">Reportes</div>
109
+ </a>
110
+ </li>
111
+ <% end %>
112
+ <li class="menu-item ic-app-header__menu-list-item">
113
+ <a class="logout ic-app-header__menu-list-link" href="/logout">
114
+ <div class="menu-item-icon-container">
115
+ <img src='/images/images_k5/logout_blue.png' alt="Salir" class="img-logout"></img>
116
+ </div>
117
+ <div class="menu-item__text">Salir</div>
118
+ </a>
119
+ </li>
120
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/conversations') %>">
121
+ <a id="global_nav_conversations_link" class="ic-app-header__menu-list-link">
122
+ <div class="menu-item-icon-container">
123
+ <img src='/images/images_k5/gracias.png' alt="" class="img-logout"></img>
124
+ </div>
125
+ <div class="menu-item__text">Gracias</div>
126
+ </a>
127
+ </li>
128
+ <% unless @current_user.nil? %>
129
+ <%= render(:partial => 'external_tools/global_nav_menu_items') %>
130
+ <% end %>
131
+ </ul>
132
+ </div>
133
+
134
+ <a class="ic-sidebar-logo__image" >
135
+ <img src="" alt="" />
136
+ </a>
137
+ <a id="global_nav_profile_link" role="button" class="perfil">
138
+ <div aria-hidden="true" class="fs-exclude ic-avatar <% if @real_current_user && @real_current_user != @current_user %>ic-avatar--fake-student<% end %>">
139
+ <img class="fs-exclude avatar profile_pic_link approved perfil" src="<%= @current_user.try { |usr| avatar_image_attrs(usr).first } %>" />
140
+ </div>
141
+ </a>
142
+ </div>
143
+ <div>
144
+ <% if crumbs.length > 1 %>
145
+ <h3 class="title_responsive" ><%= render_crumbs %></h3>
146
+ <% end %>
147
+ </div>
148
+ </header>
149
+
150
+ <header id="header" class="ic-app-header no-print <%= 'no-user' unless @current_user %>">
151
+ <a href="#content" id="skip_navigation_link"><%= t 'links.skip_to_content', "Skip To Content" %></a>
152
+ <div role="region" class="ic-app-header__main-navigation" aria-label="<%= t('Global Navigation') %>">
153
+ <% unless @current_user.try(:prefers_high_contrast?) %>
154
+ <div class="ic-app-header__logomark-container">
155
+ <a href="<%= dashboard_url %>" class="ic-app-header__logomark" style="margin-right: 5px; margin-left: 5px; margin-top: 10px; margin-bottom: 10px; width: auto">
156
+ <span class="screenreader-only"><%= dashboard_title %></span>
157
+ </a>
158
+ </div>
159
+ <% end %>
160
+
161
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/calendar') %>">
162
+ <a id="global_nav_calendar_link" href="/calendar" class="ic-app-header__menu-list-link">
163
+ <div class="menu-item-icon-container" aria-hidden="true">
164
+ <!--<%= render(partial: "shared/svg/#{'k12/' if k12?}svg_icon_calendar_new_styles", formats: [:svg]) %>-->
165
+ <img src='/images/images_k5/2._calendario.png' alt="Calendario"></img>
166
+ </div>
167
+ <div class="menu-item__text"></div>
168
+ </a>
169
+ </li>
170
+
171
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/conversations') %>">
172
+ <a id="global_nav_conversations_link" href="/conversations" class="ic-app-header__menu-list-link">
173
+ <div class="menu-item-icon-container">
174
+ <span aria-hidden="true">
175
+ <!--<%= render(partial: "shared/svg/#{'k12/' if k12?}svg_icon_inbox", formats: [:svg]) %></span>-->
176
+ <img src='/images/images_k5/3._mensajes.png' alt="Mensajes"></img>
177
+ <span class="menu-item__badge"></span>
178
+ </div>
179
+ <div class="menu-item__text"></div>
180
+ </a>
181
+ </li>
182
+ <li class="menu-item ic-app-header__menu-list-item <%= ' ic-app-header__menu-list-item--active' if active_path?('/agenda') %>">
183
+ <a id="global_nav_conversations_link" href="/agenda" class="ic-app-header__menu-list-link">
184
+ <div class="menu-item-icon-container">
185
+ <img src='/images/images_k5/agenda.png' alt="Agenda"></img>
186
+ </div>
187
+ </a>
188
+ </li>
189
+ <% unless @current_user.nil? %>
190
+ <%= render(:partial => 'external_tools/global_nav_menu_items') %>
191
+ <% end %>
192
+ </ul>
193
+ </div>
194
+
195
+ <div class="ic-app-header__secondary-navigation">
196
+ <ul class="ic-app-header__menu-list">
197
+ <li class="menu-item ic-app-header__menu-list-item" style="text-align: center;">
198
+ <span aria-hidden="true">
199
+ <a href='http://www.vinculacion.espol.edu.ec' target="_blank" style="background-image:url('/images/images_k5/logovinculos.png'); width: 70%; margin-left: 5px;" class="btn-img-login-vinculos" alt="Logo Vinculos"></a>
200
+ <img src="/images/images_k5/logovinculos.png" alt="Logo Vinculos" style="width: 70%; margin-bottom:10px;" />
201
+ </span>
202
+ </li>
203
+ </ul>
204
+ </div>
205
+ <div id="global_nav_tour"></div>
206
+ </header>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Explorak5CanvasLogin
4
- VERSION = "0.2.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explorak5_canvas_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Explorak5
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-21 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides a comprehensive solution for implementing login functionality
14
14
  in Ruby applications. Features include user authentication, password management,
@@ -20,6 +20,7 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - lib/explorak5_canvas_login/app/views/login/_login_content.html.erb
23
+ - lib/explorak5_canvas_login/app/views/shared/_new_nav_header.html.erb
23
24
  - lib/explorak5_canvas_login/public/images/images_k5/1-cortar-y-pegar.png
24
25
  - lib/explorak5_canvas_login/public/images/images_k5/1.1 página materias_desglose.png
25
26
  - lib/explorak5_canvas_login/public/images/images_k5/1.1 página materias_desglose.svg