ish_manager 0.1.8.500 → 0.1.8.504

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/ish_manager/appliance_tmpls_controller.rb +18 -1
  3. data/app/controllers/ish_manager/prices_controller.rb +31 -0
  4. data/app/controllers/ish_manager/products_controller.rb +2 -25
  5. data/app/controllers/ish_manager/serverhosts_controller.rb +16 -8
  6. data/app/controllers/ish_manager/wco_leadsets_controller.rb +35 -0
  7. data/app/views/ish_manager/appliance_tmpls/_form.haml +13 -4
  8. data/app/views/ish_manager/appliance_tmpls/edit.haml +4 -0
  9. data/app/views/ish_manager/appliance_tmpls/index.haml +5 -2
  10. data/app/views/ish_manager/application/_main_header_admin.haml +2 -0
  11. data/app/views/ish_manager/invoices/new_stripe.haml +2 -2
  12. data/app/views/ish_manager/leadsets/show.haml +5 -6
  13. data/app/views/ish_manager/prices/_form.haml +10 -0
  14. data/app/views/ish_manager/products/_form.haml +12 -10
  15. data/app/views/ish_manager/products/index.haml +3 -0
  16. data/app/views/ish_manager/serverhosts/_form.haml +12 -11
  17. data/app/views/ish_manager/serverhosts/_index.haml +14 -14
  18. data/app/views/ish_manager/serverhosts/show.haml +6 -0
  19. data/app/views/ish_manager/user_profiles/edit.haml +1 -1
  20. data/app/views/ish_manager/user_profiles/show.haml +3 -1
  21. data/app/views/ish_manager/user_profiles/trash/_show.haml +39 -0
  22. data/app/views/ish_manager/wco_leadsets/_form.haml +12 -0
  23. data/app/views/ish_manager/wco_leadsets/_index.haml +11 -0
  24. data/app/views/ish_manager/wco_leadsets/edit.haml +4 -0
  25. data/app/views/ish_manager/wco_leadsets/index.haml +6 -0
  26. data/app/views/ish_manager/wco_leadsets/show.haml +8 -0
  27. data/config/routes.rb +2 -0
  28. metadata +12 -3
  29. data/app/views/ish_manager/user_profiles/_show.haml +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aad53e16372476d88874a2890715c1783fd15074abdf843eb7850c3a8bd462d9
4
- data.tar.gz: d8f8011c70d658b73bcb65837b03e742b470519ad3acf75b1ae6d0d6c95d4088
3
+ metadata.gz: 5bf2d01a70b7522f7e27afa1e25a7ac42cc95e5e7da3c3eeef5eaf32b454bcc3
4
+ data.tar.gz: 72f5c516ce6d697ce8e036f825aa97dae89a38a8a7c4209518c454980d679dac
5
5
  SHA512:
6
- metadata.gz: 56c4796cde285294fc3aaed58fa574d6516173dbb0f953fe5d0528e004dcae4f43dc8447291b6bd7a179dbeccd6f2ead1fbf60cee48d75d6b73f22ce519d9ce8
7
- data.tar.gz: f64f1ade2b4cca7bf7a8a1d0e2e33bf58b7668ece0ddff25a21e0b28545a46c75fd7c12f9a2d9f0ffcc8d148be64d724417057fc3386291497cc58a973528555
6
+ metadata.gz: 30aaaae64eb60915a5bfb9f775e2d6c00dff588414d646157bccac3d4617a2f7a6cea952185c7ae1d6f97df4ee2700d443fbd9c0266aa0d2a51fad1eea8f4fcd
7
+ data.tar.gz: e801605b0c81d7c6a0e1eaa4164e224242660a754c9ecc6982c749bf0f9314bce74a5eeb41e68f5bc434bfd9277b5eb559fdcc0ae5a86c66abf40dc73f41272a
@@ -13,15 +13,32 @@ class ::IshManager::ApplianceTmplsController < IshManager::ApplicationController
13
13
  redirect_to action: :index
14
14
  else
15
15
  flash[:alert] = "Cannot create appliance tmplate: #{@appliance_tmpl.errors.full_messages.join(', ')}."
16
- render action: :index
16
+ redirect_to action: :index
17
17
  end
18
18
  end
19
19
 
