ish_manager 0.1.8.411 → 0.1.8.412
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ish_manager/iro.scss +3 -2
- data/app/controllers/ish_manager/iro_strategies_controller.rb +4 -4
- data/app/views/ish_manager/iro_purses/show.haml +3 -4
- data/app/views/ish_manager/iro_purses/show_gameui.haml +5 -5
- data/app/views/ish_manager/iro_strategies/_form.haml +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00f50c9d4c8e8eb28c03a8cf7b5a3bf9dad3a1942b7171cf0bd24ef9e4023b42
|
4
|
+
data.tar.gz: b8093f2152ec12c05daa5af3a57da34772492193c3413b129933520c24ad9c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9542bb26d8e7eab5e96416006bf0003fa8a2e4947c48004b0a50df093e177884af300f51186a8d9c632b9629e2aafcdbfa480e76db88e4da59ab144a06a4eaa5
|
7
|
+
data.tar.gz: e8547c17dc63d91f7858999446db3ea754109b37b9d0355c0394ccce58523f2a1dc392b2dcc32bdaf7374a53700311aab6f40005ddab3a33a43d441a174fdb04
|
@@ -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
|
11
|
+
redirect_to controller: 'ish_manager/iro_purses', action: :show, id: @strategy.iro_purse_id
|
12
12
|
else
|
13
|
-
flash[:alert] = "No luck: #{@strategy.
|
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.
|
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
|
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-
|
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
|
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
|