ama_layout 10.0.1 → 10.1.0

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: a5cc2556c75c0b6a580dedc33539dcf01534af0cb208b4a75d54d6348e815192
4
- data.tar.gz: 02b4d128b39f8fb3707ee56e23137a89efea094c2d2e875bd78e44c1de5700b5
3
+ metadata.gz: 22af59017594b88eee0124646cada43dc31c8931d5de42fad543b982ab6c56a4
4
+ data.tar.gz: 4a691e59ee726f82d3d4d9fe70e1d6b5dbf6ca0802c92c41e2f82194648f26e7
5
5
  SHA512:
6
- metadata.gz: 6e949fba8e7c225ebf56c7ce4eed1e452b6c3344efee0514cdbcbc50cf23ef58d28afc10ba508fe09f7642cad0b36459cabb9869e7534d9410c9fecbdb5fc144
7
- data.tar.gz: 4300592222f3ec0098f0c08d112be3999dbd276455c531588f43fd515a94cdeb6c7edab05ae028abed28092776adef624af3ccdd8a8859473f07ca4e2295fec9
6
+ metadata.gz: 3f09ac80433fcd4d24fc75a40cf734687024fbb4d718be57c879b3b6b70cc943b0bbdd9e482247f92d107bf6775fb2210381a8cba2e133fd0e6914eb68a56e2c
7
+ data.tar.gz: 2defd8ad8772e73d5e7f5702fde537b3471ff87e95d99c143ebf87971cf69b475a145c418879a6966b14a6e36966818025a165ae3987e65beb533cb6ed6ab368
@@ -1,3 +1,6 @@
1
+ <li class="small-text">
2
+ <%= link_to 'Update Address', "#{Rails.configuration.youraccount_site}/membership_update/new" %>
3
+ </li>
1
4
  <li class="small-text">
2
5
  <%= link_to 'Manage Credit Cards', "#{Rails.configuration.gatekeeper_site}/members/credit_cards" %>
3
6
  </li>
@@ -10,10 +10,7 @@
10
10
  <li class="small-text">
11
11
  <%= link_to 'Email Subscriptions', "#{Rails.configuration.youraccount_site}/subscriptions" %>
12
12
  </li>
13
- <li class="small-text">
14
- <%= link_to 'Update Address', "#{Rails.configuration.youraccount_site}/membership_update/new" %>
15
- </li>
16
- <%= navigation.manage_credit_card_link %>
13
+ <%= navigation.member_links %>
17
14
  <%= navigation.sign_out_link %>
18
15
  </ul>
19
16
  </li>
@@ -18,10 +18,10 @@ module AmaLayout
18
18
  h.render partial: 'ama_layout/sign_out_link'
19
19
  end
20
20
 
21
- def manage_credit_card_link
21
+ def member_links
22
22
  return '' unless user && %w[member member_renewal member_outstanding_balance].include?(user.try(:menu_key))
23
23
 
24
- h.render partial: 'ama_layout/manage_credit_card_link'
24
+ h.render partial: 'ama_layout/member_links'
25
25
  end
26
26
 
27
27
  def top_nav
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AmaLayout
4
- VERSION = '10.0.1'
4
+ VERSION = '10.1.0'
5
5
  end
@@ -136,14 +136,15 @@ describe AmaLayout::NavigationDecorator do
136
136
  end
137
137
  end
138
138
 
139
- describe '#manage_credit_card_link' do
139
+ describe '#member_links' do
140
140
  let(:navigation) { FactoryBot.build(:navigation, user: user) }
141
+ let(:member_links) { navigation_presenter.member_links }
141
142
 
142
143
  context 'nil user' do
143
144
  let(:user) {}
144
145
 
145
146
  it 'returns nothing' do
146
- expect(navigation_presenter.manage_credit_card_link).to eq('')
147
+ expect(member_links).to eq('')
147
148
  end
148
149
  end
149
150
 
@@ -151,7 +152,7 @@ describe AmaLayout::NavigationDecorator do
151
152
  let(:user) { FactoryBot.build(:user, :non_member) }
152
153
 
153
154
  it 'returns nothing' do
154
- expect(navigation_presenter.manage_credit_card_link).to eq('')
155
+ expect(member_links).to eq('')
155
156
  end
156
157
  end
157
158
 
@@ -159,7 +160,7 @@ describe AmaLayout::NavigationDecorator do
159
160
  let(:user) { FactoryBot.build(:user, :in_renewal_late) }
160
161
 
161
162
  it 'returns nothing' do
162
- expect(navigation_presenter.manage_credit_card_link).to eq('')
163
+ expect(member_links).to eq('')
163
164
  end
164
165
  end
165
166
 
@@ -167,7 +168,7 @@ describe AmaLayout::NavigationDecorator do
167
168
  let(:user) { FactoryBot.build(:user, :outstanding_balance) }
168
169
 
169
170
  it 'returns the manage credit cards link' do
170
- expect(navigation_presenter.manage_credit_card_link).to include('Manage Credit Cards')
171
+ expect(member_links).to include('Manage Credit Cards')
171
172
  end
172
173
  end
173
174
 
@@ -175,7 +176,7 @@ describe AmaLayout::NavigationDecorator do
175
176
  let(:user) { FactoryBot.build(:user) }
176
177
 
177
178
  it 'returns the manage credit cards link' do
178
- expect(navigation_presenter.manage_credit_card_link).to include('Manage Credit Cards')
179
+ expect(member_links).to include('Manage Credit Cards')
179
180
  end
180
181
  end
181
182
 
@@ -183,7 +184,7 @@ describe AmaLayout::NavigationDecorator do
183
184
  let(:user) { FactoryBot.build(:user, :in_renewal) }
184
185
 
185
186
  it 'returns the manage credit cards link' do
186
- expect(navigation_presenter.manage_credit_card_link).to include('Manage Credit Cards')
187
+ expect(member_links).to include('Manage Credit Cards')
187
188
  end
188
189
  end
189
190
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.1
4
+ version: 10.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darko Dosenovic
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2020-01-23 00:00:00.000000000 Z
16
+ date: 2020-01-24 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: breadcrumbs_on_rails
@@ -265,7 +265,7 @@ files:
265
265
  - app/views/ama_layout/_footer.html.erb
266
266
  - app/views/ama_layout/_main_nav_item.html.erb
267
267
  - app/views/ama_layout/_main_top_nav_item.html.erb
268
- - app/views/ama_layout/_manage_credit_card_link.html.erb
268
+ - app/views/ama_layout/_member_links.html.erb
269
269
  - app/views/ama_layout/_mobile_links.html.erb
270
270
  - app/views/ama_layout/_mobile_notification_icon.html.erb
271
271
  - app/views/ama_layout/_notice.html.erb
@@ -373,8 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  - !ruby/object:Gem::Version
374
374
  version: '0'
375
375
  requirements: []
376
- rubyforge_project:
377
- rubygems_version: 2.7.6.2
376
+ rubygems_version: 3.1.2
378
377
  signing_key:
379
378
  specification_version: 4
380
379
  summary: ".ama.ab.ca site layouts"