20
+ def edit
21
+ @appliance_tmpl = Wco::ApplianceTmpl.find params[:id]
22
+ authorize! :edit, @appliance_tmpl
23
+ end
24
+
20
25
  def index
21
26
  authorize! :index, Wco::ApplianceTmpl
22
27
  @appliance_tmpls = Wco::ApplianceTmpl.all
23
28
  end
24
29
 
30
+ def update
31
+ @appliance_tmpl = Wco::ApplianceTmpl.find params[:id]
32
+ authorize! :update, @appliance_tmpl
33
+ flag = @appliance_tmpl.update params[:appliance].permit!
34
+ if flag
35
+ flash_notice 'success'
36
+ else
37
+ flash_alert "Cannot update appliance template: #{@appliance_tmpl.errors.full_messages.join(', ')}."
38
+ end
39
+ redirect_to action: :index
40
+ end
41
+
25
42
  ##
26
43
  ## private
27
44
  ##
@@ -4,6 +4,37 @@
4
4
 
5
5
  class IshManager::PricesController < IshManager::ApplicationController
6
6
 
7
+ def create
8
+ @price = Wco::Price.new params[:price].permit( :amount_cents, :interval, :product_id )
9
+ puts! @price, '@price'
10
+ authorize! :create, @price
11
+ if !params[:price][:interval].present?
12
+ @price.interval = nil
13
+ end
14
+ @product = Wco::Product.find @price.product_id
15
+ stripe_product = Stripe::Product.retrieve( @product.product_id )
16
+ price_hash = {
17
+ product: stripe_product.id,
18
+ unit_amount: @price.amount_cents,
19
+ currency: 'usd',
20
+ }
21
+ if @price.interval.present?
22
+ price_hash[:recurring] = { interval: @price.interval }
23
+ end
24
+ stripe_price = Stripe::Price.create( price_hash )
25
+ # puts! stripe_price, 'stripe_price'
26
+
27
+ flash_notice 'Created stripe price.'
28
+ @price.product = @product
29
+ @price.price_id = stripe_price[:id]
30
+ if @price.save
31
+ flash_notice @price
32
+ else
33
+ flash_alert @price
34
+ end
35
+ redirect_to controller: :products, action: :index
36
+ end
37
+
7
38
  def update
8
39
 
9
40
  # if !params[:price][:interval].present?
@@ -5,15 +5,12 @@ class IshManager::ProductsController < IshManager::ApplicationController
5
5
 
6
6
  # Alphabetized : )
7
7
 
8
+
9
+
8
10
  def create
9
11
  @product = Wco::Product.new params[:product].permit( :name )
10
- @price = Wco::Price.new params[:price].permit( :amount_cents, :interval )
11
12
  authorize! :create, @product
12
13
 
13
- if !params[:price][:interval].present?
14
- @price.interval = nil
15
- end
16
-
17
14
  stripe_product = Stripe::Product.create({ name: @product.name })
18
15
  # puts! stripe_product, 'stripe_product'
19
16
  flash_notice 'Created stripe product.'
@@ -24,26 +21,6 @@ class IshManager::ProductsController < IshManager::ApplicationController
24
21
  else
25
22
  flash_alert "Cannot create wco product: #{@product.errors.full_messages.join(', ')}."
26
23
  end
27
-
28
- price_hash = {
29
- product: stripe_product.id,
30
- unit_amount: @price.amount_cents,
31
- currency: 'usd',
32
- }
33
- if @price.interval.present?
34
- price_hash[:recurring] = { interval: @price.interval }
35
- end
36
- stripe_price = Stripe::Price.create( price_hash )
37
- # puts! stripe_price, 'stripe_price'
38
- flash_notice 'Created stripe price.'
39
- @price.product = @product
40
- @price.price_id = stripe_price[:id]
41
- if @price.save
42
- flash_notice @price
43
- else
44
- flash_alert @price
45
- end
46
-
47
24
  redirect_to action: :index
48
25
  end
49
26
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  class ::IshManager::ServerhostsController < IshManager::ApplicationController
3
3
 
4
- # before_action :set_lists
4
+ before_action :set_lists
5
5
 
6
6
  def create
7
7
  @serverhost = Wco::Serverhost.new params[:serverhost].permit!
@@ -28,6 +28,11 @@ class ::IshManager::ServerhostsController < IshManager::ApplicationController
28
28
  @new_serverhost = Wco::Serverhost.new
