ish_manager 0.1.8.182 → 0.1.8.188
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 +4 -4
- data/app/controllers/ish_manager/cities_controller.rb +9 -0
- data/app/models/ish_manager/ability.rb +12 -10
- metadata +2 -8
- data/app/views/ish_manager/galleries/trash/_index.haml +0 -1
- data/app/views/ish_manager/galleries/trash/_list_short.haml +0 -9
- data/app/views/ish_manager/galleries/trash/_menu_secondary.haml +0 -13
- data/app/views/ish_manager/galleries/trash/all_photos.haml +0 -4
- data/app/views/ish_manager/galleries/trash/index_short.haml +0 -19
- data/app/views/ish_manager/galleries/trash/index_thumb.haml +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fa2cffe916b98958175ed5817ff65de2ec00988d9d1e1bdccdc8ebcdd21d42d
|
4
|
+
data.tar.gz: 2e68d9197188f09f3354d290adf83b76b2781a216f6b2a0271f35ec3a1e8152e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bc562a2509aab8ae80c33692f52301a7abe447cd648f52980c87947287cb302920128793a3d98f6080b5c8bcfa34965a69aea052ff17e4cc74311ba531a761b
|
7
|
+
data.tar.gz: 843621098f8e633960aac56441c5080fdc75e3938d6e344bd83dc48336accb9e453262bc45a0ae9b0ca9256cf1c777ea4019e1d30def3cc95c1e62fbc5cc3366
|
@@ -75,6 +75,15 @@ class IshManager::CitiesController < IshManager::ApplicationController
|
|
75
75
|
redirect_to cities_path
|
76
76
|
end
|
77
77
|
|
78
|
+
def delete
|
79
|
+
c = City.find params[:id]
|
80
|
+
if c.delete
|
81
|
+
render
|
82
|
+
else
|
83
|
+
flash[:error] = c.errors.messages
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
78
87
|
private
|
79
88
|
|
80
89
|
def sett_city
|
@@ -9,27 +9,36 @@ class IshManager::Ability
|
|
9
9
|
#
|
10
10
|
unless user.blank?
|
11
11
|
|
12
|
+
#
|
13
|
+
# only sudoer... total power
|
14
|
+
#
|
15
|
+
if user.profile && user.profile.sudoer?
|
16
|
+
can :manage, :all
|
17
|
+
end
|
18
|
+
|
12
19
|
can [ :home ], ::IshManager::Ability
|
13
20
|
|
14
21
|
can [ :friends_index, :friends_new ], ::IshModels::UserProfile
|
15
22
|
|
16
23
|
#
|
17
|
-
# role manager
|
24
|
+
# role admin, manager
|
18
25
|
#
|
19
26
|
if user.profile && [ :admin, :manager ].include?( user.profile.role_name )
|
20
27
|
|
21
28
|
can [ :create_newsitem, :show, :new_feature, :create_feature ], ::City
|
29
|
+
can [ :manage ], ::CoTailors
|
22
30
|
|
23
31
|
can [ :new ], ::Feature
|
24
32
|
|
25
|
-
can [ :
|
33
|
+
can [ :index ], ::Gallery
|
34
|
+
|
26
35
|
can [ :cities_index, :home, :sites_index, :venues_index ], ::Manager
|
27
36
|
|
28
37
|
can [ :new ], Newsitem
|
29
38
|
|
30
39
|
can [ :new, :create ], Report
|
31
40
|
|
32
|
-
can [ :show, :edit, :update, :create_newsitem, :new_feature, :create_feature ], ::Site do |site|
|
41
|
+
can [ :show, :edit, :update, :create_newsitem, :new_feature, :create_feature, :newsitems_index ], ::Site do |site|
|
33
42
|
!site.is_private && !site.is_trash
|
34
43
|
end
|
35
44
|
can [ :manage ], Ish::StockWatch
|
@@ -38,13 +47,6 @@ class IshManager::Ability
|
|
38
47
|
|
39
48
|
end
|
40
49
|
|
41
|
-
#
|
42
|
-
# only sudoer... total power
|
43
|
-
#
|
44
|
-
if user.profile && user.profile.sudoer?
|
45
|
-
can :manage, :all
|
46
|
-
end
|
47
|
-
|
48
50
|
#
|
49
51
|
# role guy (and manager)
|
50
52
|
#
|
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.188
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -237,12 +237,6 @@ files:
|
|
237
237
|
- app/views/ish_manager/galleries/index_titles.haml
|
238
238
|
- app/views/ish_manager/galleries/new.haml
|
239
239
|
- app/views/ish_manager/galleries/show.haml
|
240
|
-
- app/views/ish_manager/galleries/trash/_index.haml
|
241
|
-
- app/views/ish_manager/galleries/trash/_list_short.haml
|
242
|
-
- app/views/ish_manager/galleries/trash/_menu_secondary.haml
|
243
|
-
- app/views/ish_manager/galleries/trash/all_photos.haml
|
244
|
-
- app/views/ish_manager/galleries/trash/index_short.haml
|
245
|
-
- app/views/ish_manager/galleries/trash/index_thumb.haml
|
246
240
|
- app/views/ish_manager/invoices/_form.haml
|
247
241
|
- app/views/ish_manager/invoices/index.haml
|
248
242
|
- app/views/ish_manager/invoices/new.haml
|
@@ -1 +0,0 @@
|
|
1
|
-
app/views/ish_manager/galleries/trash/_list.haml
|
@@ -1,19 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
%h2
|
4
|
-
= link_to 'Galleries', manager_galleries_path
|
5
|
-
= link_to '[+]', new_manager_gallery_path
|
6
|
-
|
7
|
-
.as
|
8
|
-
- @galleries.each do |g|
|
9
|
-
.clear
|
10
|
-
.a
|
11
|
-
= link_to '[~]', edit_manager_gallery_path(g)
|
12
|
-
= link_to g.name, manager_gallery_path(g.id)
|
13
|
-
= link_to '[+]', new_photo_path( :galleryname => g.galleryname )
|
14
|
-
= link_to '[++]', add_photos_path(g.id)
|
15
|
-
.float-right= button_to '[x]', manager_gallery_path(g), :method => :delete
|
16
|
-
|
17
|
-
.clear
|
18
|
-
= paginate @galleries, :param_name => :galleries_page
|
19
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
|
2
|
-
.row
|
3
|
-
.large-12.columns
|
4
|
-
%h1 Manager Galleries List
|
5
|
-
|
6
|
-
= paginate @galleries, :param_name => :galleries_page
|
7
|
-
%ul
|
8
|
-
- @galleries.each do |gallery|
|
9
|
-
%li
|
10
|
-
= link_to '[~]', edit_manager_gallery_path( gallery )
|
11
|
-
= link_to gallery.name, manager_gallery_path( gallery )
|
12
|
-
%br
|
13
|
-
- gallery.photos.each_with_index do |photo, idx|
|
14
|
-
- if idx < 8
|
15
|
-
= image_tag photo.photo.url :thumb
|
16
|
-
= paginate @galleries, :param_name => :galleries_page
|