ish_manager 0.1.8.411 → 0.1.8.412

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: 8b9d3de89ed743dad854899b10bcc63d1ba88105cf3fcb2f456c56890f6cc508
4
- data.tar.gz: c730a3640e159a49741dfcf67e730afa1c96239c629ddda5b25054658876a108
3
+ metadata.gz: 00f50c9d4c8e8eb28c03a8cf7b5a3bf9dad3a1942b7171cf0bd24ef9e4023b42
4
+ data.tar.gz: b8093f2152ec12c05daa5af3a57da34772492193c3413b129933520c24ad9c86
5
5
  SHA512:
6
- metadata.gz: fee4975f888a5d2ee1199f2ab7b912b1ceee306748ef7bc0c97489034b4740063ac00441b13f4f6319fb3ca870e24d5d28079af7abb5536d3ff2998f9a9f8729
7
- data.tar.gz: 53c327afd46d0494efffb26b658edeb2269a9b80718f8f6ef5f0fa341ff8b6b3a4e2ac2d2e3b9034fce2cc80089ef2731ab6f27875619fa0edca63cfd4e755de
6
+ metadata.gz: 9542bb26d8e7eab5e96416006bf0003fa8a2e4947c48004b0a50df093e177884af300f51186a8d9c632b9629e2aafcdbfa480e76db88e4da59ab144a06a4eaa5
7
+ data.tar.gz: e8547c17dc63d91f7858999446db3ea754109b37b9d0355c0394ccce58523f2a1dc392b2dcc32bdaf7374a53700311aab6f40005ddab3a33a43d441a174fdb04
@@ -6,7 +6,9 @@
6
6
  }
7
7
  }
8
8
 
9
- .iro-purses-show {
9
+ .iro-purses-show,
10
+ .iro-purses-show-gameui,
11
+ ._ {
10
12
  font-size: 14px;
11
13
 
12
14
  table {
@@ -89,7 +91,6 @@
89
91
  }
90
92
 
91
93
  .strategies {
92
-
93
94
  display: flex;
94
95
  flex-wrap: wrap;
95
96
  }
@@ -3,14 +3,14 @@ class ::IshManager::IroStrategiesController < IshManager::ApplicationController
3
3
 
4
4
  def create
5
5
  @strategy = Iro::CoveredCallStrategy.new params[:iro_strategy].permit!
6
- @strategy.iro_purse_id = Iro::Purse.where( user_id: current_user.id ).first.id
6
+ # @strategy.iro_purse_id = Iro::Purse.where( user_id: current_user.id ).first.id
7
7
  authorize! :create, @strategy
8
8
  flag = @strategy.save
9
9
  if flag
10
10
  flash[:notice] = 'Success.'
11
- redirect_to my_purse_path
11
+ redirect_to controller: 'ish_manager/iro_purses', action: :show, id: @strategy.iro_purse_id
12
12
  else
13
- flash[:alert] = "No luck: #{@strategy.full_errors.messages.join(', ')}."
13
+ flash[:alert] = "No luck: #{@strategy.errors.full_messages.join(', ')}."
14
14
  render action: 'new'
15
15
  end
16
16
  end
@@ -33,7 +33,7 @@ class ::IshManager::IroStrategiesController < IshManager::ApplicationController
33
33
  flash[:notice] = 'Success.'
34
34
  redirect_to my_purse_path
35
35
  else
36
- flash[:alert] = "No luck: #{@strategy.full_errors.messages.join(', ')}."
36
+ flash[:alert] = "No luck: #{@strategy.errors.full_messages.join(', ')}."
37
37
  render action: 'new'
38
38
  end
39
39
  end
@@ -14,12 +14,11 @@
14
14
  -# %pre= @purse.config
15
15
  = render 'form', iro_purse: @purse
16
16
 
17
- %h5.collapse-expand#strategies Strategies (#{@strategies.length}) #{link_to '[+]', new_iro_strategy_path}
17
+ %h5.collapse-expand#strategies
18
+ Strategies (#{@strategies.length})
19
+ = link_to '[+]', new_iro_strategy_path({ iro_purse_id: @purse.id })
18
20
  .strategies.items
19
21
  - @strategies.each do |strat|
20
- -# .strategy.item
21
- -# = link_to '[~]', edit_iro_strategy_path( strat )
22
- -# <pre>#{JSON.pretty_generate( strat.display_attrs )}</pre>
23
22
  .strategy.item= render 'ish_manager/iro_strategies/form', strategy: strat
24
23
 
25
24
 
@@ -1,5 +1,5 @@
1
1
 
2
- .iro-purses-show-shameui.padded
2
+ .iro-purses-show-gameui.padded
3
3
  .max-width
4
4
  .header
5
5
  %h4.title
@@ -14,14 +14,14 @@
14
14
  -# %pre= @purse.config
15
15
  = render 'form', iro_purse: @purse
16
16
 
17
- %h5.collapse-expand#strategies Strategies (#{@strategies.length}) #{link_to '[+]', new_iro_strategy_path}
17
+ %h5.collapse-expand#strategies
18
+ Strategies (#{@strategies.length})
19
+ = link_to '[+]', new_iro_strategy_path({ iro_purse_id: @purse.id })
18
20
  .strategies.items
19
21
  - @strategies.each do |strat|
20
- -# .strategy.item
21
- -# = link_to '[~]', edit_iro_strategy_path( strat )
22
- -# <pre>#{JSON.pretty_generate( strat.display_attrs )}</pre>
23
22
  .strategy.item= render 'ish_manager/iro_strategies/form', strategy: strat
24
23
 
24
+
25
25
  %h5.collapse-expand#gameuiPositions
26
26
  Gameui Positions (#{@positions.length})
27
27
  = link_to '[+]', new_iro_position_path({ iro_purse_id: @purse.id })
@@ -2,6 +2,7 @@
2
2
  - url = strategy.new_record? ? iro_strategies_path : iro_strategy_path(strategy)
3
3
  .iro-strategies--form
4
4
  = form_for strategy, url: url, as: :iro_strategy do |f|
5
+ = hidden_field_tag 'iro_strategy[iro_purse_id]', params[:iro_purse_id]
5
6
  .field
6
7
  = "#{strategy.id}." if strategy.id
7
8
  = f.label :slug
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.411
4
+ version: 0.1.8.412
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox