padma-assets 0.2.5 → 0.2.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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NjcxZGIwMzk5MWZiYTdmZDIwNjc1MGFkMWE0MzM5MDc4ZDYxNmZiMA==
5
- data.tar.gz: !binary |-
6
- M2IwODM0ZGVmNDY2ZjY0NjJkYWVmZmFjY2U0ZWJmZGMxNjk3NGI4Mw==
2
+ SHA1:
3
+ metadata.gz: 910cca1e3aaa699237b11ecb64da1e98e70d034f
4
+ data.tar.gz: d6731fecf11432fb7d4d88e5754a9966e746c135
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MmJlYWFlMmQyYTQzZjExMjc4Mzc4NzJhMDBlMzM1Y2JmMDRhMmNkZWZmOWMw
10
- ZDNkYjA3N2VmN2NmMjNhNGU2YTZjMTE2NWE2OTUzOTQxNDk5OWJjYTg4Zjgx
11
- MzFkZDA2ZGNjMGE5ZWE4MWFjY2U0MGUwNDljZjkyMDQyYjcyMTU=
12
- data.tar.gz: !binary |-
13
- ZjI1YzM3Zjc5YTFiZTg2ZjYxODJhNDA1YmJlODA1Mjk0MDkyNWEzNDJiN2Qz
14
- MGVhMjU0M2M3YWUzYzdjYTUzZjVkNDc5OTA2ODIwZTg0NWY5NWZmOWMzYzcy
15
- ZDRkNTIxYjYyZjU3YmRmYzhiM2FmNDJhMDc0YzExMTkyMTY5Njk=
6
+ metadata.gz: c856e8f7a878efde7d70799e1253a4502c04db2e6f360d5b0f927679bfe74b479c59f2d3ec5c2240d3fd2e3a2c41b6bb8654a7dda71c9a4e82e756069bafb357
7
+ data.tar.gz: a984528bae390a168a2d267db09c44fd9156c3b0bf6f2792953119fdf4a25f6b0a7e0e033c9710edef65e464a577c73f46c4516947ab93292b6c67271a7f241c
@@ -10,9 +10,20 @@ class GeneralAbility
10
10
  if beta?(user)
11
11
  end
12
12
 
13
+ if in_country?(user,'Argentina')
14
+ can :manage, :derose_events
15
+ end
13
16
  end
14
17
 
15
18
  private
19
+
20
+ def in_country?(user,country_name)
21
+ name = user.current_account.name
22
+ @country = Rails.cache.fetch("countryfor#{name}") do
23
+ user.current_account.padma.country
24
+ end
25
+ @country == country_name
26
+ end
16
27
 
17
28
  def alpha?(user)
18
29
  user.account_tester_level == 'alpha'
@@ -53,6 +53,9 @@
53
53
  <% if can?(:manage, :mailchimp) -%>
54
54
  <li><%= link_to t('header-menu.modules.mailchimp_integration'), "#{APP_CONFIG['mailing-url']}/mailchimp/subscription" %></li>
55
55
  <% end -%>
56
+ <% if can?(:manage, :derose_events) -%>
57
+ <li><%= link_to t('header-menu.modules.derose_events'), "http://www.derose.events/admin", target: '_blank' %></li>
58
+ <% end -%>
56
59
  </ul>
57
60
  </li>
58
61
  </ul>
@@ -7,6 +7,7 @@ es:
7
7
  fnz: Financiero
8
8
  planning: Gestión de la rutina
9
9
  mailchimp_integration: Integración con Mailchimp
10
+ derose_events: Eventos DeROSE
10
11
  user_menu:
11
12
  user_profile: Mi perfil
12
13
  school_profile: Configuración Escuela
@@ -7,6 +7,7 @@ pt-BR:
7
7
  fnz: Financeiro
8
8
  planning: Gestāo da Rutina
9
9
  mailchimp_integration: Integraçāo com Mailchimp
10
+ derose_events: Eventos DeROSE
10
11
  user_menu:
11
12
  user_profile: Meu perfil
12
13
  school_profile: Configuraçāo Unidade
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padma-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  description: Assets to be re-used in PADMA applications
@@ -125,12 +125,12 @@ require_paths:
125
125
  - lib
126
126
  required_ruby_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ! '>='
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ! '>='
133
+ - - ">="
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
@@ -140,4 +140,3 @@ signing_key:
140
140
  specification_version: 4
141
141
  summary: Assets to be re-used in PADMA applications
142
142
  test_files: []
143
- has_rdoc: