ish_manager 0.1.8.136 → 0.1.8.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da6e407376e4d302636f4980f3363401df2c4dd4
|
4
|
+
data.tar.gz: d7b2a0820e5039cb5fbc12e1d32fd31339dce962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc6b59e9a3ea794dbaaca9bd8b5557334e091f07059b53e517fc9cf55364c1eefa5802f497e8d611ce2cb5c366e7ea2977a185bb0430ca96b455c5ea1daf4ae6
|
7
|
+
data.tar.gz: 415c0098d9533583d5eab1ea8cd04c431151c62294204eb8424e501b42c721bf2f2d35e66a3790dbd4fca8ff823007f6aaa928149dc544dbb1234f03588d9b77
|
@@ -99,6 +99,8 @@ class IshManager::FeaturesController < IshManager::ApplicationController
|
|
99
99
|
redirect_path = tag_path( @tag )
|
100
100
|
end
|
101
101
|
|
102
|
+
authorize! :update, @feature
|
103
|
+
|
102
104
|
if @feature.update_attributes params[:feature].permit!
|
103
105
|
@city.touch if @city
|
104
106
|
@site.touch if @site
|
@@ -133,6 +135,8 @@ class IshManager::FeaturesController < IshManager::ApplicationController
|
|
133
135
|
end
|
134
136
|
authorize! :destroy_feature, @resource
|
135
137
|
@feature = @resource.features.find params[:id]
|
138
|
+
authorize! :destroy, @feature
|
139
|
+
|
136
140
|
if @feature.destroy
|
137
141
|
@resource.touch
|
138
142
|
flash[:notice] = :'Success.'
|
@@ -1,11 +1,20 @@
|
|
1
1
|
|
2
2
|
-# manager/features/_form
|
3
3
|
- if @city
|
4
|
-
-
|
4
|
+
- if @feature.persisted?
|
5
|
+
- url = city_feature_path( @city, @feature )
|
6
|
+
- else
|
7
|
+
- url = city_features_path( @city )
|
5
8
|
- if @site
|
6
|
-
-
|
9
|
+
- if @feature.persisted?
|
10
|
+
- url = site_feature_path( @site, @feature )
|
11
|
+
- else
|
12
|
+
- url = site_features_path( @site )
|
7
13
|
- if @tag
|
8
|
-
-
|
14
|
+
- if @feature.persisted?
|
15
|
+
- url = tag_feature_path( @site, @feature )
|
16
|
+
- else
|
17
|
+
- url = tag_features_path( @tag )
|
9
18
|
|
10
19
|
= form_for @feature, :url => url do |f|
|
11
20
|
- if @city
|
@@ -13,13 +13,14 @@
|
|
13
13
|
= link_to '[~]', edit_site_feature_path( @resource, feature ) if 'Site' == @resource.class.name
|
14
14
|
= link_to '[~]', edit_venue_feature_path( @resource, feature ) if 'Venue' == @resource.class.name
|
15
15
|
|
16
|
-
=
|
17
|
-
=
|
18
|
-
=
|
19
|
-
=
|
16
|
+
= button_to( '[x]', city_feature_path( @resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'City' == @resource.class.name
|
17
|
+
= button_to( '[x]', tag_feature_path( @resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Tag' == @resource.class.name
|
18
|
+
= button_to( '[x]', site_feature_path( @resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Site' == @resource.class.name
|
19
|
+
= button_to( '[x]', venue_feature_path( @resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Venue' == @resource.class.name
|
20
20
|
|
21
21
|
%ul
|
22
22
|
%li Name #{feature.name}
|
23
23
|
%li Subhead: #{feature.subhead}
|
24
24
|
%li Report: #{feature.report}
|
25
|
-
|
25
|
+
- if feature.gallery
|
26
|
+
%li Gallery: #{feature.gallery.id} <br /> #{feature.gallery.name}
|
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.137
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|