ish_manager 0.1.8.322 → 0.1.8.323

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/ish_manager/application.scss +1 -0
  3. data/app/assets/stylesheets/ish_manager/email_templates.scss +2 -1
  4. data/app/assets/stylesheets/ish_manager/maps.scss +10 -0
  5. data/app/controllers/ish_manager/application_controller.rb +0 -8
  6. data/app/controllers/ish_manager/email_campaigns_controller.rb +2 -2
  7. data/app/controllers/ish_manager/email_contexts_controller.rb +26 -5
  8. data/app/controllers/ish_manager/galleries_controller.rb +3 -5
  9. data/app/controllers/ish_manager/leads_controller.rb +2 -2
  10. data/app/controllers/ish_manager/maps_controller.rb +13 -12
  11. data/app/controllers/ish_manager/markers_controller.rb +1 -1
  12. data/app/controllers/ish_manager/newsitems_controller.rb +9 -47
  13. data/app/controllers/ish_manager/photos_controller.rb +0 -2
  14. data/app/controllers/ish_manager/reports_controller.rb +2 -2
  15. data/app/controllers/ish_manager/user_profiles_controller.rb +7 -7
  16. data/app/controllers/ish_manager/videos_controller.rb +2 -29
  17. data/app/helpers/ish_manager/application_helper.rb +0 -15
  18. data/app/views/ish_manager/application/_paginate.haml +4 -0
  19. data/app/views/ish_manager/email_contexts/index.haml +20 -14
  20. data/app/views/ish_manager/{unsubscribes → email_unsubscribes}/new.haml +0 -0
  21. data/app/views/ish_manager/galleries/_form.haml +0 -4
  22. data/app/views/ish_manager/maps/_form.haml +9 -6
  23. data/app/views/ish_manager/markers/_form.haml +3 -0
  24. data/app/views/ish_manager/markers/_index.haml +7 -3
  25. data/app/views/ish_manager/newsitems/_form.haml +0 -6
  26. data/app/views/ish_manager/newsitems/_item.haml +0 -7
  27. data/app/views/ish_manager/newsitems/edit.haml +1 -10
  28. data/app/views/ish_manager/newsitems/index.haml +1 -7
  29. data/app/views/ish_manager/newsitems/new.haml +0 -4
  30. data/app/views/ish_manager/reports/_form.haml +0 -4
  31. data/app/views/ish_manager/reports/_index.haml +2 -5
  32. data/app/views/ish_manager/user_profiles/_form.haml +0 -4
  33. data/app/views/ish_manager/user_profiles/edit.haml +2 -3
  34. data/app/views/ish_manager/user_profiles/index.haml +1 -1
  35. data/app/views/ish_manager/videos/_form.haml +0 -6
  36. data/app/views/ish_manager/videos/_list.haml +1 -1
  37. data/app/views/ish_manager/videos/show.haml +1 -1
  38. data/config/routes.rb +2 -0
  39. metadata +4 -58
  40. data/app/controllers/ish_manager/trash/cities_controller.rb +0 -107
  41. data/app/controllers/ish_manager/trash/orders_controller.rb +0 -12
  42. data/app/controllers/ish_manager/trash/sites_controller.rb +0 -95
  43. data/app/controllers/ish_manager/trash/tags_controller.rb +0 -91
  44. data/app/controllers/ish_manager/trash/users_controller.rb +0 -15
  45. data/app/controllers/ish_manager/trash/venues_controller.rb +0 -72
  46. data/app/views/ish_manager/features/_form.haml +0 -70
  47. data/app/views/ish_manager/features/_index.haml +0 -43
  48. data/app/views/ish_manager/features/_item.haml +0 -16
  49. data/app/views/ish_manager/features/edit.haml +0 -7
  50. data/app/views/ish_manager/features/index.haml +0 -5
  51. data/app/views/ish_manager/features/new.haml +0 -11
  52. data/app/views/ish_manager/features/show.haml +0 -0
  53. data/app/views/ish_manager/markers/_index_small.haml-trash +0 -28
  54. data/app/views/ish_manager/tags/_features.haml +0 -12
  55. data/app/views/ish_manager/tags/_form.haml +0 -44
  56. data/app/views/ish_manager/tags/_index.haml +0 -16
  57. data/app/views/ish_manager/tags/_item.haml +0 -16
  58. data/app/views/ish_manager/tags/_list.haml +0 -8
  59. data/app/views/ish_manager/tags/_list_simple.haml +0 -5
  60. data/app/views/ish_manager/tags/_meta.haml +0 -9
  61. data/app/views/ish_manager/tags/edit.haml +0 -4
  62. data/app/views/ish_manager/tags/index.haml +0 -22
  63. data/app/views/ish_manager/tags/new.haml +0 -3
  64. data/app/views/ish_manager/tags/show.haml +0 -23
  65. data/app/views/ish_manager/trash/cities/_form.haml +0 -38
  66. data/app/views/ish_manager/trash/cities/_header.haml +0 -39
  67. data/app/views/ish_manager/trash/cities/edit.haml +0 -4
  68. data/app/views/ish_manager/trash/cities/edit_feature.haml +0 -4
  69. data/app/views/ish_manager/trash/cities/index.haml +0 -27
  70. data/app/views/ish_manager/trash/cities/new.haml +0 -5
  71. data/app/views/ish_manager/trash/cities/new_feature.haml +0 -5
  72. data/app/views/ish_manager/trash/cities/new_newsitem.haml +0 -23
  73. data/app/views/ish_manager/trash/cities/show.haml +0 -63
  74. data/app/views/ish_manager/trash/events/_form.haml +0 -45
  75. data/app/views/ish_manager/trash/events/_index.haml +0 -18
  76. data/app/views/ish_manager/trash/events/edit.haml +0 -2
  77. data/app/views/ish_manager/trash/events/index.haml +0 -2
  78. data/app/views/ish_manager/trash/events/new.haml +0 -2
  79. data/app/views/ish_manager/trash/meeting_mailer/README.txt +0 -5
  80. data/app/views/ish_manager/trash/sites/_form.haml +0 -63
  81. data/app/views/ish_manager/trash/sites/_header.haml +0 -21
  82. data/app/views/ish_manager/trash/sites/edit.haml +0 -3
  83. data/app/views/ish_manager/trash/sites/galleries.haml +0 -19
  84. data/app/views/ish_manager/trash/sites/index.haml +0 -26
  85. data/app/views/ish_manager/trash/sites/new.haml +0 -4
  86. data/app/views/ish_manager/trash/sites/show.haml +0 -18
  87. data/app/views/ish_manager/trash/venues/_form.haml +0 -43
  88. data/app/views/ish_manager/trash/venues/_index.haml +0 -13
  89. data/app/views/ish_manager/trash/venues/_search.haml +0 -7
  90. data/app/views/ish_manager/trash/venues/edit.haml +0 -5
  91. data/app/views/ish_manager/trash/venues/index.haml +0 -9
  92. data/app/views/ish_manager/trash/venues/new.haml +0 -5
  93. data/app/views/ish_manager/trash/venues/show.haml +0 -2
  94. data/app/views/layouts/ish_manager/application.haml-trash +0 -46
@@ -1,72 +0,0 @@
1
-
2
- class IshManager::VenuesController < IshManager::ApplicationController
3
-
4
- before_action :set_lists
5
-
6
- def index
7
- authorize! :index, Venue.new
8
- @venues = Venue.all
9
- if params[:city_id]
10
- @resource = @city = City.find params[:city_id]
11
- @venues = @venues.where( :city => @city )
12
- end
13
- end
14
-
15
- def new
16
- @venue = Venue.new
17
- @venue.city_id = params[:city_id] if params[:city_id]
18
- authorize! :new, @venue
19
- end
20
-
21
- def create
22
- @venue = Venue.new params[:venue].permit!
23
- authorize! :create, @venue
24
- if @venue.save
25
- redirect_to city_path( params[:venue][:city_id] ), :notice => 'Venue successfully created.'
26
- else
27
- flash[:alert] = @venue.errors.messages
28
- render :action => :new
29
- end
30
- end
31
-
32
- def edit
33
- @venue = Venue.find params[:id]
34
- authorize! :edit, @venue
35
- end
36
-
37
- def update
38
- params[:venue][:tag_ids].delete ''
39
- @resource = @venue = Venue.find params[:id]
40
- authorize! :update, @venue
41
- update_profile_pic
42
- flag = @venue.update_attributes params[:venue].permit!
43
- if flag
44
- flash[:notice] = 'updated venue'
45
- redirect_to city_path( params[:venue][:city_id] )
46
- else
47
- flash[:alert] = "No luck: #{@venue.errors.messages}"
48
- render :action => :edit
49
- end
50
- end
51
-
52
- def show
53
- @venue = Venue.find params[:id]
54
- authorize! :show, @venue
55
- redirect_to :action => :edit, :id => @venue.id
56
- end
57
-
58
- def destroy
59
- @venue = Venue.unscoped.find params[:id]
60
- venue_name = @venue.name
61
- authorize! :delete, @venue
62
- if @venue.destroy
63
- flash[:notice] = "Deleted venue #{venue_name}"
64
- else
65
- flash[:alert] = "Cannot delete venue: #{@venue.errors.messages}"
66
- end
67
- redirect_to city_path( @venue.city_id )
68
- end
69
-
70
- end
71
-
72
-
@@ -1,70 +0,0 @@
1
-
2
- -# manager/features/_form
3
- - if @city
4
- - if @feature.persisted?
5
- - url = city_feature_path( @city, @feature )
6
- - else
7
- - url = city_features_path( @city )
8
- - if @site
9
- - if @feature.persisted?
10
- - url = site_feature_path( @site, @feature )
11
- - else
12
- - url = site_features_path( @site )
13
- - if @tag
14
- - if @feature.persisted?
15
- - url = tag_feature_path( @tag, @feature )
16
- - else
17
- - url = tag_features_path( @tag )
18
-
19
- = form_for @feature, :url => url do |f|
20
- - if @city
21
- = hidden_field_tag :city_id, @city.id
22
- City #{@city.name}
23
- - if @site
24
- = hidden_field_tag :site_id, @site.id
25
- Site #{@site.domain}
26
- - if @tag
27
- = hidden_field_tag :tag_id, @tag.id if @tag
28
- Tag #{@tag.name}
29
-
30
- .row
31
- .large-6.columns
32
- = f.label :name
33
- = f.text_field :name
34
- %br
35
- = f.label :subhead
36
- = f.text_field :subhead
37
- %br
38
- = f.label :image_path
39
- = f.text_field :image_path
40
- %br
41
- = f.label :link_path
42
- = f.text_field :link_path
43
- -# %br
44
- = f.label :photo
45
- = f.file_field :photo
46
- .large-6.columns
47
- = f.label :report
48
- = select :feature, :report_id, @reports_list
49
- %br
50
- = f.label :gallery
51
- = select :feature, :gallery_id, @galleries_list
52
- %br
53
- = f.label :video
54
- = select :feature, :video_id, @videos_list
55
-
56
- .row
57
- %hr
58
- .large-6.columns
59
- %br
60
- = f.label :weight
61
- = f.text_field :weight
62
- %br
63
- = f.label :partial_name
64
- = f.text_field :partial_name
65
- .large-6.columns
66
- .field
67
- = f.label :inner_html
68
- = f.text_area :inner_html, class: 'large'
69
- .actions
70
- = f.submit
@@ -1,43 +0,0 @@
1
- -#
2
- -# ish_manager / features / _index
3
- -#
4
-
5
- - resource ||= @resource
6
-
7
- - pparams = {}
8
- - pparams["#{resource.class.name.downcase}_id"] = resource.id
9
-
10
- .row
11
- .large-12.columns
12
- %h5
13
- Features in <b>#{resource.class.name}</b> #{resource.name}
14
- = link_to '[+]', new_feature_path(pparams)
15
- .row
16
- - resource.features.each do |feature|
17
- .col.s3
18
-
19
- .flex-row
20
-
21
- = link_to '[~]', edit_city_feature_path( resource, feature ) if 'City' == resource.class.name
22
- = link_to '[~]', edit_tag_feature_path( resource, feature ) if 'Tag' == resource.class.name
23
- = link_to '[~]', edit_site_feature_path( resource, feature ) if 'Site' == resource.class.name
24
- = link_to '[~]', edit_venue_feature_path( resource, feature ) if 'Venue' == resource.class.name
25
-
26
- = button_to( '[x]', city_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'City' == resource.class.name
27
- = button_to( '[x]', tag_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Tag' == resource.class.name
28
- = button_to( '[x]', site_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Site' == resource.class.name
29
- = button_to( '[x]', venue_feature_path( resource, feature ), :method => :delete, :data => { :confirm => :'Are you sure?' } ) if 'Venue' == resource.class.name
30
-
31
- %ul
32
- - if feature.name
33
- %li Name #{feature.name}
34
- - if feature.subhead
35
- %li Subhead: #{feature.subhead}
36
- - if feature.report
37
- %li Report: #{feature.report}
38
- - if feature.gallery
39
- %li Gallery: #{feature.gallery.id} <br /> #{feature.gallery.name}
40
- - if feature.inner_html
41
- %li
42
- inner html:
43
- = raw feature.inner_html
@@ -1,16 +0,0 @@
1
-
2
- .panel
3
- - unless feature[:name].blank?
4
- %h5= link_to feature[:name].titleize, feature[:link_path]
5
- - unless feature[:image_path].blank?
6
- = link_to image_tag( feature[:image_path] ), feature[:link_path]
7
- - unless feature[:subhead].blank?
8
- .descr= raw feature[:subhead]
9
- - unless feature.report.blank?
10
- %h3= link_to feature.report.name, report_path(feature.report.slug)
11
- .descr= raw feature.report.subhead
12
- - unless feature.gallery.blank?
13
- %h3= link_to feature.gallery.name, gallery_path(feature.gallery)
14
- - begin
15
- = image_tag feature.gallery.photos[0].photo.url( :thumb )
16
- - rescue
@@ -1,7 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1
5
- Edit Feature
6
-
7
- = render 'form', :feature => @feature
@@ -1,5 +0,0 @@
1
- -#
2
- -# ish_manager / features / index
3
- -#
4
-
5
- = render 'index'
@@ -1,11 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h3 New Feature
5
-
6
- - if @city
7
- = render 'form', :feature => @feature, :city => @city
8
- - if @site
9
- = render 'form', :feature => @feature, :site => @site
10
- - if @tag
11
- = render 'form', :feature => @feature, :tag => @tag
File without changes
@@ -1,28 +0,0 @@
1
-
2
- .markers--index-small.markers-list
3
- %h1
4
- Markers (#{markers.length})
5
- = link_to '[+]', new_marker_path({ map_id: map.id })
6
- - markers.each do |m|
7
- = form_for m, { html: { class: "item #{m.slug}" }, url: marker_path(m.id) } do |f|
8
- .flex-row
9
- .flex-column
10
- .a= m.name
11
- %b= m.slug
12
- = link_to '[~]', edit_marker_path(m.id)
13
- .flex-row
14
- .flex-column
15
- .a on map:
16
- = image_tag( m.image ? m.image.image.url(:thumb) : image_missing )
17
- .flex-column
18
- .a title:
19
- = image_tag( m.title_image ? m.title_image.image.url(:thumb) : image_missing )
20
- .field
21
- = f.label :x
22
- = f.text_field :x
23
- .field
24
- = f.label :y
25
- = f.text_field :y
26
- .field
27
- = f.submit 'Save'
28
-
@@ -1,12 +0,0 @@
1
-
2
- .tags-features
3
- .title
4
- %h1
5
- = link_to t('tags.list'), tags_path
6
-
7
- .items
8
- - feature_tags.each do |tag|
9
- .item
10
- %h3= link_to tag['name_'+@locale.to_s], tag_path(tag.slug)
11
-
12
- .c
@@ -1,44 +0,0 @@
1
-
2
- -#
3
- -# ish_manager / tags / _form
4
- -#
5
-
6
- = form_for @tag do |f|
7
- .row
8
- .col.s12.m6
9
- .input-field
10
- = f.label :name
11
- = f.text_field :name
12
-
13
- .row
14
- .col.s12.col.m6
15
- .input-field
16
- = f.select :parent_tag_id, options_for_select( @tags_list, :selected => ( params[:for_tag] || @tag.parent_tag_id ) )
17
- = f.label "parent tag"
18
- .row
19
- .col.s12.m6
20
- .input-field
21
- = f.select :city, options_for_select( @cities_list, :selected => @tag.city_id )
22
- = f.label "city"
23
- .col.s12.m6
24
- .input-field
25
- = f.select :site, options_for_select( @sites_list, :selected => @tag.site_id )
26
- = f.label "site"
27
- .row
28
- .col.s12.m3
29
- = f.check_box :is_public
30
- = f.label :is_public
31
- .col.s12.m3
32
- = f.check_box :is_feature
33
- = f.label :is_feature
34
- .col.s12.m3
35
- = f.check_box :is_trash
36
- = f.label :is_trash
37
- .row
38
- = f.label :maps, 'Maps'
39
- = f.select :map_ids, @maps_list, {}, { multiple: true }
40
-
41
- .row
42
- .actions
43
- %br
44
- = f.submit
@@ -1,16 +0,0 @@
1
-
2
- - content_for :title do
3
- Tags
4
-
5
- .manager-tags--index
6
- .center
7
- %h5 Tags (#{tags.count})
8
- .panel
9
- .panel-body
10
- %ul.tags
11
- - @tags.each do |tag|
12
- = render 'ish_manager/tags/item', :tag => tag
13
- - if @tags.blank?
14
- %li No Tags
15
-
16
-
@@ -1,16 +0,0 @@
1
-
2
- %li
3
- %div
4
- - if tag.is_feature
5
- %i.fa.fa-exclamation
6
- = link_to tag.name, tag_path(tag)
7
- = link_to '[+]', new_tag_path( :for_tag => tag.id )
8
- = link_to '[~]', edit_tag_path( tag )
9
- .inline= button_to '[x]', tag_path( tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
10
- (R #{tag.reports.length}) (G #{tag.galleries.length}) (V #{tag.videos.length})
11
-
12
- - if tag.children_tags.length > 0
13
- %ul.tags
14
- - tag.children_tags.map do |tt|
15
- = render 'ish_manager/tags/item', :tag => tt, :is_panel => false
16
-
@@ -1,8 +0,0 @@
1
-
2
- - if tags.length > 0
3
- .tags--list
4
- .inner
5
- .title
6
- %h3= t('tags.list')
7
- - tags.each do |tag|
8
- .item= link_to tag['name_'+@locale.to_s], tag_path(tag.slug)
@@ -1,5 +0,0 @@
1
-
2
- .list--simple
3
- %ul.block
4
- - tags.each do |tag|
5
- %li= link_to tag.name, tag_path(tag.slug)
@@ -1,9 +0,0 @@
1
- -#
2
- -# ish_manager / tags / _meta
3
- -#
4
-
5
- %h5.center
6
- Tag
7
- = tag.name
8
- = link_to image_edit, edit_tag_path( tag )
9
- .inline= button_to 'X', tag_path( tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
@@ -1,4 +0,0 @@
1
-
2
- %h3
3
- Edit Tag #{link_to @tag.name, tag_path(@tag)} (#{@tag.slug})
4
- = render 'form', :tag => @tag
@@ -1,22 +0,0 @@
1
-
2
- - content_for :title do
3
- = t('tags.list')
4
-
5
- = render 'ish_manager/sites/header', :site => @site if @site
6
-
7
- .row
8
- .small-12.columns
9
- .center
10
- %h1
11
- Tags (#{@tags.count}) #{link_to image_new, new_tag_path}
12
- - if @resource
13
- in #{@resource.class.name} #{link_to @resource.name, resource_path(@resource)}
14
-
15
- %ul.tags
16
- - @tags.each do |tag|
17
- = render 'item', :tag => tag
18
- - if @tags.blank?
19
- %li No Tags
20
-
21
-
22
-
@@ -1,3 +0,0 @@
1
-
2
- %h1 New Tag
3
- = render 'form', :tag => @tag
@@ -1,23 +0,0 @@
1
-
2
- -# ish_manager / tags / show
3
-
4
- - content_for :title do
5
- Tag #{@tag.name}
6
-
7
- .row
8
- .col.s12
9
- = render 'meta', tag: @tag
10
- .descr= @tag.descr # I don't wanna show this every time to everyone, they know what they are here for.
11
- -# = render 'ish_manager/features/index', :features => @tag.features[0, Tag.n_features], resource: @tag
12
-
13
- .row
14
- .col.s12
15
- = render 'ish_manager/reports/index', :reports => @tag.reports, :n_ads => 0
16
-
17
- .row
18
- .col.s12
19
- = render 'ish_manager/galleries/index_title', :galleries => @galleries, :n_thumbs => 4
20
-
21
- .row
22
- .col.s12
23
- = render 'ish_manager/videos/index_title', :videos => @videos
@@ -1,38 +0,0 @@
1
-
2
- .manager-cities--form
3
- = form_for @city, :html => { :multipart => true } do |f|
4
- .row
5
- .col.s6
6
- .field
7
- %label= t('cities.name')
8
- = f.text_field :name
9
- .field
10
- %label CityName
11
- = f.text_field :cityname
12
- .change-profile-pic
13
- %label Change profile pic
14
- = file_field_tag :photo
15
- = image_tag @city.profile_photo.photo.url(:thumb) rescue nil
16
- .field
17
- %label coords
18
- .row
19
- .col.s6
20
- = f.label :x
21
- = f.text_field :x
22
- .col.s6
23
- = f.label :y
24
- = f.text_field :y
25
- .field
26
- = f.label :deleted_at
27
- = f.text_field :deleted_at
28
- .field
29
- = f.check_box :is_active
30
- = f.label :is_active
31
- .col.s6
32
- .field
33
- = f.label :description
34
- = f.text_area :description, :class => [ :tinymce ]
35
-
36
- .col.s12
37
- .actions
38
- = f.submit
@@ -1,39 +0,0 @@
1
-
2
- %h2.text-center
3
- #{@city.name} #{link_to image_edit, edit_city_path(@city)}
4
- = link_to 'API', api_city_path(@city)
5
- -#%ul
6
- -# %li &lt;#{@city.x}, #{@city.y}&gt;
7
- -# %li Cityname: <em>#{@city.cityname}</em>
8
- -# - unless @city.profile_photo.blank?
9
- -# %li Thumb: #{image_tag @city.profile_photo.photo.url(:thumb)}
10
- -#
11
- -#%ul.menu
12
- -# %li
13
- -# = link_to image_new, new_city_feature_path( @city )
14
- -# Features (#{@city.features.length})
15
- -# %li
16
- -# = link_to image_new, new_city_newsitem_path( @city )
17
- -# Newsitems (#{@city.newsitems.length})
18
- -# %li
19
- -# = link_to image_new, new_city_report_path( @city )
20
- -# Reports (#{@city.reports.count})
21
- -# %li
22
- -# = link_to image_new, new_city_gallery_path( @city )
23
- -# Galleries (#{@city.galleries.count})
24
- -# %li
25
- -# = link_to image_new, new_city_video_path( @city )
26
- -# Videos (#{@city.videos.count})
27
- -# %li
28
- -# = link_to image_new, new_city_venue_path( @city )
29
- -# = link_to 'Venues', venues_path( :city_id => @city.id )
30
- -# (#{@city.venues.count})
31
- -# %li
32
- -# = link_to image_new, new_city_event_path( @city )
33
- -# = link_to 'Events', city_events_path( @city )
34
- -# (#{@city.events.count})
35
- -# %li
36
- -# = link_to image_new, new_city_tag_path( @city )
37
- -# = link_to 'Tags', city_tags_path( @city )
38
- -# (#{@city.tags.count})
39
- %hr
@@ -1,4 +0,0 @@
1
-
2
- %h1.center= link_to @city.name, city_path( @city )
3
- = render 'form', :url => city_path
4
-
@@ -1,4 +0,0 @@
1
-
2
- %h1 Edit Feature of city #{@city.name}
3
-
4
- = render 'manager/features/form', :url => city_feature_path(@city.id, @feature.id)
@@ -1,27 +0,0 @@
1
-
2
- .container
3
- .row
4
- .col.s12
5
- %h1
6
- Cities
7
- = link_to '[+]', new_city_path
8
-
9
- - @cities.each do |city|
10
- .col.s3
11
- .panel.panel-default
12
- .row
13
- .panel-heading
14
- = link_to city.name, city_path(city)
15
- = link_to '[~]', edit_city_path(city)
16
- .cities-meta= "R(#{city.reports.length}) G(#{city.galleries.length}) V(#{city.videos.length}) U(#{city.current_users.length})"
17
- .row
18
- %ul
19
- %li active? #{city.is_active}
20
- %li n venues: #{city.venues.count}
21
- .row
22
- - if city.profile_photo.blank?
23
- = image_missing
24
- %div{ :style => "width: 100px; height: 100px; background: #cecece;" }
25
- - else
26
- = image_tag city.profile_photo.photo.url(:thumb)
27
-
@@ -1,5 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1 New City
5
- = render 'form'
@@ -1,5 +0,0 @@
1
-
2
- %h2 New Feature for #{@city.name}
3
-
4
- = render 'manager/features/form', :url => create_city_feature_path(@city.id)
5
-
@@ -1,23 +0,0 @@
1
-
2
- %h1 Newsitem for #{@city.name}
3
-
4
- = form_for @newsitem, :url => manager_city_newsitems_path(@city.cityname) do |f|
5
-
6
- .field
7
- %label descr
8
- = f.text_area :descr, :class => 'tinymce tiny_mce'
9
-
10
- .field
11
- %label Report
12
- = select :newsitem, :report_id, @list_reports
13
-
14
- .field
15
- %label Gallery
16
- = select :newsitem, :gallery_id, @list_galleries
17
-
18
- .field
19
- %label User
20
- = select :newsitem, :username, @list_users
21
-
22
-
23
- = f.submit
@@ -1,63 +0,0 @@
1
-
2
- -#
3
- -# ish_manager / cities / show
4
- -#
5
-
6
- = render 'header', :city => @city
7
- .row
8
- .col.s6
9
- %h5
10
- Venues (#{@venues.length})
11
- = link_to image_new, new_venue_path(city_id: @city.id)
12
- = render 'ish_manager/venues/search', :city => @city
13
- = render 'ish_manager/venues/index', :venues => @venues
14
- .col.s6
15
- .col.s3
16
- %a{href: '#newsitems'}
17
- NewsItems (#{@city.newsitems.length})
18
- .col.s3
19
- %a{href: '#reports'}
20
- Reports (#{@city.reports.length})
21
- .col.s3
22
- %a{href: '#galleries'}
23
- Galleries (#{@city.galleries.length})
24
- .col.s3
25
- %a{href: '#videos'}
26
- Videos (#{@city.videos.length})
27
- .row
28
- .col.s12#newsitems
29
- = render 'ish_manager/newsitems/index', :newsitems => @newsitems, :city => @city
30
- .row
31
- .col.s12#reports
32
- = render 'ish_manager/reports/index', :reports => @reports
33
- .row
34
- .col.s12#galleries
35
- %h5
36
- Galleries (#{@city.galleries.length})
37
- = link_to image_new, new_gallery_path(city_id: @city.id)
38
- = render 'ish_manager/galleries/index', :galleries => @galleries
39
- .row
40
- .col.s12#videos
41
- = render 'ish_manager/videos/index', :videos => @videos
42
-
43
-
44
-
45
- -#= render 'ish_manager/features/index', :features => @city.features, :city => @city
46
- -#
47
- -#.row
48
- -# .col.s6= render 'ish_manager/reports/index', :reports => @city.reports
49
- -# .col.s6
50
- -# %h5 Galleries
51
- -# = render 'ish_manager/galleries/index', :galleries => @city.galleries
52
- -#.row
53
- -# .col.s6
54
- -# %h5
55
- -# Venues (#{@city.venues.length})
56
- -# = link_to image_new, new_venue_path(city_id: @city.id)
57
- -# = render 'ish_manager/venues/index', :venues => @city.venues
58
- -#.row
59
- -# .col.s6= render 'ish_manager/videos/index', :videos => @city.videos
60
- -# .col.s6
61
- -# = render 'ish_manager/users/index', :users => @city.current_users
62
- -# = render 'ish_manager/events/index', :events => @city.events
63
- -# = render 'ish_manager/venues/index', :venues => @city.venues