ish_manager 0.1.8.212 → 0.1.8.213
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 +1 -1
- data/app/controllers/ish_manager/venues_controller.rb +1 -1
- data/app/models/ish_manager/ability.rb +3 -1
- data/app/views/ish_manager/cities/edit.haml +0 -4
- data/app/views/ish_manager/newsitems/_item.haml +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '048a9695a927421b8e6ab1e3a892d86cbedd0be2439fab600fa78f218c09686a'
|
|
4
|
+
data.tar.gz: e4644567d755eeacbd52c46093dc9da8934cefec50f255c80cbc8a6e16bf48fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 829b40224769dae497fdb879f485a0e1b79c62fe60612e5c18f6042c7a4d49f625ac5844b85d13355970a74f68edfe4bea78724ab592e7dd26a1a236d22186ec
|
|
7
|
+
data.tar.gz: 1bf55994dac2045f5b7bca5c2b454905ff3d7dfaab58cbc3d5a1222234c3aa7705ef780d48e86c8a869116c104a0655c63e529f7d0d2c0a58d456459d681c35f
|
|
@@ -56,7 +56,7 @@ class IshManager::CitiesController < IshManager::ApplicationController
|
|
|
56
56
|
if @city.save
|
|
57
57
|
::IshModels::CacheKey.one.update_attributes( :cities => Time.now, :feature_cities => Time.now )
|
|
58
58
|
flash[:notice] = 'Success'
|
|
59
|
-
redirect_to
|
|
59
|
+
redirect_to city_path @city.id
|
|
60
60
|
else
|
|
61
61
|
flash[:alert] = 'No Luck. ' + @city.errors.inspect
|
|
62
62
|
@newsitems = @city.newsitems.all.page( params[:newsitems_page] )
|
|
@@ -4,7 +4,7 @@ class IshManager::VenuesController < IshManager::ApplicationController
|
|
|
4
4
|
before_action :set_lists
|
|
5
5
|
|
|
6
6
|
def index
|
|
7
|
-
authorize! :
|
|
7
|
+
authorize! :index, Venue.new
|
|
8
8
|
@venues = Venue.all
|
|
9
9
|
if params[:city_id]
|
|
10
10
|
@resource = @city = City.find params[:city_id]
|
|
@@ -35,7 +35,7 @@ class IshManager::Ability
|
|
|
35
35
|
!g.is_trash && ( g.is_public || g.user_profile == user.profile )
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
can [ :cities_index, :home, :sites_index
|
|
38
|
+
can [ :cities_index, :home, :sites_index ], ::Manager
|
|
39
39
|
|
|
40
40
|
can [ :new ], Newsitem
|
|
41
41
|
|
|
@@ -56,6 +56,8 @@ class IshManager::Ability
|
|
|
56
56
|
!v.is_trash && ( v.is_public || v.user_profile == user.profile )
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
can [ :index, :add, :create, :edit, :update, :show ], Venue
|
|
60
|
+
|
|
59
61
|
end
|
|
60
62
|
|
|
61
63
|
#
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
%h1.center= link_to @city.name, city_path( @city )
|
|
3
3
|
= render 'form', :url => city_path
|
|
4
|
-
%hr
|
|
5
|
-
|
|
6
|
-
= render 'ish_manager/features/index', :city => @city, :features => @city.features
|
|
7
|
-
= render 'ish_manager/newsitems/index', :city => @city, :newsitems => @city.newsitems
|
|
8
4
|
|
|
@@ -30,9 +30,10 @@
|
|
|
30
30
|
- unless n.gallery.city.blank?
|
|
31
31
|
= t('cities.in')
|
|
32
32
|
= link_to n.gallery.city.name, city_path(n.gallery.city.cityname, :lang => :en)
|
|
33
|
-
- unless n.gallery.
|
|
33
|
+
- unless n.gallery.tags.blank?
|
|
34
34
|
= t('tags.in')
|
|
35
|
-
|
|
35
|
+
- n.gallery.tags do |tag|
|
|
36
|
+
= link_to tag, tag_path(tag.name_seo)
|
|
36
37
|
- unless 0 == n.gallery.photos.length
|
|
37
38
|
- n.gallery.photos.where( :is_trash => false )[0...8].each do |photo|
|
|
38
39
|
= link_to image_tag( photo.photo.url(:thumb), :alt => photo.name ), photo.photo.url(:small), :rel => "lightbox[#{n.gallery.galleryname}]"
|
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.213
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- piousbox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|