ish_manager 0.1.8.221 → 0.1.8.226

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: 51f674f0353e8b9c333c9a984c39b0ffbc3a8add7548125a37b61a959d941bab
4
- data.tar.gz: 4e00972b73af87a2adf88bd80465082952e34b42320336771ca8d5a2ad504dac
3
+ metadata.gz: 85b4cab8bd5d1cd3c1774dee82948ee0d59b3ef4d28d13acdab2e2208771b05a
4
+ data.tar.gz: 38fb5c28ff903e6fcca7201452c627565788a13615c6c28a709668d2015c7226
5
5
  SHA512:
6
- metadata.gz: 39be779fd1aa26366ba966cef841b3d7bcc57096f6b885064322c2603a9f06c3b987577f6123936b788ff7a3a85f085d2fbe0a429ec5e8cda84a387c74778749
7
- data.tar.gz: fe99f72254c7fd87f63768df7b825798b69c458828dbe26138b9942ae7461d9e2b63a50913d6e0801bf0da8ccd7f0e61b0602349479edb4f342c87208b3fd80b
6
+ metadata.gz: 29f1dddb16814fa2ac28444b494a284fca08a4acd80049d5d4187c47215a773d4fdfe0acc3500de83e66fe3c283946e73dc86833085c12caf0ffd795322905b7
7
+ data.tar.gz: 66c57c05133f55095b575aa5856f84bb839b14d4555955e7c55b4be141e756cbfb63b842f8cc3762a26085b31e9808da72668dbd3da9b2c5d3ca38130d58667f
@@ -41,7 +41,7 @@ class IshManager::GalleriesController < IshManager::ApplicationController
41
41
  if @gallery.save
42
42
  ::IshManager::ApplicationMailer.shared_galleries( params[:gallery][:shared_profiles], @gallery ).deliver
43
43
  flash[:notice] = 'Success'
44
- redirect_to galleries_path
44
+ redirect_to edit_gallery_path(@gallery)
45
45
  else
46
46
  puts! @gallery.errors.messages
47
47
  flash[:alert] = 'No Luck. ' + @gallery.errors.inspect
@@ -87,6 +87,7 @@ class IshManager::VideosController < IshManager::ApplicationController
87
87
 
88
88
  def edit
89
89
  @video = Video.unscoped.find params[:id]
90
+ @user_profiles_list = IshModels::UserProfile.list
90
91
  authorize! :edit, @video
91
92
 
92
93
  @tags_list = Tag.unscoped.or( { :is_public => true }, { :user_id => current_user.id } ).list
@@ -21,14 +21,13 @@
21
21
  %li{ :class => params[:controller] == 'ish_manager/videos' ? 'active' : '' }= link_to 'Videos', videos_path
22
22
  %li{ :class => params[:controller] == 'ish_manager/tags' ? 'active' : '' }= link_to 'Tags', tags_path
23
23
 
24
- - proc do # nothing
25
24
  %ul.nav.nav-pills
26
25
  -# %li{ :class => params[:controller] == 'ish_manager/ally' ? 'active' : '' }= link_to 'Ally', ally_root_path
27
26
  -# %li{ :class => params[:controller] == 'ish_manager/stock_actions' ? 'active' : '' }= link_to 'Stock Actions', stock_actions_path
28
27
  -# %li{ :class => params[:controller] == 'ish_manager/stock_options' ? 'active' : '' }= link_to 'Stock Options', stock_options_path
29
28
  %li{ :class => params[:controller] == 'ish_manager/stock_watches' ? 'active' : '' }= link_to 'Stock Watches', stock_watches_path
30
- %li{ :class => params[:controller] == 'ish_manager/iron_condors' ? 'active' : '' }= link_to 'Iron Condors', iron_condors_path
31
- %li{ :class => params[:controller] == 'ish_manager/covered_calls' ? 'active' : '' }= link_to 'Covered Calls', covered_calls_path
29
+ -# %li{ :class => params[:controller] == 'ish_manager/iron_condors' ? 'active' : '' }= link_to 'Iron Condors', iron_condors_path
30
+ -# %li{ :class => params[:controller] == 'ish_manager/covered_calls' ? 'active' : '' }= link_to 'Covered Calls', covered_calls_path
32
31
 
33
32
  - proc do # nothing
34
33
  %ul.nav.nav-pills
@@ -24,7 +24,8 @@
24
24
  - @photos.each do |photo|
25
25
  .col-xs-4
26
26
  .item{ :style => "border: 1px solid red;" }
27
- = button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
27
+ .float-left= button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
28
+ = link_to "go to", "#large_#{photo.id}"
28
29
  %br
29
30
  = image_tag photo.photo.url( :thumb ), :alt => ''
30
31
  .spacer{ :style => 'height: 100px' }
@@ -33,6 +34,9 @@
33
34
  .center.large-photos
34
35
  - @photos.each do |photo|
35
36
  .item
