ish_manager 0.1.8.223 → 0.1.8.228

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: 369291675e2b11d99d6853980310f18ab835128ad442118fd3525269ee36c357
4
- data.tar.gz: 28c59188ea0de333d77eb823d416be59c48b3ff0e39c47e64f89bf2fa8265864
3
+ metadata.gz: 0bcf03d88d7f1af8455dc7bc3ce17fce365eeb95d9fbc7ed16168122557035dc
4
+ data.tar.gz: 61ddd32c62730cb184b02f859247ad1e9c147fd6b7d7d9e71ad9740c809b01e1
5
5
  SHA512:
6
- metadata.gz: d5197f2fdfe7823899f3c60fda2994a29de7d058ae981d4c839741637b217bec541d02a49029aab41b1e98182ebbb0f4685e0f94576338e215275352b69687d7
7
- data.tar.gz: 457766d099dab70569b3e28fb022cfe45f642a6736d6ed1e3c48c7ee9b6f4c00df2e0ab8d1740bcc819c5f6308e8e2ed6b51f4bc601e8fb7468839cc59581b58
6
+ metadata.gz: 400f1b581a783e233e6fb37e26a19c4945b411992a7b5ed8634d3db44770a79122d2f2c29e889b6f6cc7c0b6a4865fedbeeb874d399e18b77531d2698a6b637f
7
+ data.tar.gz: 984e51434aff689569fc61dd2b1a64135c95215313d5955637a848b8f4c58a452ee061860056b5f52182ddc67faddf3d1f7e821d393d615fede7b11d358f23af
@@ -15,8 +15,10 @@
15
15
  height: 100%;
16
16
  background-repeat: no-repeat;
17
17
  background-position: center center;
18
+ background-size: contain;
18
19
  }
19
20
 
20
21
  .large-photos .item .wrapper img {
21
22
  max-height: 100%;
23
+ max-width: 100%;
22
24
  }
@@ -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
@@ -61,18 +61,18 @@ class IshManager::GalleriesController < IshManager::ApplicationController
61
61
  old_shared_profile_ids = @gallery.shared_profiles.map(&:id)
62
62
  authorize! :update, @gallery
63
63
 
64
+ params[:gallery][:tag_ids].delete('')
65
+
64
66
  params[:gallery][:shared_profiles].delete('')
65
- # params[:gallery][:shared_profiles] = IshModels::UserProfile.find( params[:gallery][:shared_profiles] ).to_a
66
67
  params[:gallery][:shared_profile_ids] = params[:gallery][:shared_profiles]
67
68
  params[:gallery].delete :shared_profiles
68
69
 
69
- # puts! params[:gallery][:shared_profiles], 'shared profiles'
70
70
  if @gallery.update_attributes( params[:gallery].permit! )
71
71
  new_shared_profiles = IshModels::UserProfile.find( params[:gallery][:shared_profile_ids]
72
72
  ).select { |p| !old_shared_profile_ids.include?( p.id ) }
73
73
  ::IshManager::ApplicationMailer.shared_galleries( new_shared_profiles, @gallery ).deliver
74
74
  flash[:notice] = 'Success.'
75
- redirect_to galleries_path
75
+ redirect_to gallery_path(@gallery)
76
76
  else
77
77
  puts! @gallery.errors.messages, 'cannot save gallery'
78
78
  flash[:alert] = 'No Luck. ' + @gallery.errors.messages.to_s
@@ -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
@@ -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,7 @@
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
- = button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
38
-
37
+ %a{id: "large_#{photo.id}" }
38
+ .float-left= button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
39
+ = link_to "large", photo.photo.url(:large)
40
+ .wrapper{ style: "background-image: url('#{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,33 +2,31 @@
2
2
  -# ish_manager / tags / show
3
3
 
4
4
  - content_for :title do
5
- Topic #{@tag.name}
6
-
5
+ Tag #{@tag.name}
6
+
7
7
  .row
8
8
  .col-sm-12
9
9
  %h5.center
10
10
  Tag
11
11
  = @tag.name
12
12
  = link_to image_edit, edit_tag_path( @tag )
13
- -# = link_to_delete( @tag )
14
- .inline= button_to 'X', tag_path( @tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
15
- -# = render 'ads/leaderboard'
13
+ .inline= button_to 'X', tag_path( @tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
16
14
  -# .descr= @tag.descr # I don't wanna show this every time to everyone, they know what they are here for.
17
- = render 'ish_manager/features/index', :features => @tag.features[0, Tag.n_features]
18
-
15
+ -# = render 'ish_manager/features/index', :features => @tag.features[0, Tag.n_features]
16
+
17
+ - proc do # nothing
18
+ .row
19
+ .col-sm-12
20
+ = render 'ish_manager/newsitems/index', :newsitems => @tag.newsitems, :resource => @tag, :tag => @tag
21
+
19
22
  .row
20
23
  .col-sm-12
21
- = render 'ish_manager/newsitems/index', :newsitems => @tag.newsitems, :resource => @tag, :tag => @tag
22
-
23
- .row
24
- .col-sm-6
25
24
  = render 'ish_manager/reports/index', :reports => @tag.reports, :n_ads => 0
26
-
27
- .col-sm-6
25
+
26
+ .row
27
+ .col-sm-12
28
28
  = render 'ish_manager/galleries/index_title', :galleries => @galleries, :n_thumbs => 4
29
-
29
+
30
30
  .row
31
- .col-sm-6
31
+ .col-sm-12
32
32
  = render 'ish_manager/videos/index_title', :videos => @videos
33
- .col-sm-6
34
- %h5 Here, nothing yet
@@ -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
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.223
4
+ version: 0.1.8.228
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-07-04 00:00:00.000000000 Z
11
+ date: 2020-12-26 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: []