mumuki-laboratory 9.7.0 → 9.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/with_certificate_render.rb +1 -1
- data/app/mailers/user_mailer.rb +1 -1
- data/app/views/certificates/_certificate.html.erb +1 -1
- data/app/views/user_mailer/certificate.html.erb +10 -14
- data/lib/mumuki/laboratory/locales/en.yml +3 -0
- data/lib/mumuki/laboratory/locales/es-CL.yml +3 -0
- data/lib/mumuki/laboratory/locales/es.yml +3 -0
- data/lib/mumuki/laboratory/locales/pt.yml +3 -0
- data/lib/mumuki/laboratory/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c293191e2ef2aff563714e0b4e41dee7b9cab1199a4d6c29ff3ebae6defa0250
|
4
|
+
data.tar.gz: e38d0255b8b7c89353b78402a6cc0ce575b9efb7a7495b6eb9e676102f8ea8d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c471ef8b0c0beecc9e93342605c92b2930ac437ddffa2227e04c8e16faa1f5e15faffde3cc23d0a846c9ee88e6d5b84846b1373806bbba5d4b9864a80cc297
|
7
|
+
data.tar.gz: 5e289be54ff6b18f84f974e2e4de07cadbab5f570263443b109dee3cf5f799d1ab705407923ded30e76be92b48568faa07403b20442d2a20989df474d36093b2
|
@@ -10,7 +10,7 @@ module WithCertificateRender
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def qr_for(certificate)
|
13
|
-
qr = RQRCode::QRCode.new(verify_certificate_url certificate.code).as_svg(color: '0B465D')
|
13
|
+
qr = RQRCode::QRCode.new(verify_certificate_url certificate.organization, certificate.code).as_svg(color: '0B465D')
|
14
14
|
"data:image/svg+xml,#{URI.encode(qr)}"
|
15
15
|
end
|
16
16
|
|
data/app/mailers/user_mailer.rb
CHANGED
@@ -23,7 +23,7 @@ class UserMailer < ApplicationMailer
|
|
23
23
|
def certificate(certificate)
|
24
24
|
with_locale certificate.user, certificate.organization do
|
25
25
|
attachments[certificate.filename] = pdf_for(certificate)
|
26
|
-
mail to: certificate.user.email, subject:
|
26
|
+
mail to: certificate.user.email, subject: certificate.description
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -38,7 +38,7 @@
|
|
38
38
|
<div class="mu-certificate-box">
|
39
39
|
<img src="<%= certificate.background_image_url %>" class="background-image"/>
|
40
40
|
<%= render inline: certificate.template_html_erb, locals: certificate.template_locals %>
|
41
|
-
<a href="<%=
|
41
|
+
<a href="<%= verify_certificate_url certificate.organization, certificate.code %>" target="_blank">
|
42
42
|
<div><img class="qr-code" src="<%= qr_for certificate %>"/></div>
|
43
43
|
</a>
|
44
44
|
</div>
|
@@ -76,20 +76,7 @@
|
|
76
76
|
<table border="0" cellpadding="0" cellspacing="0" class="muMailCaptionRightContentOuter" width="100%">
|
77
77
|
<tbody><tr>
|
78
78
|
<td valign="top" class="muMailCaptionRightContentInner" style="padding:0 9px ;">
|
79
|
-
<table align="
|
80
|
-
<tbody><tr>
|
81
|
-
<td class="muMailCaptionRightImageContent" align="center" valign="top">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<img alt="" src="https://gallery.mailchimp.com/046b6c670d9f80ebd6c5d075b/images/225fe60f-780a-451e-90aa-afb01f88a1b4.png" width="159" style="max-width:159px;" class="muMailImage">
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
</td>
|
90
|
-
</tr>
|
91
|
-
</tbody></table>
|
92
|
-
<table class="muMailCaptionRightTextContentContainer" align="right" border="0" cellpadding="0" cellspacing="0" width="264">
|
79
|
+
<table class="muMailCaptionRightTextContentContainer" align="center" border="0" cellpadding="0" cellspacing="0" width="264">
|
93
80
|
<tbody><tr>
|
94
81
|
<td valign="top" class="muMailTextContent">
|
95
82
|
<h3 class="null" style="text-align: center;"><br>
|
@@ -115,6 +102,15 @@
|
|
115
102
|
<tbody class="muMailButtonBlockOuter">
|
116
103
|
<tr>
|
117
104
|
<td style="padding-top:0; padding-right:18px; padding-bottom:18px; padding-left:18px;" valign="top" align="center" class="muMailButtonBlockInner">
|
105
|
+
<table border="0" cellpadding="0" cellspacing="0" class="muMailButtonContentContainer" style="border-collapse: separate !important;border-radius: 3px;background-color: #FF5B81;">
|
106
|
+
<tbody>
|
107
|
+
<tr>
|
108
|
+
<td align="center" valign="middle" class="muMailButtonContent" style="font-family: Helvetica; font-size: 18px; padding: 18px;">
|
109
|
+
<a class="muMailButton " title=<%= t :my_profile %> href=<%= @organization.url_for('/user') %> target="_self" style="font-weight: bold;letter-spacing: -0.5px;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;"><%= t :my_profile %></a>
|
110
|
+
</td>
|
111
|
+
</tr>
|
112
|
+
</tbody>
|
113
|
+
</table>
|
118
114
|
</td>
|
119
115
|
</tr>
|
120
116
|
</tbody>
|
@@ -217,6 +217,9 @@ en:
|
|
217
217
|
need_help: I need help!
|
218
218
|
never: never
|
219
219
|
new: New
|
220
|
+
new_certificate_mailer_title: 'Congratulations'
|
221
|
+
new_certificate_mailer_p1: 'Your new certificate is ready'
|
222
|
+
new_certificate_mailer_p2: 'You can find it attached to this email or you can view it in your Mumuki profile'
|
220
223
|
new_message_placeholder: Write a message for your teacher...
|
221
224
|
new_message_received: You have a new message from %{sender}
|
222
225
|
next_exercise: Next
|
@@ -221,6 +221,9 @@ es-CL:
|
|
221
221
|
new: Nuevo
|
222
222
|
new_discussion: Nueva consulta
|
223
223
|
new_message: ¿Tienes dudas? ¡Levanta la mano!
|
224
|
+
new_certificate_mailer_title: 'Felicitaciones'
|
225
|
+
new_certificate_mailer_p1: 'Ya está listo tu nuevo certificado'
|
226
|
+
new_certificate_mailer_p2: 'Podés descargarlo desde el adjunto de este mail o bien visualizarlo en tu perfil de Mumuki'
|
224
227
|
new_message_placeholder: Escribe el mensaje para tu docente acá...
|
225
228
|
new_message_received: Tienes un nuevo mensaje de %{sender}
|
226
229
|
next_exercise: Siguiente
|
@@ -229,6 +229,9 @@ es:
|
|
229
229
|
need_help: No entiendo, ¡necesito ayuda!
|
230
230
|
never: nunca
|
231
231
|
new: Nuevo
|
232
|
+
new_certificate_mailer_title: 'Felicitaciones'
|
233
|
+
new_certificate_mailer_p1: 'Ya está listo tu nuevo certificado'
|
234
|
+
new_certificate_mailer_p2: 'Podés descargarlo desde el adjunto de este mail o bien visualizarlo en tu perfil de Mumuki'
|
232
235
|
new_discussion: Nueva consulta
|
233
236
|
new_message: ¿Tenés dudas? ¡Levantá la mano!
|
234
237
|
new_message_placeholder: Escribí el mensaje para tu docente acá...
|
@@ -223,6 +223,9 @@ pt:
|
|
223
223
|
need_help: Não entendo, preciso de ajuda!
|
224
224
|
never: nunca
|
225
225
|
new: Novo
|
226
|
+
new_certificate_mailer_title: 'Parabéns'
|
227
|
+
new_certificate_mailer_p1: 'Seu novo certificado está pronto'
|
228
|
+
new_certificate_mailer_p2: 'Você pode baixá-lo do anexo deste e-mail ou visualizá-lo em seu perfil Mumuki'
|
226
229
|
new_message: Você tem dúvidas? Levante a mão!
|
227
230
|
new_message_placeholder: Escreva sua mensagem para o seu professor aqui ...
|
228
231
|
new_message_received: Você tem uma nova mensagem de %{sender}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-laboratory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.7.
|
4
|
+
version: 9.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|