29
29
  end
30
30
 
31
+ def show
32
+ @serverhost = Wco::Serverhost.find params[:id]
33
+ authorize! :show, @serverhost
34
+ end
35
+
31
36
  def update
32
37
  @serverhost = Wco::Serverhost.find params[:id]
33
38
  authorize! :update, @serverhost
@@ -48,13 +53,16 @@ class ::IshManager::ServerhostsController < IshManager::ApplicationController
48
53
  ##
49
54
  private
50
55
 
51
- # def set_lists
52
- # super
53
- # @new_serverhost = Wco::Serverhost.new
54
- # puts! @new_serverhost.class, 'ze'
55
- # puts! @new_serverhost, '@new_serverhost'
56
- # @new_serverhost.name = 'some name'
57
- # end
56
+ def set_lists
57
+ # super
58
+
59
+ # @new_serverhost = Wco::Serverhost.new
60
+ # puts! @new_serverhost.class, 'ze'
61
+ # puts! @new_serverhost, '@new_serverhost'
62
+ # @new_serverhost.name = 'some name'
63
+
64
+ @wco_leadsets_list = [[nil,nil]] + Wco::Leadset.all.map { |i| [ i.name, i.id ] }
65
+ end
58
66
 
59
67
  end
60
68
 
@@ -0,0 +1,35 @@
1
+
2
+ class IshManager::WcoLeadsetsController < IshManager::ApplicationController
3
+
4
+ def create
5
+ end
6
+
7
+ def edit
8
+ @wco_leadset = Wco::Leadset.find params[:id]
9
+ authorize! :edit, @wco_leadset
10
+ end
11
+
12
+ def index
13
+ authorize! :index, Wco::Leadset
14
+ @wco_leadsets = Wco::Leadset.all
15
+ end
16
+
17
+ def show
18
+ @wco_leadset = Wco::Leadset.find params[:id]
19
+ authorize! :show, @wco_leadset
20
+ end
21
+
22
+ def update
23
+ @wco_leadset = Wco::Leadset.find params[:id]
24
+ authorize! :update, @wco_leadset
25
+ flag = @wco_leadset.update params[:wco_leadset].permit!
26
+ if flag
27
+ flash_notice "ok"
28
+ else
29
+ flash_alert "sorry"
30
+ end
31
+ redirect_to action: :index
32
+ end
33
+
34
+ end
35
+
@@ -1,14 +1,23 @@
1
1
 
2
- - url = appliance_tmpl.new_record? ? appliance_tmpls_path : appliance_tmpls_path( appliance_tmpl )
2
+ - url = appliance_tmpl.new_record? ? appliance_tmpls_path : appliance_tmpl_path( appliance_tmpl )
3
3
 
4
4
  .appliance-tmpls--form
5
5
  = form_for appliance_tmpl, as: :appliance, url: url do |f|
6
- .input-field
6
+ .field
7
7
  = f.label :kind
8
8
  = f.text_field :kind
9
- .input-field
9
+ .field
10
+ = f.label :version
11
+ = f.text_field :version
12
+ .field
13
+ = f.label :descr
14
+ = f.text_area :descr
15
+ .field
10
16
  = f.label :image
11
- = f.text_field :image
17
+ = f.text_field :image, class: 'w-100'
18
+ .field
19
+ %label volume_zip
20
+ = f.text_field :volume_zip, class: 'w-100'
12
21
 
13
22
  .actions
14
23
  = f.submit 'Submit'
@@ -0,0 +1,4 @@
1
+
2
+ .appliance-tmpls-edit.maxwidth
3
+ %h5 Edit ApplianceTmpl `#{@appliance_tmpl}`
4
+ = render 'form', appliance_tmpl: @appliance_tmpl
@@ -6,9 +6,12 @@
6
6
  %ul
7
7
  - @appliance_tmpls.each do |i|
8
8
  %li
9
+ %span.gray= i.id.to_s
10
+ = link_to '[~]', edit_appliance_tmpl_path( i )
9
11
  %ul
10
- %li <b>Kind:</b> #{i.kind}
11
- %li <b>Image:</b> #{i.image}
12
+ - i.attributes.each do |k, v|
13
+ - next if %| _id created_at updated_at |.include? k
14
+ %li <b>#{k}:</b> #{v}
12
15
 
