nuntius 1.3.13 → 1.3.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 584da021b4c681fe277c840dcd4e99dfa2731c3fe4c710dcdfe62734a4c712f4
4
- data.tar.gz: 299d1b4f70ae9505b1ec9b78f750020d4cc9bb0319074b8b1cd0033710a27a9c
3
+ metadata.gz: 48482781d31d76c7c5ac8c9d8091b4141a14da1db2fcf56e47a655052959099c
4
+ data.tar.gz: 3e3e3e2d2ce7e3f93daa2fd849fdbace1ae8fd98705476d5b011899ff5f90bd5
5
5
  SHA512:
6
- metadata.gz: 5120c360d5250177e4b4eb891901200976caddd11f09f8ad6512f345c7f2e8dc0d47cbf77d9e83297593886b8024f9f8de1b84b484af21b50bb0b6ab92537a11
7
- data.tar.gz: ae5eb23e49a3548ecdd528495f9610232afdf5bc0ab7f571aa391cdc588c514f4de6e96e661e3c40a484a7687cc53edd5e05649d98ada49edfd46c1469d3e4ef
6
+ metadata.gz: 36537a68d2ecbb1c1579c8252e74e5e1de244e1c2d1a40151c8e3fcdceb7f8898cecfe54a694829747703c10588c09d3428d24cde74427537cc6586e7d045ec9
7
+ data.tar.gz: 800d3ee1aea86ffc7d7762979f9c859a60fbd40e2ffedb2aa66d25b8597e4cc444b5d660c6ebc17a053b8d9d13b567bd84159c6d8fa19c22309ee9607a3a86b1
@@ -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.input :attachments, as: :file, multiple: true
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: "layouts/attachments"
33
+ resources :attachments, controller: "satis/attachments"
34
34
  end
35
35
  resources :lists do
36
36
  resources :subscribers, controller: "lists/subscribers"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nuntius
4
- VERSION = "1.3.13"
4
+ VERSION = "1.3.15"
5
5
  end
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.13
4
+ version: 1.3.15
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: 2024-11-12 00:00:00.000000000 Z
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