web47core 3.2.55 → 3.2.57

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: 6a9b992b981d24413bc5d9159d830ce50bf87d080fd0bb0e17cfbbe871e6aed2
4
- data.tar.gz: 56c7d8cc94dd0f1e4f55cebb18834bf4818e7bedfd25ad7eaae0f5ac26b36377
3
+ metadata.gz: c41ef7de095d32d37d54b9a0b9c758c73793972eb58f9e86fa3eaa5a3238de24
4
+ data.tar.gz: 6c1f442be0790c3f48dd5c427b9617fd2f042432c898e94a2a4e3fe48ebecf2b
5
5
  SHA512:
6
- metadata.gz: 44b5502805eb0661484a2943f82cd96203a3365909a48d5ee2c8c3f26915212d711c650ca3ee967c630db3637327f828b5a053463c22b95a1ea77e39dc706223
7
- data.tar.gz: 99d587aeb5b9e687a4558d21cc8815e95ac926d6f0b2d0df2991a77c27eb414ed9fe8b384d253bc11086989cfc5cfb5048776cd0bf22ece2fb6338cb0cbbe632
6
+ metadata.gz: e83ffd993fb5016922fc60274d77323466202a42fe8d7385a000769636a30f969c0b3aa4e616c82b5109462a6fac7cbb00c64aab28343b10e7690a5c5cfcad64
7
+ data.tar.gz: fc29a69df1b6c49e9e88b7c6dc38a24d0eb8f9e2cbd13bebe0821100fef9be136db06d08e957275fb4f742157476e26922d77d6f40e0c64f1a59682d41c2c77f
@@ -0,0 +1 @@
1
+ <path d="M19 9c.513 0 .936 .463 .993 1.06l.007 .14v7.2c0 1.917 -1.249 3.484 -2.824 3.594l-.176 .006h-10c-1.598 0 -2.904 -1.499 -2.995 -3.388l-.005 -.212v-7.2c0 -.663 .448 -1.2 1 -1.2h14zm-5 2h-4l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h4l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z" />
@@ -0,0 +1 @@
1
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" /><path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" /><path d="M10 12l4 0" />
@@ -0,0 +1 @@
1
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" /><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M14 4l0 4l-6 0l0 -4" />
@@ -62,6 +62,11 @@ en:
62
62
  promote: thumb-up-outline
63
63
  recycle: recycle
64
64
  restore: restore
65
+ archive: archive
66
+ cancel: cancel
67
+ save: device-floppy
68
+ update: device-floppy
69
+ create: device-floppy
65
70
  system_configurations:
66
71
  show:
67
72
  title: "%{name} System Configuration"
@@ -54,9 +54,14 @@ module ArchiveAble
54
54
  def unarchived?
55
55
  !archived?
56
56
  end
57
- alias edit_able? unarchived?
58
- alias destroy_able? unarchived?
59
- alias delete_able? unarchived?
57
+
58
+ def edit_able?
59
+ super && unarchived?
60
+ end
61
+
62
+ def delete_able?
63
+ super && unarchived?
64
+ end
60
65
 
61
66
  # @abstract Archive the object
62
67
  # @param [Member|User] actor - the thing performing the action
@@ -346,4 +346,18 @@ module StandardModel
346
346
  send("#{name}=", attr.strip) if attr.respond_to?(:strip)
347
347
  end
348
348
  end
349
+
350
+ # @abstract if this object is deletable
351
+ # @return [Boolean] true if deletable, false otherwise
352
+ def delete_able?
353
+ true
354
+ end
355
+ alias destroy_able? delete_able?
356
+
357
+ # @abstract if this object is editable
358
+ # @return [Boolean] true if editable, false otherwise
359
+ def edit_able?
360
+ true
361
+ end
362
+ alias update_able? edit_able?
349
363
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.55'
4
+ VERSION = '3.2.57'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.55
4
+ version: 3.2.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
@@ -553,6 +553,8 @@ files:
553
553
  - app/views/delayed_job_workers/index.html.haml
554
554
  - app/views/delayed_jobs/index.html.haml
555
555
  - app/views/delayed_jobs/show.html.haml
556
+ - app/views/icons/_archive-filled.html.erb
557
+ - app/views/icons/_archive-outline.html.erb
556
558
  - app/views/icons/_bed-filled.html.erb
557
559
  - app/views/icons/_bed-outline.html.erb
558
560
  - app/views/icons/_binary-tree-2.html.erb
@@ -560,6 +562,7 @@ files:
560
562
  - app/views/icons/_check.html.erb
561
563
  - app/views/icons/_circle-plus-filled.html.erb
562
564
  - app/views/icons/_circle-plus-outline.html.erb
565
+ - app/views/icons/_device-floppy.html.erb
563
566
  - app/views/icons/_dots-vertical.html.erb
564
567
  - app/views/icons/_edit.html.erb
565
568
  - app/views/icons/_heartbeat.html.erb