ish_manager 0.1.8.317 → 0.1.8.320
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/assets/javascripts/ish_manager/application.js +2 -0
- data/app/assets/stylesheets/ish_manager/application.scss +25 -0
- data/app/assets/stylesheets/ish_manager/email_templates.scss +4 -2
- data/app/assets/stylesheets/ish_manager/maps.scss +14 -13
- data/app/controllers/ish_manager/application_controller.rb +0 -7
- data/app/controllers/ish_manager/email_contexts_controller.rb +2 -1
- data/app/controllers/ish_manager/email_templates_controller.rb +9 -3
- data/app/controllers/ish_manager/galleries_controller.rb +6 -4
- data/app/controllers/ish_manager/reports_controller.rb +0 -12
- data/app/controllers/ish_manager/videos_controller.rb +1 -10
- data/app/models/ish_manager/ability.rb +1 -12
- data/app/views/ish_manager/application/_form_nonpublic.haml +12 -14
- data/app/views/ish_manager/application/_main_footer.haml +3 -2
- data/app/views/ish_manager/application/_main_header_admin.haml +31 -23
- data/app/views/ish_manager/application/_main_header_guy.haml +22 -12
- data/app/views/ish_manager/application/_meta.haml +0 -5
- data/app/views/ish_manager/email_campaigns/index.haml +2 -0
- data/app/views/ish_manager/email_contexts/index.haml +2 -4
- data/app/views/ish_manager/email_contexts/show.haml +3 -1
- data/app/views/ish_manager/email_templates/_index.haml +15 -0
- data/app/views/ish_manager/email_templates/_marketing_ror_1.html +751 -0
- data/app/views/ish_manager/email_templates/_social.html.erb +3 -3
- data/app/views/ish_manager/email_templates/iframe_src.haml +4 -0
- data/app/views/ish_manager/email_templates/index.haml +1 -17
- data/app/views/ish_manager/email_templates/show.haml +5 -2
- data/app/views/ish_manager/galleries/_form.haml +0 -11
- data/app/views/ish_manager/galleries/_index.haml +2 -3
- data/app/views/ish_manager/maps/_form.haml +92 -91
- data/app/views/ish_manager/maps/_map_meta_row.haml +3 -1
- data/app/views/ish_manager/maps/map_editor.haml +1 -1
- data/app/views/ish_manager/maps/show.haml +14 -9
- data/app/views/ish_manager/markers/_header.haml +3 -3
- data/app/views/ish_manager/markers/_index.haml +15 -16
- data/app/views/ish_manager/newsitems/_index.haml +1 -0
- data/app/views/ish_manager/reports/_form.haml +0 -6
- data/app/views/ish_manager/videos/_form.haml +0 -3
- data/config/routes.rb +1 -1
- metadata +5 -3
- data/app/views/ish_manager/email_contexts/iframe_src.haml +0 -4
@@ -45,7 +45,7 @@
|
|
45
45
|
class="mcnFollowIconContent">
|
46
46
|
<a href="mailto:victor@piousbox.com" target="_blank"><img
|
47
47
|
src="https://cdn-images.mailchimp.com/icons/social-block-v2/color-forwardtofriend-48.png"
|
48
|
-
alt="
|
48
|
+
alt="Email" style="display:block;" height="24" width="24"
|
49
49
|
class=""></a>
|
50
50
|
</td>
|
51
51
|
|
@@ -90,7 +90,7 @@
|
|
90
90
|
class="mcnFollowIconContent">
|
91
91
|
<a href="https://github.com/piousbox" target="_blank"><img
|
92
92
|
src="https://cdn-images.mailchimp.com/icons/social-block-v2/color-github-48.png"
|
93
|
-
alt="
|
93
|
+
alt="Github" style="display:block;" height="24" width="24"
|
94
94
|
class=""></a>
|
95
95
|
</td>
|
96
96
|
|
@@ -136,7 +136,7 @@
|
|
136
136
|
<a href="https://www.instagram.com/piousbox/"
|
137
137
|
target="_blank"><img
|
138
138
|
src="https://cdn-images.mailchimp.com/icons/social-block-v2/color-instagram-48.png"
|
139
|
-
alt="
|
139
|
+
alt="Instagram" style="display:block;" height="24"
|
140
140
|
width="24" class=""></a>
|
141
141
|
</td>
|
142
142
|
|
@@ -1,18 +1,2 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
.email-templates-index
|
4
|
-
%h3 Email Templates
|
5
|
-
= render 'ish_manager/email_templates/form', email_template: ::Ish::EmailTemplate.new
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
%ul
|
10
|
-
- @templates.each do |tmpl|
|
11
|
-
%li
|
12
|
-
= link_to 'Use', new_email_context_path({ email_template_id: tmpl.id })
|
13
|
-
= link_to email_template_path({ id: tmpl }), target: :_blank, class: 'external' do
|
14
|
-
View
|
15
|
-
%i.fa.fa-external-link
|
16
|
-
= tmpl.slug
|
17
|
-
= button_to '[x]', email_template_path({ id: tmpl }), method: :delete, :data => { :confirm => 'Are you sure?' }, form_class: 'inline'
|
18
|
-
|
2
|
+
= render 'index'
|
@@ -1,4 +1,7 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
= render 'index'
|
3
|
+
%hr
|
4
|
+
.email-templates-show
|
5
|
+
%h4.center= @email_template.slug
|
3
6
|
|
4
|
-
|
7
|
+
%iframe{ src: email_template_iframe_path(@email_template.slug), width: '100%', height: '100%' }
|
@@ -13,17 +13,6 @@
|
|
13
13
|
.col.s6
|
14
14
|
= f.label :slug
|
15
15
|
= f.text_field :slug
|
16
|
-
|
17
|
-
.row
|
18
|
-
.col.s4
|
19
|
-
= f.label :site
|
20
|
-
= select :gallery, :site_id, @sites_list
|
21
|
-
.col.s4
|
22
|
-
= f.label :city
|
23
|
-
= select :gallery, :city_id, @cities_list
|
24
|
-
.col.s4
|
25
|
-
= f.label :venue
|
26
|
-
= select :gallery, :venue_id, @venues_list
|
27
16
|
.row
|
28
17
|
.col.s4
|
29
18
|
= f.label :tags
|
@@ -5,96 +5,97 @@
|
|
5
5
|
|
6
6
|
- url = %w| new create |.include?( params[:action] ) ? maps_path : map_path(@map.id)
|
7
7
|
|
8
|
+
.maps--form
|
9
|
+
%hr
|
10
|
+
= form_for @map, :html => { :multipart => true, class: '--form maps--form' }, url: url do |f|
|
11
|
+
.actions
|
12
|
+
= f.submit 'Save'
|
8
13
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
.
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
= file_field_tag :image
|
49
|
-
= image_tag @map.image.image.url(:thumb) rescue nil
|
50
|
-
.col.s4
|
51
|
-
.field
|
52
|
-
= f.label :creator_profile
|
53
|
-
= f.select :creator_profile, options_for_select(@user_profiles_list, selected: @current_user.profile.id)
|
54
|
-
|
55
|
-
= render 'ish_manager/application/form_nonpublic', f: f, model: @map
|
56
|
-
|
57
|
-
|
58
|
-
.row
|
59
|
-
= f.label :tags
|
60
|
-
= f.select :tag_ids, @tags_list, {}, { multiple: true }
|
61
|
-
|
62
|
-
.field
|
63
|
-
= f.label :description
|
64
|
-
= f.text_area :description, class: 'tinymce'
|
65
|
-
|
66
|
-
.row
|
67
|
-
.col.s6
|
68
|
-
= f.label "Labels"
|
69
|
-
= f.text_area :labels, class: 'large'
|
70
|
-
%pre.small
|
71
|
-
description
|
72
|
-
map
|
73
|
-
markers
|
74
|
-
newsitems
|
75
|
-
.col.s6
|
76
|
-
= f.label "Config"
|
77
|
-
= f.text_area :config, class: 'large'
|
78
|
-
%pre.small
|
79
|
-
:plain
|
80
|
-
description.collapsible: bool
|
81
|
-
map_panel_type: "Equirectangular" | "Panoramic" |
|
82
|
-
"MapPanel" | "MapPanelNoZoom" |
|
83
|
-
"ThreePanelV1" | "ThreePanelV1Fullscreen" |
|
84
|
-
"GoogleMaps" | "TabiversePlanet"
|
85
|
-
.row
|
86
|
-
.col.s6
|
87
|
-
.google-maps.row
|
88
|
-
.col.s4
|
14
|
+
- if @map.errors.any?
|
15
|
+
#error_explanation
|
16
|
+
%h2= "#{pluralize(@map.errors.count, "error")} prohibited this map from being saved:"
|
17
|
+
%ul
|
18
|
+
- @map.errors.full_messages.each do |message|
|
19
|
+
%li= message
|
20
|
+
|
21
|
+
.row
|
22
|
+
.col-sm-4
|
23
|
+
.field
|
24
|
+
= f.label :name
|
25
|
+
= f.text_field :name
|
26
|
+
.field
|
27
|
+
= f.label :slug
|
28
|
+
= f.text_field :slug
|
29
|
+
.field
|
30
|
+
= f.label :parent_slug
|
31
|
+
= f.text_field :parent_slug
|
32
|
+
.field
|
33
|
+
= f.label :map_slug, "Map slug (if any)"
|
34
|
+
= f.text_field :map_slug
|
35
|
+
|
36
|
+
.col-sm-4
|
37
|
+
.field
|
38
|
+
= f.label :ordering_type
|
39
|
+
= f.select :ordering_type, options_for_select(::Gameui::Map::ORDERING_TYPES, selected: @map.ordering_type)
|
40
|
+
.field
|
41
|
+
= f.label :rated
|
42
|
+
= f.select :rated, options_for_select(Location::RATED_OPTIONS, selected: @map.rated)
|
43
|
+
.field
|
44
|
+
= f.label :creator_profile
|
45
|
+
= f.select :creator_profile, options_for_select(@user_profiles_list, selected: @current_user.profile.id)
|
46
|
+
|
47
|
+
.col-sm-4
|
48
|
+
.field
|
49
|
+
= f.label :premium_tier
|
50
|
+
= f.number_field :premium_tier
|
51
|
+
|
52
|
+
.google-maps
|
89
53
|
= f.label "x, y"
|
90
|
-
|
91
|
-
= f.text_field :
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
54
|
+
= f.text_field :x, style: 'width: 20px;'
|
55
|
+
= f.text_field :y, style: 'width: 20px;'
|
56
|
+
|
57
|
+
.field
|
58
|
+
= f.label :newsitems_page_size
|
59
|
+
= f.number_field :newsitems_page_size
|
60
|
+
|
61
|
+
.col-sm-4
|
62
|
+
.field
|
63
|
+
= f.label :image
|
64
|
+
= file_field_tag :image
|
65
|
+
= image_tag @map.image.image.url(:thumb) rescue nil
|
66
|
+
|
67
|
+
.col-sm-4
|
68
|
+
= f.label :tags
|
69
|
+
= f.select :tag_ids, @tags_list, {}, { multiple: true }
|
70
|
+
|
71
|
+
.col-sm-12
|
72
|
+
= render 'ish_manager/application/form_nonpublic', f: f, model: @map
|
73
|
+
|
74
|
+
|
75
|
+
.field
|
76
|
+
= f.label :description
|
77
|
+
= f.text_area :description, class: 'tinymce'
|
78
|
+
|
79
|
+
.row
|
80
|
+
.col.s6
|
81
|
+
= f.label "Labels"
|
82
|
+
= f.text_area :labels, class: 'large'
|
83
|
+
%pre.small
|
84
|
+
description
|
85
|
+
map
|
86
|
+
markers
|
87
|
+
newsitems
|
88
|
+
.col.s6
|
89
|
+
= f.label "Config"
|
90
|
+
= f.text_area :config, class: 'large'
|
91
|
+
%pre.small
|
92
|
+
:plain
|
93
|
+
description.collapsible: bool
|
94
|
+
map_panel_type: "Equirectangular" | "Panoramic" |
|
95
|
+
"MapPanel" | "MapPanelNoZoom" |
|
96
|
+
"ThreePanelV1" | "ThreePanelV1Fullscreen" |
|
97
|
+
"GoogleMaps" | "TabiversePlanet"
|
98
|
+
|
99
|
+
|
100
|
+
.actions
|
101
|
+
= f.submit 'Save'
|
@@ -7,5 +7,7 @@
|
|
7
7
|
.a= button_to '+marker', new_map_marker_path(map), method: :get
|
8
8
|
.a= button_to '+newsitem', new_map_newsitem_path(map), method: :get
|
9
9
|
.a= link_to '[api]', api_map_path(map), target: :_blank
|
10
|
+
.a= button_to 'Export Subtree', export_map_path(map.id, format: :json)
|
10
11
|
.a= button_to 'x', map_path(map), method: :delete, data: { confirm: 'Are you sure?' }
|
11
|
-
|
12
|
+
|
13
|
+
.a slug: #{map.slug}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
.map-editor
|
7
7
|
= image_tag @map.image.image.url(:original)
|
8
8
|
- @markers.each do |m|
|
9
|
-
.marker{ data: { '
|
9
|
+
.marker{ data: { 'center-offset-x': m.centerOffsetX, 'center-offset-y': m.centerOffsetY }, style: "top: #{m.y-m.centerOffsetY}px; left: #{m.x-m.centerOffsetX}px;" }
|
10
10
|
= image_tag m.image ? m.image.image.url(:original) : image_missing
|
11
11
|
= image_tag('icons/10x10_red-cross.png', class: 'red-cross', style: "top: #{m.centerOffsetY-10}px; left: #{m.centerOffsetX-10}px;" )
|
12
12
|
|
@@ -4,10 +4,12 @@
|
|
4
4
|
|
5
5
|
.maps-show
|
6
6
|
= render 'map_meta_row', map: @map
|
7
|
-
%
|
7
|
+
%hr
|
8
|
+
|
9
|
+
.collapse-expand#mapDescription Description
|
8
10
|
.descr= raw @map.description
|
9
11
|
|
10
|
-
|
12
|
+
.collapse-expand#mapPanel
|
11
13
|
The Map (#{@map.w}x#{@map.h})
|
12
14
|
= link_to 'Map Editor', location_map_editor_path(@map.id)
|
13
15
|
.the-map
|
@@ -20,22 +22,25 @@
|
|
20
22
|
- else
|
21
23
|
= image_missing_tag
|
22
24
|
|
23
|
-
|
25
|
+
.collapse-expand#markersIndex
|
26
|
+
= render 'ish_manager/markers/header', markers: @markers, map: @map
|
24
27
|
= render 'ish_manager/markers/index', markers: @markers, map: @map
|
25
28
|
|
26
|
-
|
29
|
+
.collapse-expand#newsitemsIndex
|
30
|
+
= render 'ish_manager/newsitems/header', newsitems: @map.newsitems
|
27
31
|
= render 'ish_manager/newsitems/index', newsitems: @map.newsitems
|
28
32
|
|
29
|
-
|
33
|
+
.collapse-expand#mapChildrenMaps
|
34
|
+
Child Maps lvl-1 (#{@maps.count})
|
30
35
|
.maps-list
|
31
36
|
- @maps.each do |m|
|
32
37
|
.item
|
33
38
|
= link_to m.slug, edit_map_path(m.id)
|
34
39
|
|
35
|
-
|
36
|
-
= render '
|
40
|
+
.collapse-expand#mapChildren All Child Maps
|
41
|
+
= render 'index_item', map: @map
|
37
42
|
|
38
|
-
|
43
|
+
.collapse-expand#mapEdit Edit this map
|
44
|
+
= render 'form'
|
39
45
|
|
40
|
-
= render 'index_item', map: @map
|
41
46
|
|
@@ -1,18 +1,17 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
|
3
|
+
.markers--index.row
|
3
4
|
- markers.each do |marker|
|
4
|
-
.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
.
|
15
|
-
|
16
|
-
|
17
|
-
%ul.bullets
|
18
|
-
%li <b>item_type:</b> #{marker.item_type}
|
5
|
+
.col-sm-2
|
6
|
+
.Card
|
7
|
+
- if marker.title_image
|
8
|
+
= image_tag marker.title_image.image.url(:thumb)
|
9
|
+
- else
|
10
|
+
= image_missing_tag
|
11
|
+
.flex-row
|
12
|
+
.a= marker.destination&.name
|
13
|
+
.a= button_to '~', edit_marker_path(marker), method: :get
|
14
|
+
.a= button_to 'x', marker_path(marker), method: :delete, data: { confirm: 'Are you sure?' }
|
15
|
+
.flex-row
|
16
|
+
.a= link_to '[api]', api_marker_path(marker)
|
17
|
+
.a= link_to '[this map]', edit_map_path(marker.destination) if marker.destination
|
@@ -43,9 +43,6 @@
|
|
43
43
|
|
44
44
|
.row
|
45
45
|
.col.s4
|
46
|
-
.field
|
47
|
-
%label City
|
48
|
-
= select :report, :city_id, @cities_list, :class=>"btn"
|
49
46
|
.field
|
50
47
|
= f.label :Coordinates
|
51
48
|
.panel.panel-default
|
@@ -70,9 +67,6 @@
|
|
70
67
|
unused
|
71
68
|
|
72
69
|
.row
|
73
|
-
.col.s6
|
74
|
-
= f.label :site
|
75
|
-
= f.select :site_id, options_for_select(@sites_list, :selected => report.site_id || params[:site_id] )
|
76
70
|
.col.s6
|
77
71
|
= f.label :tags
|
78
72
|
= f.select :tag_ids, @tags_list, {}, { multiple: true }
|
data/config/routes.rb
CHANGED
@@ -73,7 +73,7 @@ IshManager::Engine.routes.draw do
|
|
73
73
|
post 'email_contexts/send/:id', to: 'email_contexts#do_send', as: :email_context_send
|
74
74
|
resources :email_contexts
|
75
75
|
|
76
|
-
get 'email_templates/iframe_src/:
|
76
|
+
get 'email_templates/iframe_src/:id', to: 'email_templates#iframe_src', as: :email_template_iframe
|
77
77
|
get 'email_templates/show/:id', to: 'email_templates#show', as: :email_template
|
78
78
|
delete 'email_templates/show/:id', to: 'email_templates#destroy'
|
79
79
|
resources :email_templates
|
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.320
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -313,19 +313,21 @@ files:
|
|
313
313
|
- app/views/ish_manager/application/home.haml
|
314
314
|
- app/views/ish_manager/application_mailer/shared_galleries.html.erb
|
315
315
|
- app/views/ish_manager/application_mailer/welcome.html.erb
|
316
|
+
- app/views/ish_manager/email_campaigns/index.haml
|
316
317
|
- app/views/ish_manager/email_contexts/_form.haml
|
317
318
|
- app/views/ish_manager/email_contexts/edit.haml
|
318
|
-
- app/views/ish_manager/email_contexts/iframe_src.haml
|
319
319
|
- app/views/ish_manager/email_contexts/index.haml
|
320
320
|
- app/views/ish_manager/email_contexts/new.haml
|
321
321
|
- app/views/ish_manager/email_contexts/show.haml
|
322
322
|
- app/views/ish_manager/email_templates/_form.haml
|
323
|
+
- app/views/ish_manager/email_templates/_index.haml
|
323
324
|
- app/views/ish_manager/email_templates/_marketing_ror_1.html
|
324
325
|
- app/views/ish_manager/email_templates/_marketing_ror_2.html
|
325
326
|
- app/views/ish_manager/email_templates/_marketing_wordpress_1.html
|
326
327
|
- app/views/ish_manager/email_templates/_marketing_wordpress_2.html
|
327
328
|
- app/views/ish_manager/email_templates/_piousbox_roundborders.html.erb
|
328
329
|
- app/views/ish_manager/email_templates/_social.html.erb
|
330
|
+
- app/views/ish_manager/email_templates/iframe_src.haml
|
329
331
|
- app/views/ish_manager/email_templates/index.haml
|
330
332
|
- app/views/ish_manager/email_templates/show.haml
|
331
333
|
- app/views/ish_manager/features/_form.haml
|