padma-assets 0.3.27 → 0.3.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9294bfe13de94a0293d69f6e6254eb20d2de98b47b9c90e82f4ddd1b3e81460
4
- data.tar.gz: 8da9c3487a95600ba6e25373e9250a5806f9b7e505e2b95eddb130e2ddb842f4
3
+ metadata.gz: c082434513ade6281c8d5ef9e432a62b70a188be1266330e80c5e9c178f0b13a
4
+ data.tar.gz: af4aacd712938ef14ccfbd84dfd09387e0379c49477f9655564b14954aa1ac1c
5
5
  SHA512:
6
- metadata.gz: e05eaa5e1b9cf0e9b3010936dfd0029dde4d819b01fd41e634d009becb6e743d0a3ef54db8a74448cf3e690445a4bdec0c46ea991422cf1fd475a991e3e34770
7
- data.tar.gz: a3f12090a19f933bb514b1d120e59c9587875540b0990e8146d8c1464042fb905ffc4ab816aac24213513401f37065d7ea1bf2af5e976873b7202c33cf84248d
6
+ metadata.gz: b6e59ab0b72404697b89d710beba8e67d476dc807f832a45f913674ce1c671b4339ca5fb0c8d111e9f28e9de0c72f6cb89a2494df0983a1886e9812e69dd8416
7
+ data.tar.gz: 3202d188afa847fd0f179110182a788ffe34eef4118416a01ddb7925df58d5f24efebe540164c9ca44aa0189f2f99ea465787ca92ba38f45cf62d374f7026f6a
@@ -2,11 +2,13 @@ class GeneralAbility
2
2
  include CanCan::Ability
3
3
 
4
4
  def initialize(user)
5
+ cannot :manage, :hubspot
6
+
5
7
  if alpha?(user)
6
8
  end
7
9
 
8
10
  if beta?(user)
9
- can :manage, :hubspot
11
+ can :manage, :learn_agenda
10
12
  end
11
13
 
12
14
  if in_country?(user,'Argentina')
@@ -1,16 +1,31 @@
1
- <li>
2
- <%= link_to t('header-menu.attendance.attendances'),
3
- "#{APP_CONFIG['attendance-url']}/attendances" %>
4
- </li>
5
- <li>
6
- <%= link_to t('header-menu.attendance.time_slots'),
7
- "#{APP_CONFIG['attendance-url']}/time_slots" %>
8
- </li>
9
- <li>
10
- <%= link_to t('header-menu.attendance.trial_lessons'),
11
- "#{APP_CONFIG['attendance-url']}/trial_lessons" %>
12
- </li>
13
- <li>
14
- <%= link_to t('header-menu.attendance.stats'),
15
- "#{APP_CONFIG['attendance-url']}/stats" %>
16
- </li>
1
+ <% if can?(:manage, :learn_agenda) %>
2
+ <li>
3
+ <%= link_to t('header-menu.learn_attendance.agenda'),
4
+ "https://learn.derose.app/teacher_panel/agenda" %>
5
+ </li>
6
+ <li>
7
+ <%= link_to t('header-menu.learn_attendance.report'),
8
+ "https://learn.derose.app/admin/check_ins?as=report" %>
9
+ </li>
10
+ <li>
11
+ <%= link_to t('header-menu.learn_attendance.checkins_distribution'),
12
+ "https://learn.derose.app/admin/check_ins_distribution_report" %>
13
+ </li>
14
+ <% end %>
15
+
16
+ <li>
17
+ <%= link_to t('header-menu.attendance.attendances'),
18
+ "#{APP_CONFIG['attendance-url']}/attendances" %>
19
+ </li>
20
+ <li>
21
+ <%= link_to t('header-menu.attendance.time_slots'),
22
+ "#{APP_CONFIG['attendance-url']}/time_slots" %>
23
+ </li>
24
+ <li>
25
+ <%= link_to t('header-menu.attendance.trial_lessons'),
26
+ "#{APP_CONFIG['attendance-url']}/trial_lessons" %>
27
+ </li>
28
+ <li>
29
+ <%= link_to t('header-menu.attendance.stats'),
30
+ "#{APP_CONFIG['attendance-url']}/stats" %>
31
+ </li>
@@ -52,6 +52,10 @@ en:
52
52
  Gestion: Gestion Evolutiva
53
53
  Revisacion: Medical Check
54
54
  Reunion: Meet with director
55
+ learn_attendance:
56
+ agenda: Agenda (checkins and bookings)
57
+ report: Checkins report
58
+ checkins_distribution: Checkins distribution
55
59
  attendance:
56
60
  title: Lessons
57
61
  attendances: Attendance
@@ -55,6 +55,10 @@ es:
55
55
  Gestion: Gestiones evolutivas
56
56
  Revisacion: Revisaciones Médicas
57
57
  Reunion: Reuniones con el director
58
+ learn_attendance:
59
+ agenda: Agenda checkins y reservas
60
+ report: Análisis checkins
61
+ checkins_distribution: Reporte Distribución checkins
58
62
  attendance:
59
63
  title: Clases
60
64
  attendances: Asistencias
@@ -55,6 +55,10 @@ pt-BR:
55
55
  Gestion: Gestōes evolutivas
56
56
  Revisacion: Exames Médicos
57
57
  Reunion: Reuniōes com o diretor
58
+ learn_attendance:
59
+ agenda: Agenda checkins e reservas
60
+ report: Análise checkins
61
+ checkins_distribution: Reporte Distribuição checkins
58
62
  attendance:
59
63
  title: Aulas
60
64
  attendances: Presenças
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padma-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.27
4
+ version: 0.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties