ish_manager 0.1.8.227 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bcf03d88d7f1af8455dc7bc3ce17fce365eeb95d9fbc7ed16168122557035dc
|
4
|
+
data.tar.gz: 61ddd32c62730cb184b02f859247ad1e9c147fd6b7d7d9e71ad9740c809b01e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 400f1b581a783e233e6fb37e26a19c4945b411992a7b5ed8634d3db44770a79122d2f2c29e889b6f6cc7c0b6a4865fedbeeb874d399e18b77531d2698a6b637f
|
7
|
+
data.tar.gz: 984e51434aff689569fc61dd2b1a64135c95215313d5955637a848b8f4c58a452ee061860056b5f52182ddc67faddf3d1f7e821d393d615fede7b11d358f23af
|
@@ -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
|
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
|
@@ -2,33 +2,31 @@
|
|
2
2
|
-# ish_manager / tags / show
|
3
3
|
|
4
4
|
- content_for :title do
|
5
|
-
|
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
|
-
|
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
|
-
|
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-
|
31
|
+
.col-sm-12
|
32
32
|
= render 'ish_manager/videos/index_title', :videos => @videos
|
33
|
-
.col-sm-6
|
34
|
-
%h5 Here, nothing yet
|
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.228
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|