36
- .wrapper{ style: "background-image: url('#{photo.photo.url( :large )}')" }
37
+ %a{id: "large_#{photo.id}" }
38
+ -# .wrapper{ style: "background-image: url('#{photo.photo.url( :large )}')" }
39
+ .wrapper
37
40
  = button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
38
-
41
+ = image_tag photo.photo.url(:large)
42
+ = link_to "large", photo.photo.url(:large)
@@ -24,10 +24,10 @@
24
24
  .panel-body
25
25
  %ul
26
26
  %li
27
- = link_to '[~]', edit_url.call( n )
28
- = button_to '[x]', delete_url.call( n ), :method => :delete, :data => { :confirm => 'Are you sure?' }
27
+ .float-left= link_to '[~]', edit_url.call( n )
28
+ .float-left= button_to '[x]', delete_url.call( n ), :method => :delete, :data => { :confirm => 'Are you sure?' }
29
29
  Name: #{n.name}
30
- Desc: #{n.descr}
30
+ %li Desc: #{n.descr}
31
31
  %li Report id: #{n.report_id}
32
32
  %li Gallery id: #{n.gallery_id}
33
33
  %li username: #{n.username}
@@ -8,24 +8,29 @@
8
8
  - if n.photo.gallery.blank?
9
9
  = link_to image_tag( n.photo.photo.url(:small) ), n.photo.photo.url(:large), :rel => 'lightbox[newsitem]'
10
10
  - else
11
- = link_to image_tag( n.photo.photo.url(:small) ), gallery_path( n.photo.gallery.galleryname, n.photo.gallery.photos.index(n.photo) )
11
+ = link_to image_tag( n.photo.photo.url(:small) ), gallery_path( n.photo.gallery.galleryname, n.photo.gallery.photos.index(n.photo) )
12
12
  .meta= render 'ish_manager/photos/meta', :photo => n.photo
13
-
14
- - if !n.report.blank?
15
- .Nreport
16
- %h3= link_to n.report.name, report_path(n.report.name_seo)
13
+
14
+ - if n.report
15
+ .Nreport.newsitem-report
16
+ %ul
17
+ %li <b>Report</b> #{n.report.id}
18
+ %li Premium Tier #{n.report.premium_tier}
19
+ %h5
20
+ = link_to n.report.name, report_path(n.report.name_seo)
21
+ = link_to "[~]", edit_report_path(n.report)
17
22
  .meta
18
- New Report on #{pretty_date n.report.created_at} by #{n.report.username}
23
+ on #{pretty_date n.report.created_at} by #{n.report.username}
19
24
  - unless n.report.photo.blank?
20
25
  .thumb= link_to image_tag(n.report.photo.photo.url(:thumb), :alt => ''), report_path( n.report.name_seo )
21
26
  .subhead= n.report.subhead
22
27
  .c
23
-
28
+
24
29
  - if !n.gallery.blank?
25
30
  .Ngallery
26
31
 
27
32
  %h3= link_to n.gallery.name, gallery_path(n.gallery.galleryname, 0)
28
- .meta
33
+ .meta
29
34
  #{t('newsitems.gallery', :username => n.gallery.username, :date => pretty_date(n.gallery.created_at))}
30
35
  - unless n.gallery.city.blank?
31
36
  = t('cities.in')
@@ -39,7 +44,7 @@
39
44
  = link_to image_tag( photo.photo.url(:thumb), :alt => photo.name ), photo.photo.url(:small), :rel => "lightbox[#{n.gallery.galleryname}]"
40
45
  -# .subhead= n.descr
41
46
  .c
42
-
47
+
43
48
  - if n.video_id
44
49
  - video = Video.unscoped.find n.video_id
45
50
  .Nvideo
@@ -48,10 +53,10 @@
48
53
  = render 'ish_manager/application/meta', :item => video
49
54
  = render 'ish_manager/videos/embed_half', :video => video
50
55
  .c
51
-
56
+
52
57
  - if !n.descr.blank? && n.gallery.blank? && n.report.blank?
53
58
  .Ndescr.panel
54
59
  .meta= pretty_date n.created_at
55
60
  .subhead= simple_format n.descr
56
61
  .c
57
-
62
+
@@ -2,7 +2,7 @@
2
2
  %h5