13
16
  %hr
14
17
  = render 'form', :appliance_tmpl => @new_appliance_tmpl
@@ -125,6 +125,8 @@
125
125
  %li
126
126
  = link_to 'Subscriptions', subscriptions_path
127
127
  = link_to '[+]', new_wco_subscription_path
128
+ %li
129
+ = link_to 'Wco::Leadset\'s', wco_leadsets_path
128
130
 
129
131
 
130
132
  .c
@@ -23,8 +23,8 @@
23
23
  -# = f.select :email, options_for_select([[nil,nil]] + @leadset.employees.map { |i| [ i.email, i.email ] } )
24
24
 
25
25
  .input-row
26
- %label item
27
- = select_tag 'invoice[items][][product_id]', options_for_select( @products_list ), class: 'products'
26
+ %label item (product)
27
+ = select_tag 'invoice[items][][product_id]', options_for_select( @products_list ), class: 'products select2'
28
28
 
29
29
  %label price
30
30
  = select_tag 'invoice[items][][price_id]'
@@ -15,12 +15,11 @@
15
15
  = render 'ish_manager/leads/index', leads: @employees
16
16
  %hr
17
17
 
18
- .row
19
- .col-md-6
20
- = render 'ish_manager/serverhosts/index', serverhosts: @leadset.serverhosts
21
-
22
- .col-md-6
23
- = render 'ish_manager/appliances/index', appliances: @leadset.appliances
18
+ -# .row
19
+ -# .col-md-6
20
+ -# = render 'ish_manager/serverhosts/index', serverhosts: @leadset.serverhosts
21
+ -# .col-md-6
22
+ -# = render 'ish_manager/appliances/index', appliances: @leadset.appliances
24
23
 
25
24
  .row
26
25
  .col-md-6
@@ -0,0 +1,10 @@
1
+
2
+ - url = price.new_record? ? prices_path : price_path( price )
3
+
4
+ .products--prices-form.inline-block
5
+ = form_for price, as: :price, url: url do |f|
6
+ = hidden_field_tag 'price[product_id]', price.product_id
7
+
8
+ %label amount cents
9
+ = f.number_field :amount_cents
10
+ = f.submit '>'
@@ -8,21 +8,23 @@
8
8
  %label Name
9
9
  = text_field_tag 'product[name]'
10
10
 
11
- .form-field
12
- %label Price in cents
13
- = text_field_tag 'price[amount_cents]'
14
-
15
- .form-field
16
- %label Recurring?
17
- = select_tag 'price[interval]', options_for_select(Wco::Price::INTERVALS)
11
+ -# .form-field
12
+ -# %label Price in cents
13
+ -# = text_field_tag 'price[amount_cents]'
18
14
 
19
15
  -# .form-field
20
- -# %label Stripe product_id
21
- -# = f.text_field :product_id
16
+ -# %label Recurring?
17
+ -# = select_tag 'price[interval]', options_for_select(Wco::Price::INTERVALS)
18
+
19
+ .form-field
20
+ %label Stripe product_id
21
+ -# = f.text_field :product_id
22
+ = product.product_id
22
23
 
23
24
  -# .form-field
24
25
  -# %label Stripe price_id
25
- -# = f.text_field :price_id
26
+ -# -# = f.text_field :price_id
27
+ -# = product.price_id
26
28
 
27
29
  .actions
28
30
  = f.submit 'Submit'
@@ -20,6 +20,9 @@
20
20
  - else
21
21
  = product.name
22
22
  %ul
23
+ %li
24
+ New price:
25
+ = render 'ish_manager/prices/form', price: Wco::Price.new({ product: product[:wco_product] })
23
26
  - product[:prices].each do |price_id, price|
24
27
  %li
25
28
  %span.gray= price.id
@@ -5,9 +5,10 @@
5
5
  .field
6
6
  = f.label :name
7
7
  = f.text_field :name
8
+
8
9
  .field
9
- = f.label :leadset_id
10
- = f.number_field :leadset_id
10
+ %label Wco::Leadset
11
+ = f.select :wco_leadset, options_for_select( @wco_leadsets_list, selected: serverhost.wco_leadset_id ), class: [ :select2 ]
11
12
  .field
12
13
  = f.label :next_port
