nuntius 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/nuntius/application.css +14 -0
- data/app/controllers/nuntius/admin/layouts_controller.rb +1 -1
- data/app/views/nuntius/admin/layouts/edit.html.slim +17 -1
- data/app/views/nuntius/admin/lists/edit.html.slim +1 -4
- data/app/views/nuntius/admin/messages/show.html.slim +20 -40
- data/config/locales/en.yml +120 -88
- data/config/locales/nl.yml +117 -84
- data/lib/nuntius/version.rb +1 -1
- metadata +2 -5
- data/app/views/nuntius/admin/layouts/attachments/_attachments.html.slim +0 -28
- data/app/views/nuntius/admin/layouts/attachments/_index.html.slim +0 -2
- data/app/views/nuntius/admin/layouts/attachments/create.json.jbuilder +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0dd9ea6a32009f0a48a394de12275c119aa73c5dc72a4b21f749867b89797a1
|
4
|
+
data.tar.gz: 01f2c695d6487875583d1e08f239beb110bf196dcc0820c13e48b97f7a6cef19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c46fcdb21224720c3df7cc4d6c12a45a0a76a40d188a5f44bceafe75e56e476407d8e60d87bee00688010aea0385ac7dcd0c846efa04823caf60ec5251658de
|
7
|
+
data.tar.gz: 1418023705add396e631737b239e4da268e3dc81d8bea01b5679520036868fb42da0f15a9f0632c9560a2d1da49aa65cbbc76e2b97d794752e0cbf5d3dfae6b2
|
@@ -17,7 +17,23 @@
|
|
17
17
|
|
18
18
|
- if @layout.persisted?
|
19
19
|
- card.with_tab:media, padding: true
|
20
|
-
|
20
|
+
.grid.grid-cols-4.gap-4
|
21
|
+
.col-span-4
|
22
|
+
= f.input :attachments, as: :file, multiple: true
|
23
|
+
ul.col-span-4
|
24
|
+
- @layout.attachments.each do |attachment|
|
25
|
+
li.col-span-1
|
26
|
+
- if attachment.previewable?
|
27
|
+
= image_tag attachment.preview(resize_to_limit: [500, 500]).url, class: 'object-cover pointer-events-none'
|
28
|
+
- elsif attachment.image?
|
29
|
+
= image_tag main_app.url_for(attachment.variant(resize_to_limit: [500, 500])), class: 'object-cover pointer-events-none'
|
30
|
+
= (attachment.blob.byte_size / 1048576.0).round(2)
|
31
|
+
' MB
|
32
|
+
= link_to admin_layout_attachment_path(@layout, attachment.id), data: { controller: 'attachment-delete', 'action': 'attachment-delete#delete' } do
|
33
|
+
i.fal.fa-xmark
|
34
|
+
=< link_to(main_app.rails_blob_path(attachment, disposition: 'attachment'),
|
35
|
+
title: attachment.filename)
|
36
|
+
i.fal.fa-download
|
21
37
|
|
22
38
|
- if @layout.templates.exists?
|
23
39
|
- card.with_tab :templates, padding: false
|
@@ -12,10 +12,7 @@
|
|
12
12
|
.col-span-2= f.input :allow_unsubscribe, as: :switch
|
13
13
|
|
14
14
|
.col-span-12.mt-4.mb-4
|
15
|
-
|
16
|
-
p.mb-4 = t('nuntius.admin.lists.edit.description_hint')
|
17
|
-
= f.input :description, as: :hidden
|
18
|
-
trix-editor input="list_description" style="background-color: #fff; height: 400px; margin-bottom: 20px;"
|
15
|
+
= f.rich_text :description, hint: t('nuntius.admin.lists.edit.description_hint')
|
19
16
|
|
20
17
|
.col-span-12
|
21
18
|
= f.input :metadata_yaml, as: :editor, mode: 'application/yaml'
|
@@ -3,46 +3,26 @@
|
|
3
3
|
= button_to(t('nuntius.context_menu.resend'), resend_admin_message_path(@message), class: 'button')
|
4
4
|
|
5
5
|
- card.with_tab:preview, padding: true
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
i.far.fa-paperclip
|
27
|
-
span=attachment.filename
|
28
|
-
br
|
29
|
-
|
30
|
-
- if @message.transport == 'sms'
|
31
|
-
tr
|
32
|
-
td Text
|
33
|
-
td = @message.text
|
34
|
-
|
35
|
-
- if @message.transport == 'slack'
|
36
|
-
tr
|
37
|
-
td Text
|
38
|
-
td = @message.text
|
39
|
-
tr
|
40
|
-
td Payload
|
41
|
-
td
|
42
|
-
pre = YAML.dump(@message.payload)
|
43
|
-
|
44
|
-
- if @message.transport == 'mail' && @message.html.present?
|
45
|
-
iframe.border.rounded-lg.border-gray-200 src=message_path(@message.id) style="width: 100%; height: 600px; border: 0px;"
|
6
|
+
= sts.info class: "grid grid-cols-1 gap-4 sm:grid-cols-3" do |info|
|
7
|
+
= info.with_item :to, content: @message.to, class: "sm:col-span-1"
|
8
|
+
= info.with_item :from, content: @message.from, class: "sm:col-span-1"
|
9
|
+
- if @message.transport == 'mail'
|
10
|
+
= info.with_item :subject, content: @message.subject, class: "sm:col-span-4"
|
11
|
+
= info.with_item :attachments, class: "sm:col-span-4"
|
12
|
+
- @message.attachments.each do |attachment|
|
13
|
+
= link_to(main_app.rails_blob_path(attachment, disposition: "attachment"), title: attachment.filename) do
|
14
|
+
i.far.fa-paperclip
|
15
|
+
span=attachment.filename
|
16
|
+
br
|
17
|
+
- if @message.transport == 'sms'
|
18
|
+
= info.with_item :text, content: @message.text, class: "sm:col-span-4"
|
19
|
+
- if @message.transport == 'slack'
|
20
|
+
= info.with_item :text, content: @message.text, class: "sm:col-span-4"
|
21
|
+
= info.with_item :payload, content: @message.text, class: "sm:col-span-4"
|
22
|
+
pre = YAML.dump(@message.payload)
|
23
|
+
- if @message.transport == 'mail' && @message.html.present?
|
24
|
+
= info.with_item :html, class: "sm:col-span-4"
|
25
|
+
iframe.border.rounded-lg.border-gray-200 src=message_path(@message.id) style="width: 100%; height: 600px; border: 0px;"
|
46
26
|
|
47
27
|
- card.with_tab:details, padding: true
|
48
28
|
= sts.info class: "grid grid-cols-1 gap-4 sm:grid-cols-3" do |info|
|
data/config/locales/en.yml
CHANGED
@@ -1,133 +1,165 @@
|
|
1
1
|
en:
|
2
|
+
choose_files: Choose files
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
nuntius/campaign:
|
6
|
+
from: From
|
7
|
+
layout: Layout
|
8
|
+
list: List
|
9
|
+
name: Name
|
10
|
+
state: Staat
|
11
|
+
subject: Subject
|
12
|
+
transport: Transport
|
13
|
+
nuntius/layout:
|
14
|
+
name: Name
|
15
|
+
nuntius/list:
|
16
|
+
allow_unsubscribe: unsubscribe allowed
|
17
|
+
description: Description
|
18
|
+
name: Name
|
19
|
+
slug: Slug
|
20
|
+
subscribers_count: Subscriber count
|
21
|
+
nuntius/template:
|
22
|
+
description: Description
|
23
|
+
enabled: Enabled
|
24
|
+
event: Event
|
25
|
+
from: From
|
26
|
+
klass: Klass
|
27
|
+
subject: Subject
|
28
|
+
to: To
|
29
|
+
transport: Transport
|
30
|
+
models:
|
31
|
+
campaign: Campaign
|
32
|
+
layout: Layout
|
33
|
+
list: List
|
34
|
+
message: Message
|
35
|
+
subscriber: Subscriber
|
36
|
+
template: Template
|
2
37
|
menu:
|
3
38
|
nuntius:
|
4
|
-
templates:
|
5
|
-
new: New template
|
6
|
-
layouts:
|
7
|
-
new: New layout
|
8
|
-
locales:
|
9
|
-
new: New locale
|
10
39
|
campaigns:
|
11
|
-
new: New campaign
|
12
40
|
lists: Lists
|
41
|
+
new: New campaign
|
42
|
+
layouts:
|
43
|
+
new: New layout
|
13
44
|
lists:
|
14
45
|
new: New list
|
15
46
|
new_subscriber: New subscriber
|
47
|
+
locales:
|
48
|
+
new: New locale
|
49
|
+
templates:
|
50
|
+
new: New template
|
16
51
|
nuntius:
|
17
|
-
flash:
|
18
|
-
error: There were problems saving the %{model}
|
19
|
-
notice: The %{model} was saved successfully
|
20
|
-
context_menu:
|
21
|
-
root: Root
|
22
|
-
resend: Resend
|
23
52
|
admin:
|
24
|
-
|
25
|
-
|
26
|
-
resend_success: Resent message
|
27
|
-
resend_error: Failed to resend message
|
28
|
-
index:
|
29
|
-
card:
|
30
|
-
nuntius_admin_messages:
|
31
|
-
title: Messages
|
32
|
-
tab:
|
33
|
-
Nuntius messages: Messages
|
34
|
-
show:
|
35
|
-
message: Message
|
53
|
+
campaigns:
|
54
|
+
edit:
|
36
55
|
card:
|
37
|
-
|
38
|
-
|
39
|
-
preview: Preview
|
40
|
-
details: Details
|
41
|
-
info_item:
|
42
|
-
main:
|
43
|
-
status: Status
|
44
|
-
transport: Transport
|
45
|
-
provider: Provider
|
46
|
-
provider_id: Provider ID
|
47
|
-
request_id: Request ID
|
48
|
-
refreshes: Refreshes
|
49
|
-
last_sent_at: Last Sent At
|
50
|
-
created_at: Created At
|
51
|
-
templates:
|
56
|
+
nuntius_admin_campaigns:
|
57
|
+
title: Campaigns
|
52
58
|
index:
|
53
59
|
card:
|
54
|
-
|
55
|
-
title: Templates
|
60
|
+
nuntius_admin_campaigns:
|
56
61
|
tab:
|
57
|
-
Nuntius
|
62
|
+
Nuntius campaigns: Campaigns
|
63
|
+
title: Campaigns
|
64
|
+
layouts:
|
58
65
|
edit:
|
59
66
|
card:
|
60
|
-
|
61
|
-
title:
|
67
|
+
nuntius_admin_layouts:
|
68
|
+
title: Layouts
|
69
|
+
metadata: Metadata
|
70
|
+
tabs:
|
71
|
+
main:
|
62
72
|
tab:
|
63
73
|
edit: Edit
|
64
|
-
|
65
|
-
|
66
|
-
layouts:
|
74
|
+
media: Media
|
75
|
+
metadata: Metadata
|
67
76
|
index:
|
68
77
|
card:
|
69
78
|
nuntius_admin_layouts:
|
70
|
-
title: Layouts
|
71
79
|
tab:
|
72
80
|
Nuntius layouts: Layouts
|
81
|
+
title: Layouts
|
82
|
+
lists:
|
73
83
|
edit:
|
74
84
|
card:
|
75
|
-
|
76
|
-
title:
|
85
|
+
nuntius_admin_lists:
|
86
|
+
title: Lists
|
87
|
+
description_hint: Describe the list in detail for the subscribers, explain if they can unsubscribe, how often they will receive messages, etc.
|
88
|
+
tabs:
|
89
|
+
main:
|
77
90
|
tab:
|
78
91
|
edit: Edit
|
79
|
-
|
80
|
-
media: Media
|
81
|
-
metadata: Metadata
|
82
|
-
locales:
|
92
|
+
subscribers: Abonnees
|
83
93
|
index:
|
84
94
|
card:
|
85
|
-
|
86
|
-
title:
|
87
|
-
|
88
|
-
|
95
|
+
nuntius_admin_lists:
|
96
|
+
title: Lists
|
97
|
+
subscribers:
|
98
|
+
edit:
|
99
|
+
subscribers: Subscribers
|
100
|
+
locales:
|
89
101
|
edit:
|
90
102
|
card:
|
91
103
|
nuntius_admin_locales:
|
92
104
|
title: Locales
|
93
105
|
data: Data
|
94
106
|
metadata: Metadata
|
95
|
-
campaigns:
|
96
107
|
index:
|
97
108
|
card:
|
98
|
-
|
99
|
-
title: Campaigns
|
109
|
+
nuntius_admin_locales:
|
100
110
|
tab:
|
101
|
-
Nuntius
|
102
|
-
|
103
|
-
|
104
|
-
nuntius_admin_campaigns:
|
105
|
-
title: Campaigns
|
106
|
-
lists:
|
107
|
-
subscribers:
|
108
|
-
edit:
|
109
|
-
subscribers: Subscribers
|
111
|
+
Nuntius locales: Locales
|
112
|
+
title: Locales
|
113
|
+
messages:
|
110
114
|
index:
|
111
115
|
card:
|
112
|
-
|
113
|
-
|
116
|
+
nuntius_admin_messages:
|
117
|
+
tab:
|
118
|
+
Nuntius messages: Messages
|
119
|
+
title: Messages
|
120
|
+
resend:
|
121
|
+
resend_error: Failed to resend message
|
122
|
+
resend_success: Resent message
|
123
|
+
show:
|
124
|
+
card:
|
125
|
+
nuntius_admin_messages:
|
126
|
+
info_item:
|
127
|
+
main:
|
128
|
+
created_at: Created At
|
129
|
+
from: From
|
130
|
+
html: HTML
|
131
|
+
last_sent_at: Last Sent At
|
132
|
+
provider: Provider
|
133
|
+
provider_id: Provider ID
|
134
|
+
refreshes: Refreshes
|
135
|
+
request_id: Request ID
|
136
|
+
status: Status
|
137
|
+
subject: Subject
|
138
|
+
to: To
|
139
|
+
transport: Transport
|
140
|
+
message:
|
141
|
+
tabs:
|
142
|
+
main:
|
114
143
|
tab:
|
115
|
-
|
144
|
+
details: Details
|
145
|
+
preview: Preview
|
146
|
+
templates:
|
116
147
|
edit:
|
117
|
-
description: List description
|
118
|
-
description_hint: Describe the list in detail for the subscribers, explain if they can unsubscribe, how often they will receive messages, etc.
|
119
148
|
card:
|
120
|
-
|
121
|
-
title:
|
149
|
+
nuntius_admin_templates:
|
150
|
+
title: Template
|
151
|
+
metadata: Metadata
|
152
|
+
tabs:
|
153
|
+
main:
|
122
154
|
tab:
|
123
155
|
edit: Edit
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
156
|
+
messages: Messages
|
157
|
+
index:
|
158
|
+
card:
|
159
|
+
nuntius_admin_templates:
|
160
|
+
tab:
|
161
|
+
Nuntius templates: Templates
|
162
|
+
title: Templates
|
163
|
+
context_menu:
|
164
|
+
resend: Resend
|
165
|
+
root: Root
|
data/config/locales/nl.yml
CHANGED
@@ -1,133 +1,166 @@
|
|
1
1
|
nl:
|
2
|
+
choose_files: Kies bestanden
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
nuntius/campaign:
|
6
|
+
from: Van
|
7
|
+
layout: Layout
|
8
|
+
list: Lijst
|
9
|
+
name: Naam
|
10
|
+
state: Staat
|
11
|
+
subject: Onderwerp
|
12
|
+
transport: Transport
|
13
|
+
nuntius/layout:
|
14
|
+
name: Naam
|
15
|
+
nuntius/list:
|
16
|
+
allow_unsubscribe: Uitschrijven toestaan
|
17
|
+
description: Omschrijving
|
18
|
+
name: Naam
|
19
|
+
slug: Slug
|
20
|
+
subscribers_count: Aantal abonnees
|
21
|
+
nuntius/template:
|
22
|
+
description: Omschrijving
|
23
|
+
enabled: Ingeschakeld
|
24
|
+
event: Gebeurtenis
|
25
|
+
from: Van
|
26
|
+
klass: Klasse
|
27
|
+
subject: Onderwerp
|
28
|
+
to: Aan
|
29
|
+
transport: Transport
|
30
|
+
models:
|
31
|
+
campaign: Campagne
|
32
|
+
layout: Layout
|
33
|
+
list: Lijst
|
34
|
+
message: Bericht
|
35
|
+
subscriber: Abonnee
|
36
|
+
template: Template
|
2
37
|
menu:
|
3
38
|
nuntius:
|
4
|
-
templates:
|
5
|
-
new: Nieuwe template
|
6
|
-
layouts:
|
7
|
-
new: Nieuwe layout
|
8
|
-
locales:
|
9
|
-
new: Nieuwe locale
|
10
39
|
campaigns:
|
11
|
-
new: Nieuwe campagne
|
12
40
|
lists: Lijsten
|
41
|
+
new: Nieuwe campagne
|
42
|
+
layouts:
|
43
|
+
new: Nieuwe layout
|
13
44
|
lists:
|
14
45
|
new: Nieuwe lijst
|
15
46
|
new_subscriber: Nieuwe abonnee
|
47
|
+
locales:
|
48
|
+
new: Nieuwe locale
|
49
|
+
templates:
|
50
|
+
new: Nieuwe template
|
16
51
|
nuntius:
|
17
|
-
flash:
|
18
|
-
error: Er waren problem om %{model} op te slaan
|
19
|
-
notice: De %{model} is sucesvol opgeslagen
|
20
|
-
context_menu:
|
21
|
-
root: Root
|
22
|
-
resend: Verstuur opnieuw
|
23
52
|
admin:
|
24
|
-
|
25
|
-
|
26
|
-
resend_success: Bericht opnieuw verstuurd
|
27
|
-
resend_error: Het is niet gelukt het bericht opnieuw te sturen
|
28
|
-
index:
|
29
|
-
card:
|
30
|
-
nuntius_admin_messages:
|
31
|
-
title: Berichten
|
32
|
-
tab:
|
33
|
-
Nuntius messages: Berichten
|
34
|
-
show:
|
35
|
-
message: Message
|
53
|
+
campaigns:
|
54
|
+
edit:
|
36
55
|
card:
|
37
|
-
|
38
|
-
|
39
|
-
main:
|
40
|
-
tab:
|
41
|
-
preview: Preview
|
42
|
-
details: Details
|
43
|
-
info_item:
|
44
|
-
main:
|
45
|
-
status: Status
|
46
|
-
transport: Transport
|
47
|
-
provider: Provider
|
48
|
-
provider_id: Provider ID
|
49
|
-
request_id: Request ID
|
50
|
-
refreshes: Refreshes
|
51
|
-
last_sent_at: Last Sent At
|
52
|
-
created_at: Created At
|
53
|
-
templates:
|
56
|
+
nuntius_admin_campaigns:
|
57
|
+
title: Campagne
|
54
58
|
index:
|
55
59
|
card:
|
56
|
-
|
57
|
-
title: Templates
|
60
|
+
nuntius_admin_campaigns:
|
58
61
|
tab:
|
59
|
-
Nuntius
|
62
|
+
Nuntius campaigns: Campagnes
|
63
|
+
title: Campagnes
|
64
|
+
layouts:
|
60
65
|
edit:
|
61
66
|
card:
|
62
|
-
|
63
|
-
title:
|
67
|
+
nuntius_admin_layouts:
|
68
|
+
title: Layouts
|
69
|
+
metadata: Metadata
|
64
70
|
tabs:
|
65
71
|
main:
|
66
72
|
tab:
|
67
|
-
edit:
|
68
|
-
|
69
|
-
|
70
|
-
|
73
|
+
edit: Edit
|
74
|
+
media: Media
|
75
|
+
metadata: Metadata
|
76
|
+
templates: Templates
|
71
77
|
index:
|
72
78
|
card:
|
73
79
|
nuntius_admin_layouts:
|
74
|
-
title: Layouts
|
75
80
|
tab:
|
76
81
|
Nuntius layouts: Layouts
|
82
|
+
title: Layouts
|
83
|
+
lists:
|
77
84
|
edit:
|
78
85
|
card:
|
79
|
-
|
80
|
-
title:
|
86
|
+
nuntius_admin_lists:
|
87
|
+
title: Lijsten
|
88
|
+
description_hint: Omschrijf de list in detail voor abonnees, leg uit of ze kunnen uitschrijven, hoe veel en hoe vaak berichten ze berichten ontvangen, etc.
|
81
89
|
tabs:
|
82
90
|
main:
|
83
91
|
tab:
|
84
92
|
edit: Edit
|
85
|
-
|
86
|
-
media: Media
|
87
|
-
|
88
|
-
metadata: Metadata
|
89
|
-
locales:
|
93
|
+
subscribers: Abonnees
|
90
94
|
index:
|
91
95
|
card:
|
92
|
-
|
93
|
-
title:
|
94
|
-
|
95
|
-
|
96
|
+
nuntius_admin_lists:
|
97
|
+
title: Lijsten
|
98
|
+
subscribers:
|
99
|
+
edit:
|
100
|
+
subscribers: Abonnees
|
101
|
+
locales:
|
96
102
|
edit:
|
97
103
|
card:
|
98
104
|
nuntius_admin_locales:
|
99
105
|
title: Locales
|
100
106
|
data: Data
|
101
107
|
metadata: Metadata
|
102
|
-
campaigns:
|
103
108
|
index:
|
104
109
|
card:
|
105
|
-
|
106
|
-
title: Campaigns
|
110
|
+
nuntius_admin_locales:
|
107
111
|
tab:
|
108
|
-
Nuntius
|
109
|
-
|
110
|
-
|
111
|
-
nuntius_admin_campaigns:
|
112
|
-
title: Campaigns
|
113
|
-
lists:
|
114
|
-
subscribers:
|
115
|
-
edit:
|
116
|
-
subscribers: Subscribers
|
112
|
+
Nuntius locales: Locales
|
113
|
+
title: Locales
|
114
|
+
messages:
|
117
115
|
index:
|
118
116
|
card:
|
119
|
-
|
120
|
-
title: Lists
|
117
|
+
nuntius_admin_messages:
|
121
118
|
tab:
|
122
|
-
Nuntius
|
119
|
+
Nuntius messages: Berichten
|
120
|
+
title: Berichten
|
121
|
+
resend:
|
122
|
+
resend_error: Het is niet gelukt het bericht opnieuw te sturen
|
123
|
+
resend_success: Bericht opnieuw verstuurd
|
124
|
+
show:
|
125
|
+
card:
|
126
|
+
nuntius_admin_messages:
|
127
|
+
info_item:
|
128
|
+
main:
|
129
|
+
created_at: Created At
|
130
|
+
from: Van
|
131
|
+
html: HTML
|
132
|
+
last_sent_at: Last Sent At
|
133
|
+
provider: Provider
|
134
|
+
provider_id: Provider ID
|
135
|
+
refreshes: Refreshes
|
136
|
+
request_id: Request ID
|
137
|
+
status: Status
|
138
|
+
subject: Onderwerp
|
139
|
+
to: Aan
|
140
|
+
transport: Transport
|
141
|
+
message: Message
|
142
|
+
tabs:
|
143
|
+
main:
|
144
|
+
tab:
|
145
|
+
details: Details
|
146
|
+
preview: Preview
|
147
|
+
templates:
|
123
148
|
edit:
|
124
|
-
description: List description
|
125
|
-
description_hint: Describe the list in detail for the subscibers, explain if they can unsubscribe, how often they will receive messages, etc.
|
126
149
|
card:
|
127
|
-
|
128
|
-
title:
|
150
|
+
nuntius_admin_templates:
|
151
|
+
title: Template
|
152
|
+
metadata: Metadata
|
129
153
|
tabs:
|
130
154
|
main:
|
131
155
|
tab:
|
132
|
-
edit:
|
133
|
-
|
156
|
+
edit: Bewerk
|
157
|
+
messages: Berichten
|
158
|
+
index:
|
159
|
+
card:
|
160
|
+
nuntius_admin_templates:
|
161
|
+
tab:
|
162
|
+
Nuntius templates: Templates
|
163
|
+
title: Templates
|
164
|
+
context_menu:
|
165
|
+
resend: Verstuur opnieuw
|
166
|
+
root: Root
|
data/lib/nuntius/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nuntius
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apnotic
|
@@ -514,9 +514,6 @@ files:
|
|
514
514
|
- app/validators/liquid_validator.rb
|
515
515
|
- app/views/nuntius/admin/campaigns/edit.html.slim
|
516
516
|
- app/views/nuntius/admin/campaigns/index.html.slim
|
517
|
-
- app/views/nuntius/admin/layouts/attachments/_attachments.html.slim
|
518
|
-
- app/views/nuntius/admin/layouts/attachments/_index.html.slim
|
519
|
-
- app/views/nuntius/admin/layouts/attachments/create.json.jbuilder
|
520
517
|
- app/views/nuntius/admin/layouts/edit.html.slim
|
521
518
|
- app/views/nuntius/admin/layouts/index.html.slim
|
522
519
|
- app/views/nuntius/admin/lists/edit.html.slim
|
@@ -1,28 +0,0 @@
|
|
1
|
-
- attachments.each do |attachment|
|
2
|
-
li.relative
|
3
|
-
/! Current: "ring-2 ring-offset-2 ring-indigo-500", Default: "focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-offset-gray-100 focus-within:ring-indigo-500"
|
4
|
-
.group.block.w-full.aspect-w-10.aspect-h-7.rounded-lg.bg-gray-100.overflow-hidden
|
5
|
-
/! Current: "", Default: "group-hover:opacity-75"
|
6
|
-
- if attachment.previewable?
|
7
|
-
= image_tag attachment.preview(resize_to_limit: [500, 500]).url, class: 'object-cover pointer-events-none'
|
8
|
-
- elsif attachment.image?
|
9
|
-
= image_tag main_app.url_for(attachment.variant(resize_to_limit: [500, 500])), class: 'object-cover pointer-events-none'
|
10
|
-
p.mt-2.block.text-sm.font-medium.text-gray-900.truncate.pointer-events-none = attachment.filename
|
11
|
-
p.block.text-sm.font-medium.text-gray-500
|
12
|
-
= (attachment.blob.byte_size / 1048576.0).round(2)
|
13
|
-
' MB
|
14
|
-
= link_to admin_layout_attachment_path(@layout, attachment.id), data: { controller: 'attachment-delete', 'action': 'attachment-delete#delete' } do
|
15
|
-
i.fal.fa-xmark
|
16
|
-
=< link_to(main_app.rails_blob_path(attachment, disposition: 'attachment'),
|
17
|
-
title: attachment.filename)
|
18
|
-
i.fal.fa-download
|
19
|
-
|
20
|
-
/ This controller comes from papyrus
|
21
|
-
li.relative.attachment-upload data-controller="attachment-upload" data-attachment-upload-url="#{upload_url}" data-attachment-upload-param-name="attachments[]" data-attachment-upload-extra-data='{}'
|
22
|
-
.group.block.w-full.aspect-w-10.aspect-h-7.rounded-lg.bg-gray-100.overflow-hidden.text-center.align-middle style="height: 200px;"
|
23
|
-
span.icon.upload
|
24
|
-
i.fal.fa-4x.fa-upload.pt-16
|
25
|
-
span.icon.uploading
|
26
|
-
i.fal.fa-4x.fa-circle-notch.fa-spin.pt-16
|
27
|
-
|
28
|
-
p.mt-2.block.text-sm.font-medium.text-gray-500.truncate.pointer-events-none Drag or click to attach files
|
@@ -1,2 +0,0 @@
|
|
1
|
-
ul.attachments.grid.grid-cols-2.gap-x-4.gap-y-8.sm:grid-cols-3.sm:gap-x-6.md:grid-cols-4.lg:grid-cols-3.xl:grid-cols-4.xl:gap-x-8 role="list"
|
2
|
-
= render partial: 'nuntius/admin/layouts/attachments/attachments', locals: { attachments: @layout.attachments, upload_url: admin_layout_attachments_path(@layout) }
|