ish_manager 0.1.8.391 → 0.1.8.393
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ish_manager/email_templates_controller.rb +1 -0
- data/app/controllers/ish_manager/leadsets_controller.rb +0 -8
- data/app/views/ish_manager/email_templates/_plain.haml +3 -0
- data/app/views/ish_manager/email_templates/iframe_src.haml +1 -1
- data/app/views/ish_manager/galleries/_index.haml +31 -29
- data/app/views/ish_manager/galleries/_menu.haml +0 -2
- data/app/views/ish_manager/leads/_form.haml +4 -0
- data/app/views/ish_manager/leads/index.haml +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bd0eb931fb9d8240707b6b92d85605d3a5c408b63df428daca8c0fb2f2a72b8
|
4
|
+
data.tar.gz: 8c167c6550a8f6738f62ead6fc97f15d5a998e4fa7d25d74d55e5e950054cad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8e276d635ac55cbb391d104861de16e389ce30c9d5246488408a0b5f9e7fe64e74bc970620243eb8e792eb37a50b2213c85f4f6539a43ce1737beeef9ab895
|
7
|
+
data.tar.gz: a30a2e1e4b3f5a01791cefa7c9e83a9fa919351ea259fcdd0a2b53800c43facd4200f5ad8c4d93eba82853523bb0fd0989298ade81de42770c173e89cbe39898
|
@@ -33,6 +33,7 @@ class ::IshManager::EmailTemplatesController < ::IshManager::ApplicationControll
|
|
33
33
|
def iframe_src
|
34
34
|
@tmpl = @email_template = Ish::EmailTemplate.where({ id: params[:id] }).first ||
|
35
35
|
Ish::EmailTemplate.find_by({ slug: params[:id] })
|
36
|
+
@ctx = Ctx.new({ email_template: @tmpl })
|
36
37
|
authorize! :iframe_src, @email_template
|
37
38
|
render layout: false
|
38
39
|
end
|
@@ -7,7 +7,6 @@ class ::IshManager::LeadsetsController < IshManager::ApplicationController
|
|
7
7
|
|
8
8
|
def create
|
9
9
|
@leadset = Leadset.new params[:leadset].permit!
|
10
|
-
@leadset.profile = @current_profile
|
11
10
|
authorize! :create, @leadset
|
12
11
|
if @leadset.save
|
13
12
|
flash[:notice] = "created leadset"
|
@@ -18,8 +17,6 @@ class ::IshManager::LeadsetsController < IshManager::ApplicationController
|
|
18
17
|
end
|
19
18
|
|
20
19
|
def destroy
|
21
|
-
puts! params, 'params'
|
22
|
-
|
23
20
|
leadsets = Leadset.find( params[:leadset_ids] )
|
24
21
|
@results = []
|
25
22
|
leadsets.each do |leadset|
|
@@ -37,11 +34,6 @@ class ::IshManager::LeadsetsController < IshManager::ApplicationController
|
|
37
34
|
def index
|
38
35
|
authorize! :index, Leadset
|
39
36
|
@leadsets = Leadset.all.kept # where( :profile => @current_profile, :is_trash => false )
|
40
|
-
# if params[:is_done]
|
41
|
-
# @leadsets = @leadsets.where( :is_done => true )
|
42
|
-
# else
|
43
|
-
# @leadsets = @leadsets.where( :is_done => false )
|
44
|
-
# end
|
45
37
|
end
|
46
38
|
|
47
39
|
def new
|
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
= render "ish_manager/email_templates/#{@email_template.layout}"
|
2
|
+
= render "ish_manager/email_templates/#{@email_template.layout}"
|
@@ -4,35 +4,37 @@
|
|
4
4
|
-# _vp_ 2022-09-25 :: Small styling revision
|
5
5
|
-#
|
6
6
|
|
7
|
-
- n_thumbs
|
7
|
+
- n_thumbs ||= 12
|
8
8
|
|
9
|
-
.collapse-expand#galleriesIndex
|
10
|
-
= render 'ish_manager/galleries/menu', count: @galleries.count
|
11
9
|
.galleries--index
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
- @galleries.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
10
|
+
.max-width
|
11
|
+
= render 'ish_manager/galleries/menu', count: @galleries.count
|
12
|
+
|
13
|
+
.padded
|
14
|
+
- if @galleries.length > 0
|
15
|
+
|
16
|
+
- if @galleries.respond_to? :total_pages
|
17
|
+
= paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
|
18
|
+
|
19
|
+
.row
|
20
|
+
- @galleries.each do |g|
|
21
|
+
.col-sm-12.col-md-6
|
22
|
+
.bordered-card
|
23
|
+
%h5
|
24
|
+
= link_to '[~]', edit_gallery_path( g )
|
25
|
+
= link_to g.name, gallery_path(g.slug)
|
26
|
+
(#{g.photos.length})
|
27
|
+
= render 'meta', item: g
|
28
|
+
- if g.photos.length == 0
|
29
|
+
No Photos
|
30
|
+
- else
|
31
|
+
.flex-row
|
32
|
+
- g.photos.limit( n_thumbs ).each do |photo|
|
33
|
+
= link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)
|
34
|
+
|
35
|
+
- if @galleries.respond_to? :total_pages
|
36
|
+
= paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
|
37
|
+
|
38
|
+
- else
|
39
|
+
%h5 No Galleries
|
38
40
|
|
@@ -1,12 +1,10 @@
|
|
1
1
|
|
2
2
|
.galleries--menu
|
3
3
|
|
4
|
-
-# .title Galleries (#{@galleries.count}) #{link_to '[+]', new_gallery_path}
|
5
4
|
= link_to 'Galleries', galleries_path
|
6
5
|
- if defined?(count)
|
7
6
|
(#{count})
|
8
7
|
|
9
|
-
-# = render 'search', path: galleries_path
|
10
8
|
.inline-search
|
11
9
|
= form_tag galleries_path, method: :get do
|
12
10
|
= text_field_tag :q
|
@@ -11,6 +11,10 @@
|
|
11
11
|
= f.label :email
|
12
12
|
= f.text_field :email
|
13
13
|
|
14
|
+
.field
|
15
|
+
= f.label :phone
|
16
|
+
= f.text_field :phone
|
17
|
+
|
14
18
|
.field
|
15
19
|
= f.label "Leadset (company)"
|
16
20
|
= f.select :m3_leadset_id, options_for_select(@leadsets_list, selected: lead.m3_leadset_id), { include_blank: true }, { class: 'select2' }
|
@@ -17,6 +17,7 @@
|
|
17
17
|
%th
|
18
18
|
%th Name/Email
|
19
19
|
%th Company
|
20
|
+
%th Phone
|
20
21
|
%th Tag
|
21
22
|
%th created_at
|
22
23
|
%th Ctx
|
@@ -28,6 +29,7 @@
|
|
28
29
|
%td= check_box_tag 'lead_ids[]', lead.id
|
29
30
|
%td= link_to "#{lead.name} <#{lead.email}>", lead_path( lead )
|
30
31
|
%td= lead.company.company_url
|
32
|
+
%td= lead.phone
|
31
33
|
%td= lead.wp_tags.map(&:name).join(", ")
|
32
34
|
%td= lead.created_at.to_s[0..10]
|
33
35
|
%td.ctx
|