ish_manager 0.1.8.212 → 0.1.8.213

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: 7125b228e3d0a408f0e34e620cf25ab4921582dbd95d175cefba8f3a5dd4bc35
4
- data.tar.gz: ef89b4022f8a2506f757a2adb094110472c86cd4df48695f7a8dffddf9d66321
3
+ metadata.gz: '048a9695a927421b8e6ab1e3a892d86cbedd0be2439fab600fa78f218c09686a'
4
+ data.tar.gz: e4644567d755eeacbd52c46093dc9da8934cefec50f255c80cbc8a6e16bf48fb
5
5
  SHA512:
6
- metadata.gz: e6528c55c4301922c321f87dfc51e7911ed8781742cbb83258d3f7b19fb75c2a3cff019c98a34759fc5e9930608c5ee6ac3daba8d36337f82dc36aef1a7732a1
7
- data.tar.gz: cd465c60b76c00bd66267d6319475d3ad7544a86c684f92ffde10c71e9bbf89373c6be6964d8e835d8348ee5be4ac147c0b255ff90cc65789006a9d3e671e628
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 edit_city_path @city.id
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! :venues_index, ::Manager
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, :venues_index ], ::Manager
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.tag.blank?
33
+ - unless n.gallery.tags.blank?
34
34
  = t('tags.in')
35
- = link_to n.gallery.tag.name, tag_path(n.gallery.tag.name_seo)
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.212
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-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails