nuntius 1.3.13 → 1.3.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5f1f8dfbe981e6b050defc2deab5bf5b6f3e90723c3225796dceea835a35628
|
4
|
+
data.tar.gz: 0064b3c9ed18fd4f52c5c3eb3376126618e462a826c5d61d122435e071f7dc80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f78bbb4356a2e6bff3c94ae7d06881277c78d7b9abe3f94ffd7ff5d030cfbc3d415c4da396809983a4da76ff4436fc5e24333ec963d2c509aeb0fe478583047
|
7
|
+
data.tar.gz: f5134e2020e4c1c89790b1cf02d1b1a8bae1f7988d4833384257051e48ba15bee17062a2ca812162c74ecf95a300c7639b953c0d83849b7242c54a0ac6fc9df2
|
@@ -21,22 +21,7 @@
|
|
21
21
|
- card.with_tab:media, padding: true
|
22
22
|
.grid.grid-cols-4.gap-4
|
23
23
|
.col-span-4
|
24
|
-
= f.
|
25
|
-
ul.col-span-4
|
26
|
-
- @layout.attachments.each do |attachment|
|
27
|
-
li.col-span-1
|
28
|
-
- if attachment.previewable?
|
29
|
-
= image_tag attachment.preview(resize_to_limit: [500, 500]).url, class: 'object-cover pointer-events-none'
|
30
|
-
- elsif attachment.image?
|
31
|
-
= image_tag main_app.url_for(attachment.variant(resize_to_limit: [500, 500])), class: 'object-cover pointer-events-none'
|
32
|
-
= (attachment.blob.byte_size / 1048576.0).round(2)
|
33
|
-
' MB
|
34
|
-
= link_to admin_layout_attachment_path(@layout, attachment.id), data: { controller: 'attachment-delete', 'action': 'attachment-delete#delete' } do
|
35
|
-
i.fas.fa-xmark
|
36
|
-
=< link_to(main_app.rails_blob_path(attachment, disposition: 'attachment'),
|
37
|
-
title: attachment.filename)
|
38
|
-
i.fas.fa-download
|
39
|
-
code.text-xs = sts.copyable main_app.rails_blob_url(attachment)
|
24
|
+
= f.attachments :layout
|
40
25
|
|
41
26
|
- if @layout.templates.exists?
|
42
27
|
- card.with_tab :templates, padding: false
|
data/config/routes.rb
CHANGED
@@ -30,7 +30,7 @@ Nuntius::Engine.routes.draw do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
resources :layouts do
|
33
|
-
resources :attachments, controller: "
|
33
|
+
resources :attachments, controller: "satis/attachments"
|
34
34
|
end
|
35
35
|
resources :lists do
|
36
36
|
resources :subscribers, controller: "lists/subscribers"
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apnotic
|
@@ -442,7 +442,6 @@ files:
|
|
442
442
|
- Rakefile
|
443
443
|
- app/assets/stylesheets/nuntius/application.css
|
444
444
|
- app/controllers/nuntius/admin/campaigns_controller.rb
|
445
|
-
- app/controllers/nuntius/admin/layouts/attachments_controller.rb
|
446
445
|
- app/controllers/nuntius/admin/layouts_controller.rb
|
447
446
|
- app/controllers/nuntius/admin/lists/subscribers_controller.rb
|
448
447
|
- app/controllers/nuntius/admin/lists_controller.rb
|
@@ -593,7 +592,7 @@ homepage: https://github.com/entdec/nuntius
|
|
593
592
|
licenses:
|
594
593
|
- MIT
|
595
594
|
metadata: {}
|
596
|
-
post_install_message:
|
595
|
+
post_install_message:
|
597
596
|
rdoc_options: []
|
598
597
|
require_paths:
|
599
598
|
- lib
|
@@ -609,7 +608,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
609
608
|
version: '0'
|
610
609
|
requirements: []
|
611
610
|
rubygems_version: 3.4.10
|
612
|
-
signing_key:
|
611
|
+
signing_key:
|
613
612
|
specification_version: 4
|
614
613
|
summary: Messaging and notification for Ruby on Rails
|
615
614
|
test_files: []
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Nuntius
|
4
|
-
module Admin
|
5
|
-
module Layouts
|
6
|
-
class AttachmentsController < ApplicationController
|
7
|
-
before_action :set_objects
|
8
|
-
|
9
|
-
def index
|
10
|
-
end
|
11
|
-
|
12
|
-
def create
|
13
|
-
params[:attachments].each do |file|
|
14
|
-
@layout.attachments.attach(file)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def destroy
|
19
|
-
attachment = @layout.attachments.find_by(id: params[:id])
|
20
|
-
attachment&.purge
|
21
|
-
|
22
|
-
render :create
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def set_objects
|
28
|
-
@layout = Nuntius::Layout.visible.find(params[:layout_id]) if params[:layout_id]
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|