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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac66a26a9fff0be8e482db83b11f2722b4a1f6a7f231883ce400ee6e8d4c0086
|
4
|
+
data.tar.gz: 1a0dab969757ea87cb5d17529190296124a9e97f74815a63586fcc404cad81c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb00435a7c902e497a334a71dc26a4ece34e127e6be2a3f9f2b7d9cbd90fd2b54a5d117f50e8e458f82d3496f9e00b36ebb8f519bc697f3a749f578aca65e50
|
7
|
+
data.tar.gz: 2617d260f1498668323bf8b5a36fca1a9fa3e7cb2ca0ff0ccd5c75adbbe8c720e48c2720d967ef0a55e601b3a2806e9bf2a9351fe14e4023664e01a80d241ca2
|
@@ -18,6 +18,12 @@
|
|
18
18
|
*= require ish_manager/pagination
|
19
19
|
**/
|
20
20
|
|
21
|
+
a[target='_blank'] {
|
22
|
+
&::after {
|
23
|
+
content: ' ^]' !important;
|
24
|
+
// font-size: .5em;
|
25
|
+
}
|
26
|
+
}
|
21
27
|
|
22
28
|
body {
|
23
29
|
background: #dedede;
|
@@ -27,6 +33,12 @@ hr {
|
|
27
33
|
background: red;
|
28
34
|
height: 1px !important;
|
29
35
|
}
|
36
|
+
|
37
|
+
input[type='file'] {
|
38
|
+
overflow: auto;
|
39
|
+
max-width: 100%;
|
40
|
+
}
|
41
|
+
|
30
42
|
pre {
|
31
43
|
background: #e0e0e0;
|
32
44
|
padding: 1em;
|
@@ -105,8 +117,13 @@ ul:not(.browser-default).bullets, {
|
|
105
117
|
text-align: center;
|
106
118
|
}
|
107
119
|
|
120
|
+
|
108
121
|
.collapse-expand {
|
109
122
|
cursor: pointer;
|
123
|
+
|
124
|
+
> * {
|
125
|
+
display: inline-block;
|
126
|
+
}
|
110
127
|
}
|
111
128
|
|
112
129
|
/* D */
|
@@ -296,6 +313,14 @@ textarea.large {
|
|
296
313
|
|
297
314
|
/* W */
|
298
315
|
|
316
|
+
.WBordered {
|
317
|
+
border: 1px solid gray;
|
318
|
+
border-radius: 4px;
|
319
|
+
padding: 1em;
|
320
|
+
}
|
321
|
+
|
322
|
+
/* Y */
|
323
|
+
|
299
324
|
.youtube_img {
|
300
325
|
width: 100px;
|
301
326
|
}
|
@@ -7,10 +7,11 @@
|
|
7
7
|
}
|
8
8
|
}
|
9
9
|
|
10
|
-
.email-contexts-show
|
10
|
+
.email-contexts-show,
|
11
|
+
.email-templates-show {
|
11
12
|
|
12
13
|
iframe {
|
13
|
-
min-height:
|
14
|
+
min-height: 80vh;
|
14
15
|
}
|
15
16
|
|
16
17
|
}
|
@@ -32,6 +33,7 @@
|
|
32
33
|
|
33
34
|
}
|
34
35
|
|
36
|
+
|
35
37
|
.email-templates--form {
|
36
38
|
border: 1px solid red;
|
37
39
|
padding: 1em;
|
@@ -2,22 +2,23 @@
|
|
2
2
|
* Alphabetized : )
|
3
3
|
**/
|
4
4
|
|
5
|
+
.maps--map-meta-row {
|
6
|
+
.flat-row {
|
7
|
+
display: flex;
|
8
|
+
flex-direction: row;
|
9
|
+
justify-content: flex-start;
|
10
|
+
align-content: flex-start;
|
5
11
|
|
6
|
-
.
|
7
|
-
|
8
|
-
flex-direction: row;
|
9
|
-
justify-content: flex-start;
|
10
|
-
align-content: flex-start;
|
11
|
-
|
12
|
-
height: 2.4em;
|
13
|
-
line-height: 3em;
|
12
|
+
// height: 2.4em;
|
13
|
+
line-height: 3em;
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
width: 100%;
|
16
|
+
margin: 1em 0 0 0;
|
17
|
+
padding: 0;
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
> * {
|
20
|
+
padding-right: 1em;
|
21
|
+
}
|
21
22
|
}
|
22
23
|
}
|
23
24
|
|
@@ -40,15 +40,12 @@ module IshManager
|
|
40
40
|
|
41
41
|
def set_lists
|
42
42
|
# alphabetized! : )
|
43
|
-
@cities_list = City.list
|
44
43
|
@galleries_list = Gallery.all.list
|
45
44
|
@locations_list = ::Gameui::Map.list
|
46
45
|
@maps_list = ::Gameui::Map.list # @TODO: missing nonpublic!
|
47
46
|
@reports_list = Report.all.list
|
48
|
-
@sites_list = Site.all.list
|
49
47
|
@tags_list = Tag.list
|
50
48
|
@user_profiles_list = Ish::UserProfile.list
|
51
|
-
@venues_list = Venue.all.list
|
52
49
|
@videos_list = Video.all.list
|
53
50
|
end
|
54
51
|
|
@@ -83,12 +80,8 @@ module IshManager
|
|
83
80
|
|
84
81
|
def resource_path resource
|
85
82
|
case resource.class.name
|
86
|
-
when 'City'
|
87
|
-
city_path( resource.id )
|
88
83
|
when 'Event'
|
89
84
|
event_path( resource.id )
|
90
|
-
when 'Venue'
|
91
|
-
venue_path( resource.id )
|
92
85
|
end
|
93
86
|
end
|
94
87
|
|
@@ -32,7 +32,8 @@ class ::IshManager::EmailContextsController < ::IshManager::ApplicationControlle
|
|
32
32
|
def iframe_src
|
33
33
|
authorize! :iframe_src, Ish::EmailContext
|
34
34
|
@email_ctx = EmailContext.find params[:id]
|
35
|
-
|
35
|
+
@email_template = @email_ctx.email_template
|
36
|
+
render 'ish_manager/email_templates/iframe_src', layout: false
|
36
37
|
end
|
37
38
|
|
38
39
|
def index
|
@@ -25,6 +25,10 @@ class ::IshManager::EmailTemplatesController < ::IshManager::ApplicationControll
|
|
25
25
|
|
26
26
|
def iframe_src
|
27
27
|
authorize! :iframe_src, Ish::EmailTemplate
|
28
|
+
@email_template = Ish::EmailTemplate.where({ id: params[:id] }).first ||
|
29
|
+
Ish::EmailTemplate.find_by({ slug: params[:id] })
|
30
|
+
@email_ctx = EmailContext.new({ body: Ish::LoremIpsum.html })
|
31
|
+
render layout: false
|
28
32
|
end
|
29
33
|
|
30
34
|
def index
|
@@ -34,9 +38,11 @@ class ::IshManager::EmailTemplatesController < ::IshManager::ApplicationControll
|
|
34
38
|
|
35
39
|
def show
|
36
40
|
authorize! :show, Ish::EmailTemplate
|
37
|
-
@
|
38
|
-
|
39
|
-
|
41
|
+
@templates = Ish::EmailTemplate.all.page( params[:templates_page] )
|
42
|
+
|
43
|
+
@email_template = Ish::EmailTemplate.where({ id: params[:id] }).first ||
|
44
|
+
Ish::EmailTemplate.find_by({ slug: params[:id] })
|
45
|
+
@email_ctx = EmailContext.new({ body: Ish::LoremIpsum.html })
|
40
46
|
end
|
41
47
|
|
42
48
|
|
@@ -38,15 +38,17 @@ class IshManager::GalleriesController < IshManager::ApplicationController
|
|
38
38
|
|
39
39
|
def index
|
40
40
|
authorize! :index, Gallery
|
41
|
-
@galleries = Gallery.unscoped.where(
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
@galleries = Gallery.unscoped.where( ## This must be so for role `guy`. _vp_ 2022-10-03
|
42
|
+
:is_done.in => [false, nil],
|
43
|
+
:is_trash.in => [false, nil],
|
44
|
+
:user_profile => current_user.profile
|
45
45
|
).order_by( :created_at => :desc )
|
46
|
+
|
46
47
|
if params[:q]
|
47
48
|
@galleries = @galleries.where({ :name => /#{params[:q]}/i })
|
48
49
|
# @galleries.selector.delete('is_done')
|
49
50
|
end
|
51
|
+
|
50
52
|
@galleries = @galleries.page( params[:galleries_page] ).per( 10 )
|
51
53
|
render params[:render_type]
|
52
54
|
end
|
@@ -32,8 +32,6 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
32
32
|
format.html do
|
33
33
|
flash[:alert] = @report.errors.full_messages
|
34
34
|
@tags_list = Tag.all.list
|
35
|
-
@sites_list = Site.all.list
|
36
|
-
@cities_list = City.all.list
|
37
35
|
|
38
36
|
render :action => "new"
|
39
37
|
end
|
@@ -60,13 +58,6 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
60
58
|
@reports = Report.unscoped.order_by( :created_at => :desc
|
61
59
|
).where( :is_trash => false, :user_profile => current_user.profile
|
62
60
|
).page( params[:reports_page] ).per( Report::PER_PAGE )
|
63
|
-
if false === params[:site]
|
64
|
-
@reports = @reports.where( :site_id => nil )
|
65
|
-
end
|
66
|
-
if params[:site_id]
|
67
|
-
@site = Site.find params[:site_id]
|
68
|
-
@reports = @reports.where( :site_id => params[:site_id] )
|
69
|
-
end
|
70
61
|
if params[:q]
|
71
62
|
@reports = @reports.or({ slug: /#{params[:q]}/i }, { name: /#{params[:q]}}/i }) # @TODO: why can't I have space in search term?
|
72
63
|
if @reports.length == 1
|
@@ -80,9 +71,6 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
80
71
|
@report = Report.new
|
81
72
|
authorize! :new, @report
|
82
73
|
@tags_list = Tag.all.where( :is_public => true ).list
|
83
|
-
@sites_list = Site.all.list
|
84
|
-
@cities_list = City.list
|
85
|
-
@venues_list = Venue.all.list
|
86
74
|
|
87
75
|
respond_to do |format|
|
88
76
|
format.html do
|
@@ -7,7 +7,7 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
7
7
|
|
8
8
|
def create
|
9
9
|
@video = Video.new params[:video].permit(%i| name descr is_public is_trash is_feature x y lang youtube_id
|
10
|
-
tags
|
10
|
+
tags site user_profile premium_tier premium_purchases thumb video |)
|
11
11
|
@video.user_profile = current_user.profile
|
12
12
|
if !params[:video][:site_id].blank?
|
13
13
|
@video.site = Site.find params[:video][:site_id]
|
@@ -26,7 +26,6 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
26
26
|
else
|
27
27
|
flash[:alert] = 'No luck'
|
28
28
|
@tags_list = Tag.list
|
29
|
-
@cities_list = City.list
|
30
29
|
render :action => 'new'
|
31
30
|
end
|
32
31
|
end
|
@@ -35,7 +34,6 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
35
34
|
@video = Video.unscoped.find params[:id]
|
36
35
|
authorize! :destroy, @video
|
37
36
|
flag = @video.delete
|
38
|
-
@video.city.touch if @video.city
|
39
37
|
@video.site.touch if @video.site
|
40
38
|
@video.tags.map &:touch
|
41
39
|
if flag
|
@@ -52,18 +50,12 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
52
50
|
authorize! :edit, @video
|
53
51
|
|
54
52
|
@tags_list = Tag.unscoped.or( { :is_public => true }, { :user_id => current_user.id } ).list
|
55
|
-
@cities_list = City.list
|
56
53
|
end
|
57
54
|
|
58
55
|
def index
|
59
56
|
authorize! :index, Video.new
|
60
57
|
@videos = Video.unscoped.where( is_trash: false, :user_profile => current_user.profile ).order_by( :created_at => :desc )
|
61
58
|
|
62
|
-
if params[:city_id]
|
63
|
-
city = City.find params[:city_id]
|
64
|
-
@videos = @videos.where( :city => city )
|
65
|
-
end
|
66
|
-
|
67
59
|
if params[:tag_id]
|
68
60
|
tag = Tag.find params[:tag_id]
|
69
61
|
@videos = @videos.where( :tag => tag )
|
@@ -108,7 +100,6 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
108
100
|
authorize! :new, @video
|
109
101
|
|
110
102
|
@tags_list = Tag.unscoped.or( { :is_public => true }, { :user_id => current_user.id } ).list
|
111
|
-
@cities_list = City.list
|
112
103
|
end
|
113
104
|
|
114
105
|
def update
|
@@ -23,10 +23,6 @@ class IshManager::Ability
|
|
23
23
|
#
|
24
24
|
if user.profile && [ :admin ].include?( user.profile.role_name )
|
25
25
|
|
26
|
-
can [ :create_newsitem, :show, :new_feature, :create_feature,
|
27
|
-
:index, :new, :create, :edit, :update ], City
|
28
|
-
|
29
|
-
can [ :new ], ::Feature
|
30
26
|
can [ :friends_index, :friends_new ], ::Ish::UserProfile
|
31
27
|
|
32
28
|
can [ :index, :new, :create, :create_photo ], ::Gallery
|
@@ -37,7 +33,7 @@ class IshManager::Ability
|
|
37
33
|
:new_marker, :edit_marker, :create_marker, :update_marker,
|
38
34
|
], Gameui::Map
|
39
35
|
|
40
|
-
can [ :
|
36
|
+
can [ :home, :sites_index ], ::Manager
|
41
37
|
|
42
38
|
can [ :new ], Newsitem
|
43
39
|
|
@@ -46,9 +42,6 @@ class IshManager::Ability
|
|
46
42
|
!g.is_trash && ( g.is_public || g.user_profile == user.profile )
|
47
43
|
end
|
48
44
|
|
49
|
-
can [ :show, :edit, :update, :create_newsitem, :new_feature, :create_feature, :newsitems_index ], ::Site do |site|
|
50
|
-
!site.is_private && !site.is_trash
|
51
|
-
end
|
52
45
|
# can [ :manage ], ::Warbler::StockWatch
|
53
46
|
|
54
47
|
can [ :index, :new, :create ], ::Tag
|
@@ -58,16 +51,12 @@ class IshManager::Ability
|
|
58
51
|
!v.is_trash && ( v.is_public || v.user_profile == user.profile )
|
59
52
|
end
|
60
53
|
|
61
|
-
can [ :index, :add, :create, :edit, :update, :show ], Venue
|
62
|
-
|
63
54
|
end
|
64
55
|
|
65
56
|
#
|
66
57
|
# role manager
|
67
58
|
#
|
68
59
|
if user.profile && :manager == user.profile.role_name
|
69
|
-
can [ :create_newsitem, :show, :new_feature, :create_feature,
|
70
|
-
:index, :new, :create, :edit, :update ], City
|
71
60
|
|
72
61
|
can [ :edit, :index, :show, :update,
|
73
62
|
:new_marker, :edit_marker, :create_marker, :update_marker,
|
@@ -1,16 +1,14 @@
|
|
1
1
|
|
2
2
|
.application--form-nonpublic
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
7
|
-
|
8
|
-
|
9
|
-
.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
> #{p.email} <br />
|
16
|
-
.col.s4
|
3
|
+
.WBordered
|
4
|
+
.row
|
5
|
+
.col-sm-3
|
6
|
+
= f.check_box :is_public
|
7
|
+
= f.label :is_public
|
8
|
+
.col-sm-4
|
9
|
+
= f.label 'Shared with'
|
10
|
+
= f.select :shared_profiles, options_for_select(@user_profiles_list, selected: model.shared_profile_ids), {}, { :multiple => true }
|
11
|
+
.col-sm-4
|
12
|
+
Shared with:<br />
|
13
|
+
- model.shared_profiles.each do |p|
|
14
|
+
> #{p.email} <br />
|
@@ -7,8 +7,9 @@
|
|
7
7
|
.row
|
8
8
|
.col-sm-6
|
9
9
|
- if @current_user
|
10
|
-
%
|
11
|
-
|
10
|
+
%ul
|
11
|
+
%li <b>Email:</b> #{@current_user.email}
|
12
|
+
%li <b>Role name:</b> #{@current_user.profile&.role_name}
|
12
13
|
- else
|
13
14
|
Please log in
|
14
15
|
= link_to '[+]', main_app.new_user_session_path
|
@@ -2,42 +2,54 @@
|
|
2
2
|
|
3
3
|
.application--main-header-admin.main-header{ class: "#{ENV['RAILS_ENV']} #{ENV['RAILS_ENV'][0...3]=="dev" ? "development" : ''}" }
|
4
4
|
.container
|
5
|
+
|
6
|
+
%i.fa.fa-compress.collapse-expand#collapseHeaderPiCMS
|
7
|
+
PiousboxCMS
|
8
|
+
%ul
|
9
|
+
%li
|
10
|
+
= link_to 'Photos', photos_path
|
11
|
+
= link_to '[+]', new_photo_path
|
12
|
+
%li
|
13
|
+
= render 'ish_manager/galleries/menu'
|
14
|
+
%li
|
15
|
+
= link_to 'Reports', reports_path
|
16
|
+
.inline-search
|
17
|
+
= form_tag reports_path, method: :get do
|
18
|
+
= text_field_tag :q
|
19
|
+
= link_to '[+]', new_report_path
|
20
|
+
%li
|
21
|
+
= link_to 'Videos', videos_path
|
22
|
+
.inline-search
|
23
|
+
= form_tag videos_path, method: :get do
|
24
|
+
= text_field_tag :q
|
25
|
+
= link_to '[+]', new_video_path
|
26
|
+
.c
|
27
|
+
|
5
28
|
%i.fa.fa-compress.collapse-expand#collapseHeaderIsh
|
29
|
+
Gameui
|
6
30
|
.content
|
7
31
|
%ul
|
8
|
-
%li
|
32
|
+
%li
|
9
33
|
= link_to 'Maps', maps_path
|
10
34
|
.inline-search
|
11
35
|
= form_tag maps_path, method: :get do
|
12
36
|
= text_field_tag :q
|
13
37
|
= link_to '[+]', new_map_path
|
14
38
|
|
15
|
-
%li
|
16
|
-
= render 'ish_manager/galleries/menu'
|
17
|
-
%li{ :class => params[:controller] == 'ish_manager/reports' ? 'active' : '' }
|
18
|
-
= link_to 'Reports', reports_path
|
19
|
-
.inline-search
|
20
|
-
= form_tag reports_path, method: :get do
|
21
|
-
= text_field_tag :q
|
22
|
-
= link_to '[+]', new_report_path
|
23
|
-
%li{ :class => params[:controller] == 'ish_manager/videos' ? 'active' : '' }
|
24
|
-
= link_to 'Videos', videos_path
|
25
|
-
.inline-search
|
26
|
-
= form_tag videos_path, method: :get do
|
27
|
-
= text_field_tag :q
|
28
|
-
= link_to '[+]', new_video_path
|
29
|
-
%li{ :class => params[:controller] == 'ish_manager/tags' ? 'active' : '' }
|
39
|
+
%li
|
30
40
|
= link_to 'Tags', tags_path
|
31
41
|
%ul
|
32
|
-
%li
|
42
|
+
%li= link_to '+Newsitem', new_newsitem_path
|
33
43
|
-# %li{ :class => params[:controller] == 'ish_manager/stock_watches' ? 'active' : '' }= link_to 'Stock Watches (old m3)', stock_watches_path
|
34
44
|
-# %li= link_to 'Stock Watches', '/iron_warbler/stock_watches'
|
35
|
-
%li
|
36
|
-
%li
|
45
|
+
%li= link_to 'Users', users_path
|
46
|
+
%li= link_to 'Ish::UserProfiles', user_profiles_path
|
37
47
|
%li
|
38
48
|
= link_to "Ish::ImageAsset's", image_assets_path
|
39
49
|
.c
|
50
|
+
|
40
51
|
%i.fa.fa-compress.collapse-expand#collapseHeaderOffice
|
52
|
+
Office
|
41
53
|
.namespace
|
42
54
|
%ul
|
43
55
|
%li= link_to 'Leads', leads_path
|
@@ -51,9 +63,5 @@
|
|
51
63
|
= link_to 'Email Contexts', email_contexts_path
|
52
64
|
%li
|
53
65
|
= link_to 'Email Campaigns', email_campaigns_path
|
54
|
-
%li
|
55
|
-
= link_to 'Sent Emails', sent_emails_path
|
56
|
-
%li
|
57
|
-
= button_to 'Test Email', email_test_path, { form_class: 'inline-block' }
|
58
66
|
%hr
|
59
67
|
|
@@ -1,15 +1,25 @@
|
|
1
1
|
|
2
|
-
.main-header
|
2
|
+
.application--main-header-guy.main-header{ class: "#{ENV['RAILS_ENV']} #{ENV['RAILS_ENV'][0...3]=="dev" ? "development" : ''}" }
|
3
3
|
.container
|
4
|
-
.row
|
5
|
-
.col.s12
|
6
|
-
%i.fa.fa-compress.collapse-expand#collapseHeader
|
7
|
-
.content
|
8
|
-
%ul.nav.nav-pills
|
9
|
-
%li{ :class => params[:controller] == 'ish_manager/galleries' ? 'active' : '' }= link_to 'Galleries', galleries_path
|
10
|
-
-# %li{ :class => params[:controller] == 'ish_manager/reports' ? 'active' : '' }= link_to 'Reports', reports_path
|
11
|
-
-# %li{ :class => params[:controller] == 'ish_manager/videos' ? 'active' : '' }= link_to 'Videos', videos_path
|
12
|
-
-# %li{ :class => params[:controller] == 'ish_manager/friends ' ? 'active' : '' }= link_to 'Friends', friends_path
|
13
|
-
%ul.nav.nav-pills
|
14
|
-
%hr
|
15
4
|
|
5
|
+
%i.fa.fa-compress.collapse-expand#collapseHeaderPiCMS
|
6
|
+
PiousboxCMS
|
7
|
+
%ul
|
8
|
+
%li
|
9
|
+
= link_to 'Photos', photos_path
|
10
|
+
= link_to '[+]', new_photo_path
|
11
|
+
%li
|
12
|
+
= render 'ish_manager/galleries/menu'
|
13
|
+
%li
|
14
|
+
= link_to 'Reports', reports_path
|
15
|
+
.inline-search
|
16
|
+
= form_tag reports_path, method: :get do
|
17
|
+
= text_field_tag :q
|
18
|
+
= link_to '[+]', new_report_path
|
19
|
+
%li
|
20
|
+
= link_to 'Videos', videos_path
|
21
|
+
.inline-search
|
22
|
+
= form_tag videos_path, method: :get do
|
23
|
+
= text_field_tag :q
|
24
|
+
= link_to '[+]', new_video_path
|
25
|
+
.c
|
@@ -8,11 +8,6 @@
|
|
8
8
|
|
9
9
|
- if item.tags.length > 0
|
10
10
|
<b>Tags:</b> #{ item.tags.map(&:name).join(', ') }
|
11
|
-
- if item.city
|
12
|
-
<b>In City:</b> #{link_to item.city.name, city_path( item.city )}
|
13
|
-
- if item.respond_to?( :venue ) && item.venue
|
14
|
-
<b>Venue:</b>
|
15
|
-
= link_to item.venue.name, venue_path( item.venue )
|
16
11
|
|
17
12
|
- if defined?(item.premium_tier) && item.premium_tier > 0
|
18
13
|
<b>Tier:$#{item.premium_tier}</b>
|
@@ -14,8 +14,6 @@
|
|
14
14
|
= link_to '~', edit_email_context_path(ctx)
|
15
15
|
= link_to email_context_path(ctx) do
|
16
16
|
view
|
17
|
-
|
18
|
-
|
19
|
-
iframe
|
20
|
-
%i.fa.fa-external-link
|
17
|
+
-# = link_to 'iframe', email_context_iframe_path(ctx), target: :_blank do
|
18
|
+
|
21
19
|
To #{ctx.to_email}: #{ctx.subject}
|
@@ -8,7 +8,9 @@
|
|
8
8
|
- if @email_ctx.sent_at
|
9
9
|
%li <b>Sent at:</b> #{@email_ctx.sent_at.strftime('%Y-%m-%d %l:%M%P')}
|
10
10
|
- else
|
11
|
-
%li
|
11
|
+
%li
|
12
|
+
= button_to 'Send', email_context_send_path(@email_ctx), form_class: 'inline', :data => { :confirm => 'Are you sure?' }
|
13
|
+
= link_to '[~]', edit_email_context_path(@email_ctx)
|
12
14
|
|
13
15
|
- if @email_ctx.sent_at
|
14
16
|
=raw @email_ctx.rendered_str
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
%h3.collapse-expand#emailTemplatesIndex
|
3
|
+
Email Templates
|
4
|
+
.email-templates-index
|
5
|
+
|
6
|
+
= render 'ish_manager/email_templates/form', email_template: ::Ish::EmailTemplate.new
|
7
|
+
%ul
|
8
|
+
- @templates.each do |tmpl|
|
9
|
+
%li
|
10
|
+
= link_to 'Use', new_email_context_path({ email_template_id: tmpl.id })
|
11
|
+
= link_to 'View', email_template_path({ id: tmpl })
|
12
|
+
= link_to 'iFrame', email_template_iframe_path({ id: tmpl }), target: :_blank
|
13
|
+
= tmpl.slug
|
14
|
+
= button_to '[x]', email_template_path({ id: tmpl }), method: :delete, :data => { :confirm => 'Are you sure?' }, form_class: 'inline'
|
15
|
+
|