ish_manager 0.1.8.433 → 0.1.8.435
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/application.scss +2 -1
- data/app/assets/stylesheets/ish_manager/videos.scss +0 -5
- data/app/controllers/ish_manager/galleries_controller.rb +1 -1
- data/app/controllers/ish_manager/iro_purses_controller.rb +8 -5
- data/app/controllers/ish_manager/videos_controller.rb +17 -2
- data/app/views/ish_manager/application/_main_header_admin.haml +1 -1
- data/app/views/ish_manager/application/_meta.haml +2 -2
- data/app/views/ish_manager/iro_positions/_form.haml +3 -0
- data/app/views/ish_manager/iro_purses/index.haml +8 -0
- data/app/views/ish_manager/iro_purses/show.haml +9 -4
- data/app/views/ish_manager/newsitems/_form.haml +2 -1
- data/app/views/ish_manager/newsitems/edit.haml +2 -3
- data/app/views/ish_manager/user_profiles/show.haml +1 -2
- data/app/views/ish_manager/videos/_form.haml +6 -5
- data/app/views/ish_manager/videos/show.haml +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798a7cda60e62a3ea1e31400a3bb56015da14defa0acf666e7a6192cbd3411ec
|
4
|
+
data.tar.gz: e389d43d156cb5380f3664731b4d89d0310fcf6d14850914c5f33d146d7f017e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f165e36c5134c6e5adfa4f5bc2182917460fdab427bca8b1d3bbe7644fcab8668fbf509443480364d3dd2f154af768484d6b3d21f441ca6edf98c80b95a97aff
|
7
|
+
data.tar.gz: d6aaff02e5dedb85b0809aae6a83196adab81f3cba8ce69639f5a20aee5abd379d34d852f12f26324285928e8f1fd416daa6497c12e437418de92598e21dc0fb
|
@@ -246,7 +246,6 @@ table.dataTable {
|
|
246
246
|
.description {
|
247
247
|
border: 1px solid red;
|
248
248
|
padding: 1em;
|
249
|
-
font-size: 1.6em;
|
250
249
|
}
|
251
250
|
|
252
251
|
|
@@ -430,6 +429,8 @@ textarea.large {
|
|
430
429
|
display: inline;
|
431
430
|
}
|
432
431
|
|
432
|
+
|
433
|
+
|
433
434
|
/* N */
|
434
435
|
|
435
436
|
.n-selected {
|
@@ -101,9 +101,9 @@ class IshManager::GalleriesController < IshManager::ApplicationController
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def update
|
104
|
-
old_shared_profile_ids = @gallery.shared_profiles.map(&:id)
|
105
104
|
authorize! :update, @gallery
|
106
105
|
|
106
|
+
old_shared_profile_ids = @gallery.shared_profiles.map(&:id)
|
107
107
|
if params[:gallery][:shared_profiles].present?
|
108
108
|
params[:gallery][:shared_profiles].delete('')
|
109
109
|
end
|
@@ -23,6 +23,11 @@ class ::IshManager::IroPursesController < IshManager::ApplicationController
|
|
23
23
|
authorize! :edit, @iro_purse
|
24
24
|
end
|
25
25
|
|
26
|
+
def index
|
27
|
+
@iro_purses = Iro::Purse.all
|
28
|
+
authorize! :index, Iro::Purse
|
29
|
+
end
|
30
|
+
|
26
31
|
def new
|
27
32
|
@iro_purse = Iro::Purse.new
|
28
33
|
authorize! :new, @iro_purse
|
@@ -32,13 +37,11 @@ class ::IshManager::IroPursesController < IshManager::ApplicationController
|
|
32
37
|
@purse = Iro::Purse.find params[:id]
|
33
38
|
authorize! :my, @purse
|
34
39
|
|
35
|
-
@strategies =
|
36
|
-
|
37
|
-
|
40
|
+
@strategies = Iro::CoveredCallStrategy.all
|
38
41
|
underlyings = Tda::Stock.get_quotes( @strategies.map(&:ticker).compact.uniq.join(",") )
|
39
|
-
json_puts! underlyings, 'out'
|
42
|
+
# json_puts! underlyings, 'out'
|
40
43
|
underlyings.each do |ticker, v|
|
41
|
-
puts! v[:mark], 'ze mark'
|
44
|
+
# puts! v[:mark], 'ze mark'
|
42
45
|
Iro::CoveredCallStrategy.where( ticker: ticker ).update( current_underlying_strike: v[:mark] )
|
43
46
|
end
|
44
47
|
|
@@ -40,7 +40,8 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
40
40
|
|
41
41
|
def index
|
42
42
|
authorize! :index, Video.new
|
43
|
-
@videos = Video.unscoped.where( is_trash: false,
|
43
|
+
@videos = Video.unscoped.where( is_trash: false,
|
44
|
+
:user_profile => @current_profile
|
44
45
|
).order_by( :created_at => :desc )
|
45
46
|
|
46
47
|
if params[:q]
|
@@ -81,10 +82,24 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
81
82
|
@video = Video.unscoped.find params[:id]
|
82
83
|
authorize! :update, @video
|
83
84
|
|
85
|
+
old_shared_profile_ids = @video.shared_profile_ids
|
86
|
+
if params[:video][:shared_profiles].present?
|
87
|
+
params[:video][:shared_profiles].delete('')
|
88
|
+
end
|
89
|
+
params[:video][:shared_profile_ids] = params[:video][:shared_profiles]
|
90
|
+
params[:video].delete :shared_profiles
|
91
|
+
|
84
92
|
@video.update params[:video].permit!
|
85
93
|
if @video.save
|
94
|
+
|
95
|
+
# if params[:video][:shared_profile_ids].present?
|
96
|
+
# new_shared_profiles = Ish::UserProfile.find( params[:video][:shared_profile_ids]
|
97
|
+
# ).select { |p| !old_shared_profile_ids.include?( p.id ) }
|
98
|
+
# ::IshManager::ApplicationMailer.shared_video( new_shared_profiles, @video ).deliver
|
99
|
+
# end
|
100
|
+
|
86
101
|
flash[:notice] = 'Success.'
|
87
|
-
redirect_to
|
102
|
+
redirect_to video_path(@video)
|
88
103
|
else
|
89
104
|
flash[:alert] = "No luck: #{@video.errors.messages}"
|
90
105
|
render :edit
|
@@ -3,11 +3,11 @@
|
|
3
3
|
|
4
4
|
<b>On</b> #{item.created_at.to_s[0...10]}
|
5
5
|
- if item.user_profile
|
6
|
-
<b>By
|
6
|
+
<b>By</b>
|
7
7
|
= link_to item.user_profile.name, edit_user_profile_path( item.user_profile )
|
8
8
|
|
9
9
|
-# - if item.tags.length > 0
|
10
10
|
-# <b>Tags:</b> #{ item.tags.map(&:name).join(', ') }
|
11
11
|
|
12
12
|
- if defined?(item.premium_tier) && item.premium_tier > 0
|
13
|
-
<b>Tier
|
13
|
+
<b>Tier $#{item.premium_tier}</b>
|
@@ -91,11 +91,16 @@
|
|
91
91
|
%td.begin-on= pp_date p.opened_on
|
92
92
|
%td.price= p.opened_price
|
93
93
|
%td.to-open
|
94
|
-
|
94
|
+
- this_to_open = p.opened_price * 100 * p.quantity - 0.66 * p.quantity
|
95
|
+
= pp_amount( this_to_open )
|
95
96
|
%td.begin-delta= sprintf('%.2f', p.opened_delta ) rescue nil
|
96
|
-
%td
|
97
|
-
|
98
|
-
%td.
|
97
|
+
%td.to-close
|
98
|
+
= p.current_price
|
99
|
+
%td.net
|
100
|
+
- this_net = ( p.opened_price - p.current_price ) * 100 * p.quantity - 0.65 * 2 * p.quantity
|
101
|
+
= pp_money( this_net )
|
102
|
+
%td.netp
|
103
|
+
= pp_percent( this_net / this_to_open )
|
99
104
|
%td= sprintf('%.2f', p.current_delta ) rescue nil
|
100
105
|
%td= (p.expires_on.to_date - p.opened_on).to_i
|
101
106
|
%td.must-roll= pp_bool p.must_roll?
|
@@ -12,7 +12,7 @@
|
|
12
12
|
= f.text_field :name
|
13
13
|
.field
|
14
14
|
= f.label :descr
|
15
|
-
= f.
|
15
|
+
= f.text_area :descr
|
16
16
|
.col.m6
|
17
17
|
.field
|
18
18
|
= f.label :video
|
@@ -28,10 +28,11 @@
|
|
28
28
|
= f.label :user_profile
|
29
29
|
= f.select :user_profile_id, @user_profiles_list
|
30
30
|
.row
|
31
|
-
.col
|
32
|
-
= f.check_box :is_public
|
33
|
-
= f.label :is_public
|
34
|
-
|
31
|
+
.col-md-6
|
32
|
+
-# = f.check_box :is_public
|
33
|
+
-# = f.label :is_public
|
34
|
+
= render 'ish_manager/application/form_nonpublic', f: f, model: video
|
35
|
+
.col-md-6
|
35
36
|
= f.check_box :is_trash
|
36
37
|
= f.label :is_trash
|
37
38
|
|
@@ -10,15 +10,16 @@
|
|
10
10
|
- else
|
11
11
|
%iframe{:allowfullscreen => "true", :frameborder => "0", :height => "480", :src => "#{video.video.url}", :width => "640"}
|
12
12
|
|
13
|
-
.
|
13
|
+
.my-row
|
14
14
|
.a= image_tag video.thumb.url(:thumb)
|
15
15
|
.a
|
16
|
-
|
16
|
+
%h3
|
17
17
|
= video.name.blank? ? t('videos.no_title') : video.name
|
18
18
|
.meta-edit
|
19
19
|
.inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
20
20
|
= link_to '[~]', edit_video_path( video )
|
21
21
|
|
22
22
|
= render 'ish_manager/application/metaline', :item => video
|
23
|
-
|
23
|
+
.flex-row
|
24
|
+
Download File: #{link_to video.video_file_name, video.video.url}
|
24
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.435
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -638,6 +638,7 @@ files:
|
|
638
638
|
- app/views/ish_manager/iro_positions/roll.haml
|
639
639
|
- app/views/ish_manager/iro_purses/_form.haml
|
640
640
|
- app/views/ish_manager/iro_purses/edit.haml
|
641
|
+
- app/views/ish_manager/iro_purses/index.haml
|
641
642
|
- app/views/ish_manager/iro_purses/new.haml
|
642
643
|
- app/views/ish_manager/iro_purses/show.haml
|
643
644
|
- app/views/ish_manager/iro_purses/show_gameui.haml
|