padma-assets 0.3.26 → 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: 361665bc6e2b5c1488fd2d3f52c8fc57e00c0bd59f75f7328c8a3bb57bc7a2c8
4
- data.tar.gz: ced6afa30a34b2e9fbe906356f35d037a9a74152d07985395e65fa164552156b
3
+ metadata.gz: c082434513ade6281c8d5ef9e432a62b70a188be1266330e80c5e9c178f0b13a
4
+ data.tar.gz: af4aacd712938ef14ccfbd84dfd09387e0379c49477f9655564b14954aa1ac1c
5
5
  SHA512:
6
- metadata.gz: 790c711392a9c2acb99c9ea6338a7c1959a1a19a99da74ae3339e7244f22d414ae62c743c6fe42fbd1c13b9ae6570b6541c509ec8c749917f08b13ce5e6232ab
7
- data.tar.gz: c324afbbb2f02e4bf0b23422174839a1bcb8209224ecee8402b6ba15ca94ab64c7c4e94f8b6bcec6e57a651f42aaaa47b738d9745a1d34e6263ab014634d9fe3
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>
@@ -1,16 +1,17 @@
1
1
  <% curacc = current_user.current_account %>
2
+ <% vanity_name = curacc.try(:vanity_name) || curacc.try(:padma).try(:vanity_name) || curacc.name %>
2
3
  <% if curacc && !curacc.name.blank? -%>
3
4
  <li>
4
5
  <%= link_to t("header-menu.stats.pdg_report"),
5
- "#{APP_CONFIG['crm-url']}/statistics/accounts/#{curacc.padma.vanity_name}/reports/pedagogic/#{Date.today.year}/#{Date.today.month}" %>
6
+ "#{APP_CONFIG['crm-url']}/statistics/accounts/#{vanity_name}/reports/pedagogic/#{Date.today.year}/#{Date.today.month}" %>
6
7
  </li>
7
8
  <li>
8
9
  <%= link_to t("header-menu.stats.overmind"),
9
- "#{APP_CONFIG['crm-url']}/statistics/accounts/#{curacc.padma.vanity_name}" %>
10
+ "#{APP_CONFIG['crm-url']}/statistics/accounts/#{vanity_name}" %>
10
11
  </li>
11
12
  <li>
12
13
  <%= link_to t("header-menu.stats.teacher_ranking"),
13
- "#{APP_CONFIG['crm-url']}/statistics/accounts/#{curacc.padma.vanity_name}/user_rankings" %>
14
+ "#{APP_CONFIG['crm-url']}/statistics/accounts/#{vanity_name}/user_rankings" %>
14
15
  </li>
15
16
  <% end -%>
16
17
  <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.26
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