3
3
  User Profiles (#{@user_profiles.count})
4
4
  = link_to '[+]', new_user_profile_path
5
-
5
+
6
6
 
7
7
  - @user_profiles.each do |profile|
8
8
  .panel
@@ -17,7 +17,6 @@
17
17
  %li <b>Role:</b> #{profile.role_name}
18
18
  %li <b>User.email:</b> #{profile.user ? profile.user.email : nil}
19
19
  %li <b>City:</b> #{profile.current_city ? profile.current_city.name : nil}
20
- %li <b>About:</b> #{profile.about}
21
20
  .col-sm-8
22
21
  %h5 Shared galleries
23
22
  - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
@@ -1,7 +1,7 @@
1
1
 
2
2
  = form_for video do |f|
3
3
  = render 'form_errors', :item => @video
4
-
4
+
5
5
  .row
6
6
  .col-md-6
7
7
  .field
@@ -32,7 +32,10 @@
32
32
  = f.number_field :premium_tier
33
33
  .col-sm-3
34
34
  = f.label :site
35
- = select :gallery, :site_id, @sites_list
35
+ = f.select :site_id, @sites_list
36
+ .col-sm-3
37
+ = f.label :user_profile
38
+ = f.select :user_profile_id, @user_profiles_list
36
39
  .row
37
40
  .col-sm-4
38
41
  = f.check_box :is_public
@@ -15,4 +15,6 @@
15
15
  %hr
16
16
  = link_to @video.video.url, @video.video.url
17
17
 
18
- -# = render 'disqus'
18
+ %p <b>User Profile:</b> #{@video.user_profile.name}
19
+
20
+ = @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.221
4
+ version: 0.1.8.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -219,7 +219,6 @@ files:
219
219
  - app/mailers/ish_manager/application_mailer.rb
220
220
  - app/models/ish_manager/ability.rb
221
221
  - app/models/ish_manager/application_record.rb
222
- - app/views/ish_manager/ally/home.haml
223
222
  - app/views/ish_manager/application/_analytics.html
224
223
  - app/views/ish_manager/application/_form_errors.haml
225
224
  - app/views/ish_manager/application/_main_footer.haml
@@ -245,9 +244,6 @@ files:
245
244
  - app/views/ish_manager/cities/new_feature.haml
246
245
  - app/views/ish_manager/cities/new_newsitem.haml
247
246
  - app/views/ish_manager/cities/show.haml
248
- - app/views/ish_manager/co_tailors/_product_form.haml
249
- - app/views/ish_manager/co_tailors/home.haml
250
- - app/views/ish_manager/covered_calls/index.haml
251
247
  - app/views/ish_manager/events/_form.haml
252
248
  - app/views/ish_manager/events/_index.haml
253
249
  - app/views/ish_manager/events/edit.haml
@@ -260,7 +256,6 @@ files:
260
256
  - app/views/ish_manager/features/index.haml
261
257
  - app/views/ish_manager/features/new.haml
262
258
  - app/views/ish_manager/features/show.haml
263
- - app/views/ish_manager/friends/index.haml
264
259
  - app/views/ish_manager/galleries/_form.haml
265
260
  - app/views/ish_manager/galleries/_index.haml
266
261
  - app/views/ish_manager/galleries/_index_thumbs.haml
@@ -277,8 +272,6 @@ files:
277
272
  - app/views/ish_manager/invoices/_form.haml
278
273
  - app/views/ish_manager/invoices/index.haml
279
274
  - app/views/ish_manager/invoices/new.haml
280
- - app/views/ish_manager/iron_condors/_form.haml
281
- - app/views/ish_manager/iron_condors/index.haml
282
275
  - app/views/ish_manager/kaminari/_first_page.html.erb
283
276
  - app/views/ish_manager/kaminari/_gap.html.erb
284
277
  - app/views/ish_manager/kaminari/_last_page.html.erb
@@ -305,7 +298,6 @@ files:
305
298
  - app/views/ish_manager/newsitems/edit.haml
306
299
  - app/views/ish_manager/newsitems/index.haml
307
300
  - app/views/ish_manager/newsitems/new.haml
308
- - app/views/ish_manager/orders/index.haml
309
301
  - app/views/ish_manager/payments/index.haml
310
302
  - app/views/ish_manager/photos/_meta.haml
311
303
  - app/views/ish_manager/photos/_multinew.haml
@@ -340,6 +332,14 @@ files:
340
332
  - app/views/ish_manager/tags/index.haml
341
333
  - app/views/ish_manager/tags/new.haml
342
334
  - app/views/ish_manager/tags/show.haml
335
+ - app/views/ish_manager/trash/ally/home.haml
336
+ - app/views/ish_manager/trash/co_tailors/_product_form.haml
337
+ - app/views/ish_manager/trash/co_tailors/home.haml
338
+ - app/views/ish_manager/trash/covered_calls/index.haml
339
+ - app/views/ish_manager/trash/friends/index.haml
340
+ - app/views/ish_manager/trash/iron_condors/_form.haml
341
+ - app/views/ish_manager/trash/iron_condors/index.haml
342
+ - app/views/ish_manager/trash/orders/index.haml
343
343
  - app/views/ish_manager/user_profiles/_form.haml
344
344
  - app/views/ish_manager/user_profiles/edit.haml
345
345
  - app/views/ish_manager/user_profiles/index.haml
@@ -377,7 +377,7 @@ homepage: http://wasya.co
377
377
  licenses:
378
378
  - MIT
379
379
  metadata: {}
380
- post_install_message:
380
+ post_install_message:
381
381
  rdoc_options: []
382
382
  require_paths:
383
383
  - lib
@@ -393,7 +393,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
393
393
  version: '0'
394
394
  requirements: []
395
395
  rubygems_version: 3.0.6
396
- signing_key:
396
+ signing_key:
397
397
  specification_version: 4
398
398
  summary: Summary of IshManager.
399
399
  test_files: []