ish_manager 0.1.8.274 → 0.1.8.280
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 +30 -26
- data/app/assets/stylesheets/ish_manager/videos.scss +25 -0
- data/app/controllers/ish_manager/videos_controller.rb +2 -2
- data/app/mailers/ish_manager/application_mailer.rb +7 -0
- data/app/views/ish_manager/videos/_embed.haml +5 -0
- data/app/views/ish_manager/videos/_embed_s3.erb +6 -0
- data/app/views/ish_manager/videos/{_embed.erb → _embed_youtube.erb} +0 -0
- data/app/views/ish_manager/videos/_index.haml +2 -3
- data/app/views/ish_manager/videos/_meta_edit.haml +4 -0
- data/app/views/ish_manager/videos/show.haml +13 -14
- metadata +7 -9
- data/app/controllers/ish_manager/trash/co_tailors_controller.rb +0 -33
- data/app/controllers/ish_manager/trash/covered_calls_controller.rb +0 -9
- data/app/controllers/ish_manager/trash/events_controller.rb +0 -65
- data/app/controllers/ish_manager/trash/friends_controller.rb +0 -28
- data/app/controllers/ish_manager/trash/iron_condors_controller.rb +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7182e3faec98ec813237220d02299c655d9dec2451fdb1dd9a905daa92d07fa
|
4
|
+
data.tar.gz: f42dc14eb4fead2285d8cb346ba09956baa164f5ddb88246fd24927ba42fa129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ccf08fc50f5adb58bcee550671048e4aa2a92903972179920cb7dc985b9ee08aef6f537b8082878597d7cbeb067a9003fd4042b9a2cb4115e9f1bcd60bdf2f
|
7
|
+
data.tar.gz: 2fbf79b20053569f49ddcd6384f918611bf4b881f7c6b0096a6688dcee894f635f6e56636b7a42b97e017fcd4dd65dceeb1be9e4cff458d990f9d9b526289da0
|
@@ -58,23 +58,6 @@ ul:not(.browser-default).bullets, {
|
|
58
58
|
}
|
59
59
|
|
60
60
|
|
61
|
-
.flat-row {
|
62
|
-
display: flex;
|
63
|
-
flex-direction: row;
|
64
|
-
justify-content: flex-start;
|
65
|
-
align-content: flex-start;
|
66
|
-
|
67
|
-
height: 2.4em;
|
68
|
-
line-height: 3em;
|
69
|
-
|
70
|
-
width: 100%;
|
71
|
-
margin: 1em 0 0 0;
|
72
|
-
padding: 0;
|
73
|
-
|
74
|
-
> * {
|
75
|
-
padding-right: 1em;
|
76
|
-
}
|
77
|
-
}
|
78
61
|
|
79
62
|
|
80
63
|
/* A */
|
@@ -130,9 +113,28 @@ ul:not(.browser-default).bullets, {
|
|
130
113
|
/* E */
|
131
114
|
/* F */
|
132
115
|
|
116
|
+
.flat-row {
|
117
|
+
display: flex;
|
118
|
+
flex-direction: row;
|
119
|
+
justify-content: flex-start;
|
120
|
+
align-content: flex-start;
|
121
|
+
|
122
|
+
height: 2.4em;
|
123
|
+
line-height: 3em;
|
124
|
+
|
125
|
+
width: 100%;
|
126
|
+
margin: 1em 0 0 0;
|
127
|
+
padding: 0;
|
128
|
+
|
129
|
+
> * {
|
130
|
+
padding-right: 1em;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
|
133
135
|
.flex-row {
|
134
136
|
display: flex;
|
135
|
-
flex-wrap: wrap;
|
137
|
+
flex-wrap: wrap; /* @TODO: why does it wrap? in ish_manager/show , I'd prefer it didn't. */
|
136
138
|
}
|
137
139
|
|
138
140
|
.float-left {
|
@@ -172,14 +174,6 @@ textarea.large {
|
|
172
174
|
|
173
175
|
/* M */
|
174
176
|
|
175
|
-
.menu-secondary li {
|
176
|
-
display: inline;
|
177
|
-
}
|
178
|
-
.menu-secondary li a {
|
179
|
-
padding: 1rem;
|
180
|
-
background: white;
|
181
|
-
}
|
182
|
-
|
183
177
|
|
184
178
|
.manager--main-header {
|
185
179
|
background: url('/assets/bg/weather.png');
|
@@ -217,6 +211,16 @@ textarea.large {
|
|
217
211
|
border-bottom: 1px solid red;
|
218
212
|
}
|
219
213
|
|
214
|
+
.menu-secondary li {
|
215
|
+
display: inline;
|
216
|
+
}
|
217
|
+
.menu-secondary li a {
|
218
|
+
padding: 1rem;
|
219
|
+
background: white;
|
220
|
+
}
|
221
|
+
.meta-edit {
|
222
|
+
display: inline;
|
223
|
+
}
|
220
224
|
|
221
225
|
/* P */
|
222
226
|
.panel-content {
|
@@ -1 +1,26 @@
|
|
1
1
|
|
2
|
+
.ish_manager-videos-show {
|
3
|
+
border-bottom: 2px solid red;
|
4
|
+
margin: 0 auto;
|
5
|
+
padding-bottom: .8em;
|
6
|
+
width: 640px;
|
7
|
+
|
8
|
+
|
9
|
+
.title {
|
10
|
+
font-size: 1.4em;
|
11
|
+
margin-left: .2em;
|
12
|
+
}
|
13
|
+
|
14
|
+
.row {
|
15
|
+
display: flex;
|
16
|
+
margin: 0;
|
17
|
+
|
18
|
+
img {
|
19
|
+
margin-right: .8em;
|
20
|
+
width: 100px;
|
21
|
+
height: 100px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
}
|
@@ -34,7 +34,7 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
34
34
|
def destroy
|
35
35
|
@video = Video.unscoped.find params[:id]
|
36
36
|
authorize! :destroy, @video
|
37
|
-
flag = @video.
|
37
|
+
flag = @video.delete
|
38
38
|
@video.city.touch if @video.city
|
39
39
|
@video.site.touch if @video.site
|
40
40
|
@video.tags.map &:touch
|
@@ -91,7 +91,7 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def show
|
94
|
-
@video = Video.where( :youtube_id => params[:youtube_id] ).first
|
94
|
+
@video = Video.unscoped.where( :youtube_id => params[:youtube_id] ).first
|
95
95
|
@video ||= Video.unscoped.find params[:id]
|
96
96
|
authorize! :show, @video
|
97
97
|
|
@@ -15,5 +15,12 @@ module IshManager
|
|
15
15
|
:subject => 'You got new shared galleries on pi manager' ).deliver
|
16
16
|
end
|
17
17
|
|
18
|
+
|
19
|
+
def stock_alert stock
|
20
|
+
@stock = stock
|
21
|
+
mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver
|
22
|
+
end
|
23
|
+
|
24
|
+
|
18
25
|
end
|
19
26
|
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
|
2
|
+
<div class="" style="" >
|
3
|
+
<!-- <iframe width="430" height="322" src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe> -->
|
4
|
+
<iframe width="640" height="480" src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe>
|
5
|
+
<!-- <iframe src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe> -->
|
6
|
+
</div>
|
File without changes
|
@@ -23,9 +23,8 @@
|
|
23
23
|
.thumb= image_tag video.thumb.url(:thumb)
|
24
24
|
.a
|
25
25
|
= link_to video.name, video_path( video )
|
26
|
-
|
27
|
-
|
28
|
-
= render 'meta', :item => video
|
26
|
+
= render 'meta_edit', item: video
|
27
|
+
= render 'meta', item: video
|
29
28
|
.c
|
30
29
|
|
31
30
|
= paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
|
@@ -2,19 +2,18 @@
|
|
2
2
|
- content_for :title do
|
3
3
|
#{@video.name} | #{@site ? @site.title : ''}
|
4
4
|
|
5
|
-
.
|
6
|
-
|
5
|
+
.ish_manager-videos-show
|
6
|
+
= link_to '[Back]', videos_path
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
8
|
+
= render 'embed', :video => @video
|
9
|
+
|
10
|
+
.row
|
11
|
+
= image_tag @video.thumb.url(:thumb)
|
12
|
+
.a
|
13
|
+
.title
|
14
|
+
= @video.name.blank? ? t('videos.no_title') : @video.name
|
15
|
+
.flex-row
|
16
|
+
= render 'meta_edit', item: @video
|
17
|
+
= render 'ish_manager/application/meta', :item => @video
|
18
|
+
= link_to @video.video_file_name, @video.video.url
|
17
19
|
|
18
|
-
%p <b>User Profile:</b> #{@video.user_profile.name}
|
19
|
-
%p= image_tag @video.thumb.url(:thumb)
|
20
|
-
%p <b>Video:</b> #{@video.inspect}
|
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.280
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -209,11 +209,6 @@ files:
|
|
209
209
|
- app/controllers/ish_manager/sites_controller.rb
|
210
210
|
- app/controllers/ish_manager/stock_watches_controller.rb
|
211
211
|
- app/controllers/ish_manager/tags_controller.rb
|
212
|
-
- app/controllers/ish_manager/trash/co_tailors_controller.rb
|
213
|
-
- app/controllers/ish_manager/trash/covered_calls_controller.rb
|
214
|
-
- app/controllers/ish_manager/trash/events_controller.rb
|
215
|
-
- app/controllers/ish_manager/trash/friends_controller.rb
|
216
|
-
- app/controllers/ish_manager/trash/iron_condors_controller.rb
|
217
212
|
- app/controllers/ish_manager/user_profiles_controller.rb
|
218
213
|
- app/controllers/ish_manager/users_controller.rb
|
219
214
|
- app/controllers/ish_manager/venues_controller.rb
|
@@ -360,14 +355,17 @@ files:
|
|
360
355
|
- app/views/ish_manager/venues/index.haml
|
361
356
|
- app/views/ish_manager/venues/new.haml
|
362
357
|
- app/views/ish_manager/venues/show.haml
|
363
|
-
- app/views/ish_manager/videos/_embed.
|
358
|
+
- app/views/ish_manager/videos/_embed.haml
|
364
359
|
- app/views/ish_manager/videos/_embed_half.erb
|
365
360
|
- app/views/ish_manager/videos/_embed_mini.erb
|
361
|
+
- app/views/ish_manager/videos/_embed_s3.erb
|
362
|
+
- app/views/ish_manager/videos/_embed_youtube.erb
|
366
363
|
- app/views/ish_manager/videos/_form.haml
|
367
364
|
- app/views/ish_manager/videos/_index.haml
|
368
365
|
- app/views/ish_manager/videos/_index_title.haml
|
369
366
|
- app/views/ish_manager/videos/_list.haml
|
370
367
|
- app/views/ish_manager/videos/_list_small.haml
|
368
|
+
- app/views/ish_manager/videos/_meta_edit.haml
|
371
369
|
- app/views/ish_manager/videos/_preview.haml
|
372
370
|
- app/views/ish_manager/videos/edit.haml
|
373
371
|
- app/views/ish_manager/videos/index.haml
|
@@ -401,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
399
|
- !ruby/object:Gem::Version
|
402
400
|
version: '0'
|
403
401
|
requirements: []
|
404
|
-
rubygems_version: 3.
|
402
|
+
rubygems_version: 3.1.6
|
405
403
|
signing_key:
|
406
404
|
specification_version: 4
|
407
405
|
summary: Summary of IshManager.
|
@@ -1,33 +0,0 @@
|
|
1
|
-
|
2
|
-
class IshManager::CoTailorsController < IshManager::ApplicationController
|
3
|
-
|
4
|
-
def home
|
5
|
-
authorize! :home, ::CoTailors
|
6
|
-
@products = ::CoTailors::Product.all
|
7
|
-
end
|
8
|
-
|
9
|
-
def create_product
|
10
|
-
authorize! :create, ::CoTailors::Product
|
11
|
-
@product = ::CoTailors::Product.new params[:co_tailors_product].permit!
|
12
|
-
if @product.save
|
13
|
-
flash[:notice] = 'Created product'
|
14
|
-
else
|
15
|
-
flash[:alert] = 'Cannot create product: ', @product.errors.messages.to_s
|
16
|
-
end
|
17
|
-
redirect_to :action => 'home'
|
18
|
-
end
|
19
|
-
|
20
|
-
def update_product
|
21
|
-
@product = ::CoTailors::Product.find params[:id]
|
22
|
-
authorize! :update, @product
|
23
|
-
if @product.update_attributes params[:co_tailors_product].permit!
|
24
|
-
flash[:notice] = 'updated product'
|
25
|
-
else
|
26
|
-
flash[:alert] = 'Cannot update product: ', @product.errors.messages.to_s
|
27
|
-
end
|
28
|
-
redirect_to :action => 'home'
|
29
|
-
end
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
|
@@ -1,65 +0,0 @@
|
|
1
|
-
|
2
|
-
class IshManager::EventsController < IshManager::ApplicationController
|
3
|
-
|
4
|
-
before_action :set_lists
|
5
|
-
|
6
|
-
def index
|
7
|
-
authorize! :index, ::Event
|
8
|
-
@events = Event.all
|
9
|
-
if params[:city_id]
|
10
|
-
@resource = City.find( params[:city_id] )
|
11
|
-
@events = @resource.events
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def new
|
16
|
-
@event = Event.new
|
17
|
-
authorize! :new, @event
|
18
|
-
end
|
19
|
-
|
20
|
-
def create
|
21
|
-
@event = Event.new params[:event].permit!
|
22
|
-
authorize! :create, @event
|
23
|
-
if @event.save
|
24
|
-
@event.city.touch
|
25
|
-
redirect_to :action => :index
|
26
|
-
else
|
27
|
-
flash[:alert] = @event.errors.messages
|
28
|
-
render :action => :new
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def edit
|
33
|
-
@event = Event.find params[:id]
|
34
|
-
authorize! :edit, @event
|
35
|
-
end
|
36
|
-
|
37
|
-
def update
|
38
|
-
@event = Event.find params[:id]
|
39
|
-
authorize! :update, @event
|
40
|
-
|
41
|
-
if params[:photo]
|
42
|
-
photo = Photo.new :photo => params[:photo]
|
43
|
-
@event.profile_photo = photo
|
44
|
-
end
|
45
|
-
|
46
|
-
flag = @event.update_attributes params[:event].permit!
|
47
|
-
if flag
|
48
|
-
@event.city.touch
|
49
|
-
flash[:notice] = 'updated event'
|
50
|
-
redirect_to :action => :index
|
51
|
-
else
|
52
|
-
flash[:alert] = "No luck: #{@event.errors.messages}"
|
53
|
-
render :action => :edit
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def show
|
58
|
-
@event = Event.find params[:id]
|
59
|
-
authorize! :show, @event
|
60
|
-
redirect_to :action => :edit, :id => @event.id
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
class IshManager::FriendsController < IshManager::ApplicationController
|
2
|
-
|
3
|
-
def index
|
4
|
-
authorize! :friends_index, Ish::UserProfile
|
5
|
-
@new_friend = Ish::UserProfile.new
|
6
|
-
|
7
|
-
@friends = current_user.profile.friends
|
8
|
-
friend_ids = @friends.map &:id
|
9
|
-
end
|
10
|
-
|
11
|
-
def create
|
12
|
-
@friend = ::Ish::UserProfile.find_by( :email => params[:friend][:email] ) # .includes( :shared_galleries )
|
13
|
-
|
14
|
-
authorize! :friends_new, @friend
|
15
|
-
|
16
|
-
me = current_user.profile
|
17
|
-
me.friends << @friend
|
18
|
-
if me.save
|
19
|
-
flash[:notice] = 'Added Friend'
|
20
|
-
else
|
21
|
-
flash[:alert] = "Cannot add friend: #{me.errors.messages}"
|
22
|
-
end
|
23
|
-
redirect_to :action => 'index'
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
|
@@ -1,45 +0,0 @@
|
|
1
|
-
|
2
|
-
class IshManager::IronCondorsController < IshManager::ApplicationController
|
3
|
-
|
4
|
-
def index
|
5
|
-
authorize! :index, ::Ish::IronCondor
|
6
|
-
@condors = ::Ish::IronCondor.all
|
7
|
-
end
|
8
|
-
|
9
|
-
def create
|
10
|
-
condor = ::Ish::IronCondor.new params[:ish_iron_condor].permit!
|
11
|
-
authorize! :create, condor
|
12
|
-
condor.ticker.upcase!
|
13
|
-
if condor.save
|
14
|
-
flash[:notice] = 'Success.'
|
15
|
-
else
|
16
|
-
flash[:alert] = condor.errors.messages.to_s
|
17
|
-
end
|
18
|
-
redirect_to action: :index
|
19
|
-
end
|
20
|
-
|
21
|
-
def update
|
22
|
-
condor = ::Ish::IronCondor.find params[:id]
|
23
|
-
authorize! :update, condor
|
24
|
-
condor.update params[:ish_iron_condor].permit!
|
25
|
-
condor.ticker.upcase!
|
26
|
-
if condor.save
|
27
|
-
flash[:notice] = 'Success.'
|
28
|
-
else
|
29
|
-
flash[:alert] = condor.errors.messages.to_s
|
30
|
-
end
|
31
|
-
redirect_to action: :index
|
32
|
-
end
|
33
|
-
|
34
|
-
def destroy
|
35
|
-
condor = ::Ish::IronCondor.find params[:id]
|
36
|
-
authorize! :destroy, condor
|
37
|
-
if condor.destroy
|
38
|
-
flash[:notice] = 'Success.'
|
39
|
-
else
|
40
|
-
flash[:alert] = condor.errors.messages.to_s
|
41
|
-
end
|
42
|
-
redirect_to action: :index
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|