ish_manager 0.1.8.391 → 0.1.8.392

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: ae2d5d633d70be58bd914e781c7309a0badc59636fd7983824cddb113953eb2b
4
- data.tar.gz: 49ce6ebf49ca0e252a6b1a4b2cacb4e5c785a4f087a99d55e8a7ffe427f19118
3
+ metadata.gz: 93cdc467e77550fd625d0f7161873674bb4a3d6fbe6ffac20f0ab49c5684c61c
4
+ data.tar.gz: 7a6836e9599041bf4420970a5212c65d0088b16a7933c62f29b8da3dc9a34a66
5
5
  SHA512:
6
- metadata.gz: 69887b0cd2d88b769eaf36fa1fd1b424d10c06ff87209da9124ff2272b24654b61bcdb2fc894232024ddf4feb191c80c916a22cc539d93865a6bd9ab51a42b8d
7
- data.tar.gz: 5ef6d092de0ec4252afe3103c3aac4105d90b0620e908ea25a56b0a728a12c9c36e4195422cf4c63b784bc7060d478487d5646ea76fc94c3bfbc1db094de531a
6
+ metadata.gz: aa535f6d1d318d7c16dd48e7685ce9d1be8854246dc9d527ea8d11871c81aebe4e23315613672feb5df6ac374855b7b417900efea24b473a457bd46cc9422855
7
+ data.tar.gz: c76fa0c68da834e846c98ce4d40ddb74953d74a090122ac901c2eea7d75e7ea27200f7f20cf8a022376c1ac0970cf8139c75e13c51c40e8b98221987b704562a
@@ -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,4 +1,7 @@
1
1
 
2
+ -#
3
+ -# WARNING: this is used by contexts, not templates, so @TODO: review _vp_ 2023-03-26
4
+ -#
2
5
 
3
6
  = raw ERB.new( @ctx.body ).result
4
7
 
@@ -1,2 +1,2 @@
1
1
 
2
- = render "ish_manager/email_templates/#{@email_template.layout}", body: @email_template.body
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 ||= 8
7
+ - n_thumbs ||= 12
8
8
 
9
- .collapse-expand#galleriesIndex
10
- = render 'ish_manager/galleries/menu', count: @galleries.count
11
9
  .galleries--index
12
- - if @galleries.length > 0
13
-
14
- - if @galleries.respond_to? :total_pages
15
- = paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
16
-
17
- .row
18
- - @galleries.each do |g|
19
- .col-sm-12.col-md-6
20
- .bordered-card
21
- %h5
22
- = link_to '[~]', edit_gallery_path( g )
23
- = link_to g.name, gallery_path(g.slug)
24
- (#{g.photos.length})
25
- = render 'meta', item: g
26
- - if g.photos.length == 0
27
- No Photos
28
- - else
29
- .flex-row
30
- - g.photos.limit( n_thumbs ).each do |photo|
31
- = link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)
32
-
33
- - if @galleries.respond_to? :total_pages
34
- = paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
35
-
36
- - else
37
- %h5 No Galleries
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.391
4
+ version: 0.1.8.392
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox