pg_rails 7.6.21 → 7.6.22.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/assets/images/test/factura-logo-navbar-1.png +0 -0
- data/pg_engine/app/assets/images/test/factura-logo-xl-light.png +0 -0
- data/pg_engine/app/assets/images/test/factura-mail-footer-lg.png +0 -0
- data/pg_engine/app/assets/images/test/factura-mail-footer-sm.png +0 -0
- data/pg_engine/app/assets/images/test/icon/factura-favicon-32x32.png +0 -0
- data/pg_engine/app/assets/images/test/icon/procura-favicon-32x32.png +0 -0
- data/pg_engine/app/assets/images/test/procura-logo-navbar-1.png +0 -0
- data/pg_engine/app/assets/images/test/procura-logo-xl-light.png +0 -0
- data/pg_engine/app/assets/images/test/procura-mail-footer-lg.png +0 -0
- data/pg_engine/app/assets/images/test/procura-mail-footer-sm.png +0 -0
- data/pg_engine/app/controllers/users/invitations_controller.rb +5 -3
- data/pg_engine/app/mailers/pg_engine/base_mailer.rb +17 -1
- data/pg_engine/lib/pg_engine/test/dummy_brand.rb +11 -10
- data/pg_rails/lib/version.rb +1 -1
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82557632c412afc306681cc0a0b939032d6085ae330754261bb83a7ecee70703
|
4
|
+
data.tar.gz: 57921d4c26b686254a7fe02dd2e488a05ee6948987ed1166de7ef1a1543c6c6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deb3aefaabfbf76b6be7efd0093b456df0f1e25f685428bfce6481a5c49e14bf2248eb44cf216eb9b8e7aeac85652da048d1b402ff75c65e833c4b995bc39fb1
|
7
|
+
data.tar.gz: f4f5d38259d76db1d18dbf5a5abf18f1b596ae26ec9d8eceee7d58c4742407dd4dcc0aba2759a72e975607484dfb18be9524c3299c5416b2ca66b3f4278172f0
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -2,6 +2,11 @@ module Users
|
|
2
2
|
class InvitationsController < Devise::InvitationsController
|
3
3
|
include PgEngine::TenantHelper
|
4
4
|
|
5
|
+
before_action only: :new do
|
6
|
+
# Porque el link for new no tiene turbo-frame="_top"
|
7
|
+
@turbo_page_requires_reload = true
|
8
|
+
end
|
9
|
+
|
5
10
|
before_action only: %i[new create] do
|
6
11
|
set_tenant_from_params_or_fail!
|
7
12
|
|
@@ -12,9 +17,6 @@ module Users
|
|
12
17
|
add_breadcrumb UserAccount.nombre_plural
|
13
18
|
add_breadcrumb UserAccount.new.decorate.submit_default_value
|
14
19
|
|
15
|
-
# Porque el link for new no tiene turbo-frame="_top"
|
16
|
-
@turbo_page_requires_reload = true
|
17
|
-
|
18
20
|
@no_main_frame = true
|
19
21
|
@container_class = 'container border pb-3 my-3'
|
20
22
|
@container_style = 'max-width: 50em; xborder-left: 1px solid grey'
|
@@ -9,7 +9,23 @@ module PgEngine
|
|
9
9
|
before_action { @email_object = params[:email_object] }
|
10
10
|
|
11
11
|
before_action do
|
12
|
-
|
12
|
+
if Rails.application.assets.present?
|
13
|
+
# Can compile assets
|
14
|
+
path = Rails.application.assets.find_asset(logo_footer_name).filename
|
15
|
+
else
|
16
|
+
# Can't compile assets, so must be precompiled
|
17
|
+
name = Rails.application.assets_manifest.files.select do |_k, v|
|
18
|
+
v['logical_path'].include?(logo_footer_name)
|
19
|
+
end
|
20
|
+
name = name.keys.first
|
21
|
+
if name.nil?
|
22
|
+
raise "Asset was not precompiled: #{logo_footer_name}"
|
23
|
+
end
|
24
|
+
|
25
|
+
path = Rails.public_path.join('assets', name)
|
26
|
+
end
|
27
|
+
|
28
|
+
png_data = File.read(path)
|
13
29
|
attachments.inline[logo_footer_name] = png_data
|
14
30
|
@footer_image_src = attachments[logo_footer_name].url
|
15
31
|
end
|
@@ -6,30 +6,31 @@ module PgEngine
|
|
6
6
|
|
7
7
|
@default_site_brand = :factura
|
8
8
|
|
9
|
+
# FIXME: mover los pngs a pg_engine/ dentro de una carpeta test/
|
9
10
|
@options = {
|
10
11
|
landing_site_url: {
|
11
12
|
procura: 'https://bien.com.ar/procura',
|
12
13
|
factura: 'https://bien.com.ar/factura'
|
13
14
|
},
|
14
15
|
logo_navbar_url: {
|
15
|
-
procura: 'procura-logo-navbar-1.png',
|
16
|
-
factura: 'logo-navbar-1.png'
|
16
|
+
procura: 'test/procura-logo-navbar-1.png',
|
17
|
+
factura: 'test/factura-logo-navbar-1.png'
|
17
18
|
},
|
18
19
|
logo_xl_url: {
|
19
|
-
procura: 'procura-logo-xl-light.png',
|
20
|
-
factura: 'logo-xl-light.png'
|
20
|
+
procura: 'test/procura-logo-xl-light.png',
|
21
|
+
factura: 'test/factura-logo-xl-light.png'
|
21
22
|
},
|
22
23
|
favicon_prefix: {
|
23
|
-
procura: 'procura-favicon',
|
24
|
-
factura: 'favicon'
|
24
|
+
procura: 'test/icon/procura-favicon',
|
25
|
+
factura: 'test/icon/factura-favicon'
|
25
26
|
},
|
26
27
|
mailer_devise_footer_image_src: {
|
27
|
-
factura: 'mail-footer-lg.png',
|
28
|
-
procura: 'procura-mail-footer-lg.png'
|
28
|
+
factura: 'test/factura-mail-footer-lg.png',
|
29
|
+
procura: 'test/procura-mail-footer-lg.png'
|
29
30
|
},
|
30
31
|
mailer_base_footer_image_src: {
|
31
|
-
factura: '
|
32
|
-
procura: 'procura-mail-footer-sm.png'
|
32
|
+
factura: 'test/factura-mail-footer-sm.png',
|
33
|
+
procura: 'test/procura-mail-footer-sm.png'
|
33
34
|
},
|
34
35
|
default_mail_from: {
|
35
36
|
procura: 'noreply@procura',
|
data/pg_rails/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.6.
|
4
|
+
version: 7.6.22.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martín Rosso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -672,6 +672,16 @@ files:
|
|
672
672
|
- pg_engine/app/assets/config/pg_engine_manifest.js
|
673
673
|
- pg_engine/app/assets/images/plantita-sm.png
|
674
674
|
- pg_engine/app/assets/images/plantita.png
|
675
|
+
- pg_engine/app/assets/images/test/factura-logo-navbar-1.png
|
676
|
+
- pg_engine/app/assets/images/test/factura-logo-xl-light.png
|
677
|
+
- pg_engine/app/assets/images/test/factura-mail-footer-lg.png
|
678
|
+
- pg_engine/app/assets/images/test/factura-mail-footer-sm.png
|
679
|
+
- pg_engine/app/assets/images/test/icon/factura-favicon-32x32.png
|
680
|
+
- pg_engine/app/assets/images/test/icon/procura-favicon-32x32.png
|
681
|
+
- pg_engine/app/assets/images/test/procura-logo-navbar-1.png
|
682
|
+
- pg_engine/app/assets/images/test/procura-logo-xl-light.png
|
683
|
+
- pg_engine/app/assets/images/test/procura-mail-footer-lg.png
|
684
|
+
- pg_engine/app/assets/images/test/procura-mail-footer-sm.png
|
675
685
|
- pg_engine/app/assets/javascripts/active_admin.js
|
676
686
|
- pg_engine/app/assets/stylesheets/actiontext.css
|
677
687
|
- pg_engine/app/assets/stylesheets/active_admin.scss
|