13
14
  = f.number_field :next_port
@@ -15,15 +16,15 @@
15
16
  .field
16
17
  = f.label :ssh_host
17
18
  = f.text_field :ssh_host
18
- .field
19
- = f.label :ssh_username
20
- = f.text_field :ssh_username
21
- .field
22
- = f.label :ssh_key
23
- = f.text_field :ssh_key
24
- .field
25
- = f.label :nginx_root
26
- = f.text_field :nginx_root
19
+ -# .field
20
+ -# = f.label :ssh_username
21
+ -# = f.text_field :ssh_username
22
+ -# .field
23
+ -# = f.label :ssh_key
24
+ -# = f.text_field :ssh_key
25
+ -# .field
26
+ -# = f.label :nginx_root
27
+ -# = f.text_field :nginx_root
27
28
 
28
29
  .actions
29
30
  = f.submit 'Submit'
@@ -2,18 +2,18 @@
2
2
  .serverhosts--index
3
3
  %h5 Serverhosts (#{serverhosts.length})
4
4
 
5
- %ul.items
6
- - serverhosts.each do |i|
7
- %li
8
- = i.name
9
- %span.gray= i.id.to_s
10
- = link_to '[~]', edit_serverhost_path(i)
5
+ .items
6
+ - serverhosts.each do |s|
7
+ .card.inline-block
8
+ = s.name
9
+ %span.gray= s.id.to_s
10
+ = link_to '[~]', edit_serverhost_path(s)
11
11
  %ul
12
- %li.leadset_id <b>leadset_id:</b> #{i.leadset_id}
13
- %li.next_port <b>Next Port:</b> #{i.next_port}
14
- %li.ssh_host <b>ssh_host:</b> #{i.ssh_host}
15
- %li.ssh_username <b>ssh_username:</b> #{i.ssh_username}
16
- %li.ssh_key <b>ssh_key:</b> #{i.ssh_key}
17
- %li.nginx_root <b>nginx_root:</b> #{i.nginx_root}
18
- %li.appliances
19
- = render 'ish_manager/appliances/index', appliances: i.appliances
12
+ %li.wco-leadset <b>wco_leadset:</b> #{s.wco_leadset.name} (#{s.wco_leadset.id})
13
+ %li.next_port <b>Next Port:</b> #{s.next_port}
14
+ %li.ssh_host <b>ssh_host:</b> #{s.ssh_host}
15
+ -# %li.ssh_username <b>ssh_username:</b> #{s.ssh_username}
16
+ -# %li.ssh_key <b>ssh_key:</b> #{s.ssh_key}
17
+ %li.nginx_root <b>nginx_root:</b> #{s.nginx_root}
18
+ -# %li.appliances
19
+ -# = render 'ish_manager/appliances/index', appliances: s.appliances
@@ -0,0 +1,6 @@
1
+
2
+ .serverhosts-edit.max-width
3
+ %h5
4
+ = link_to '<-', serverhosts_path
5
+ Show serverhost `#{@serverhost.name}` #{link_to '[~]', edit_serverhost_path( @serverhost )}
6
+ = render 'form', serverhost: @serverhost
@@ -1,6 +1,6 @@
1
1
 
2
2
  .user-profiles-edit.max-width
3
3
  .header
4
- %h2.title Editing profile for: `#{@profile.email}`
4
+ %h2.title Editing profile `#{link_to @profile.email, user_profile_path(@profile) }`
5
5
 
6
6
  = render 'form', :profile => @profile
@@ -1,7 +1,9 @@
1
1
 
2
2
  .user-profiles-show.max-width
3
3
  .header
4
- %h2.title Profile #{@profile.email}
4
+ %h2.title Profile `#{@profile.email}`
5
+ %ul
6
+ %li <b>Leadset:</b> #{link_to @profile.leadset.name, leadset_path(@profile.leadset)}
5
7
 
6
8
  .newsitems
7
9
  .title Newsitems (#{@profile.newsitems.length})
@@ -0,0 +1,39 @@
1
+ - profile ||= user_profile
2
+
3
+ .user-profiles--show.max-width
4
+ .header
5
+ %h2.title Profile #{profile.email}
6
+
7
+ .newsitems
8
+ .title Newsitems (#{profile.newsitems.length})
9
+ - profile.newsitems.each do |newsitem|
10
+ = render 'ish_manager/newsitems/show', newsitem: newsitem
11
+
12
+ .premium-purchases
13
+ Payments (purchased items) (#{profile.payments.length}):
14
+ - profile.payments.each do |payment|
15
+ .Card.item
16
+ = payment
17
+
18
+
19
+ %ul
20
+ %li
21
+ <b>Email:</b> #{link_to profile.email, user_profile_path(profile)}
22
+ = link_to '[edit]', edit_user_profile_path( profile )
23
+ %li <b>Name:</b> #{profile.name}
24
+ %li <b>Role:</b> #{profile.role_name}
25
+ %li
26
+ <b>Profile Photo:</b>
27
+ = image_tag profile.profile_photo.photo.url(:thumb) rescue nil
28
+
29
+ .col.s8
30
+ %h5 Shared galleries
31
+ - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
32
+ &gt; #{link_to g.name, gallery_path(g.slug)} <br />
33
+ = render 'meta', :item => g
34
+ <hr />
35
+
36
+ %h5 Newsitems
37
+ - profile.newsitems.each do |n|
38
+ = render 'ish_manager/newsitems/item', n: n, profile_id: profile.id
39
+ <hr />
@@ -0,0 +1,12 @@
1
+
2
+ .wco-leadsets--form
3
+ = form_for wco_leadset do |f|
4
+ .field
5
+ %label name
6
+ = f.text_field :name
7
+ .field
8
+ %label domains, space-separated
9
+ = f.text_field :domains
10
+
11
+ .actions
12
+ = f.submit 'Submit'
@@ -0,0 +1,11 @@
1
+
2
+ .wco-leadsets--index
3
+ - leadsets.each do |leadset|
4
+ .Card
5
+ = link_to leadset.name, wco_leadset_path( leadset )
6
+ = link_to '[~]', edit_wco_leadset_path( leadset )
7
+ %ul.item
8
+ %li <b>Next Serverhost:</b> #{link_to leadset.next_serverhost.ssh_host, serverhost_path( leadset.next_serverhost ) }
9
+ %li <b>Domains:</b> #{leadset.domains}
10
+
11
+
@@ -0,0 +1,4 @@
1
+
2
+ .wco-leadsets-edit.maxwidth
3
+ %h5 Edit Wco::Leadset `#{link_to @wco_leadset.name, wco_leadset_path( @wco_leadset) }`
4
+ = render 'form', wco_leadset: @wco_leadset
@@ -0,0 +1,6 @@
1
+
2
+ .wco-leadsets-index.maxwidth
3
+ %h5 Wco::Leadset's
4
+
5
+ = render 'index', leadsets: @wco_leadsets
6
+
@@ -0,0 +1,8 @@
1
+
2
+ .wco-leadsets-show.maxwidth
3
+ %h5
4
+ = link_to '<-', wco_leadsets_path
5
+ Wco::Leadset `#{@wco_leadset.name}`
6
+ = render 'index', leadsets: [ @wco_leadset ]
7
+
8
+
data/config/routes.rb CHANGED
@@ -174,4 +174,6 @@ IshManager::Engine.routes.draw do
174
174
  ##
175
175
  resources :videos
176
176
 
177
+ resources :wco_leadsets
178
+
177
179
  end
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.500
4
+ version: 0.1.8.504
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-30 00:00:00.000000000 Z
11
+ date: 2023-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -526,6 +526,7 @@ files:
526
526
  - app/controllers/ish_manager/unsubscribes_controller.rb
527
527
  - app/controllers/ish_manager/user_profiles_controller.rb
528
528
  - app/controllers/ish_manager/videos_controller.rb
529
+ - app/controllers/ish_manager/wco_leadsets_controller.rb
529
530
  - app/helpers/ish_manager/application_helper.rb
530
531
  - app/helpers/ish_manager/images_helper.rb
531
532
  - app/jobs/ish_manager/application_job.rb
@@ -575,6 +576,7 @@ files:
575
576
  - app/views/ish_manager/analytics/index.haml
576
577
  - app/views/ish_manager/analytics/test.haml
577
578
  - app/views/ish_manager/appliance_tmpls/_form.haml
579
+ - app/views/ish_manager/appliance_tmpls/edit.haml
578
580
  - app/views/ish_manager/appliance_tmpls/index.haml
579
581
  - app/views/ish_manager/appliances/_form.haml
580
582
  - app/views/ish_manager/appliances/_index.haml
@@ -824,6 +826,7 @@ files:
824
826
  - app/views/ish_manager/photos/new.haml
825
827
  - app/views/ish_manager/photos/show.haml
826
828
  - app/views/ish_manager/photos/without_gallery.haml
829
+ - app/views/ish_manager/prices/_form.haml
827
830
  - app/views/ish_manager/products/_form.haml
828
831
  - app/views/ish_manager/products/_index_list.haml
829
832
  - app/views/ish_manager/products/_index_table.haml
@@ -848,6 +851,7 @@ files:
848
851
  - app/views/ish_manager/serverhosts/_index.haml
849
852
  - app/views/ish_manager/serverhosts/edit.haml
850
853
  - app/views/ish_manager/serverhosts/index.haml
854
+ - app/views/ish_manager/serverhosts/show.haml
851
855
  - app/views/ish_manager/subscriptions/_form.haml
852
856
  - app/views/ish_manager/subscriptions/index.haml
853
857
  - app/views/ish_manager/subscriptions/new.haml
@@ -860,11 +864,11 @@ files:
860
864
  - app/views/ish_manager/trash/email_campaigns-trash/new.haml
861
865
  - app/views/ish_manager/unsubscribes/index.haml
862
866
  - app/views/ish_manager/user_profiles/_form.haml
863
- - app/views/ish_manager/user_profiles/_show.haml
864
867
  - app/views/ish_manager/user_profiles/edit.haml
865
868
  - app/views/ish_manager/user_profiles/index.haml
866
869
  - app/views/ish_manager/user_profiles/new.haml
867
870
  - app/views/ish_manager/user_profiles/show.haml
871
+ - app/views/ish_manager/user_profiles/trash/_show.haml
868
872
  - app/views/ish_manager/users/_index.haml
869
873
  - app/views/ish_manager/users/index.haml
870
874
  - app/views/ish_manager/videos/_form.haml
@@ -883,6 +887,11 @@ files:
883
887
  - app/views/ish_manager/videos/trash/_list_small.haml
884
888
  - app/views/ish_manager/videos/trash/_meta_edit.haml
885
889
  - app/views/ish_manager/videos/trash/_preview.haml
890
+ - app/views/ish_manager/wco_leadsets/_form.haml
891
+ - app/views/ish_manager/wco_leadsets/_index.haml
892
+ - app/views/ish_manager/wco_leadsets/edit.haml
893
+ - app/views/ish_manager/wco_leadsets/index.haml
894
+ - app/views/ish_manager/wco_leadsets/show.haml
886
895
  - app/views/layouts/ish_manager/application.haml
887
896
  - app/views/layouts/ish_manager/done/20230316 application.haml
888
897
  - app/views/layouts/ish_manager/email_iframe.haml
@@ -1,35 +0,0 @@
1
- - profile ||= user_profile
2
-
3
- .row
4
- .col.s4
5
- %ul
6
- %li
7
- <b>Email:</b> #{link_to profile.email, user_profile_path(profile)}
8
- = link_to '[edit]', edit_user_profile_path( profile )
9
- %li <b>Name:</b> #{profile.name}
10
- %li <b>Role:</b> #{profile.role_name}
11
- %li <b>User.email:</b> #{profile.user ? profile.user.email : nil}
12
- %li <b>City:</b> #{profile.current_city ? profile.current_city.name : nil}
13
- %li
14
- <b>Profile Photo:</b>
15
- = image_tag profile.profile_photo.photo.url(:thumb) rescue nil
16
-
17
- .col.s8
18
- %h5 Shared galleries
19
- - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
20
- &gt; #{link_to g.name, gallery_path(g.slug)} <br />
21
- = render 'meta', :item => g
22
- <hr />
23
-
24
- %h5 Newsitems
25
- - profile.newsitems.each do |n|
26
- = render 'ish_manager/newsitems/item', n: n, profile_id: profile.id
27
- <hr />
28
-
29
- %h5 Bookmarked Locations (#{profile.bookmarked_locations.length})
30
- %ul.browser-default
31
- - profile.bookmarked_locations.each do |n|
32
- %li
33
- = n.slug
34
-
35
-