workarea-admin 3.4.14 → 3.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/workarea/admin/releases_controller.rb +1 -1
- data/app/helpers/workarea/admin/activities_helper.rb +5 -2
- data/app/views/workarea/admin/activities/_create.html.haml +9 -0
- data/app/views/workarea/admin/activities/_destroy.html.haml +9 -0
- data/app/views/workarea/admin/activities/_update.html.haml +9 -0
- data/config/locales/en.yml +5 -2
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc6faa045044095ea617acf48ea249bddd715129080c325b940af2428e7a762b
|
4
|
+
data.tar.gz: 1e90bc9cc07134bdcbcddaca35758e4e26cc2bff2f87e97df2386111c2fa9a17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bae6197d26b13d91c1789fe1cdd3685b15ce8f934fc2dd3af939424b40fb118cef18fcce3715abb0755639ba9e113e8108ab1f5fe2ba3bd1e11e96926c99108b
|
7
|
+
data.tar.gz: cf4cc417f7818e0b261b777bb1cd8b7eb5aac5f67c208e327d6a70ee388140f2cea437709887126bec0cf69fb61217cb580a7910ff5ab7f6a83ccf3b094b2df4
|
@@ -5,9 +5,8 @@ module Workarea
|
|
5
5
|
model_key = ActiveModel::Naming.param_key(entry.audited_type.constantize)
|
6
6
|
partial_name = "#{model_key}_#{entry.action}"
|
7
7
|
render "workarea/admin/activities/#{partial_name}", entry: entry
|
8
|
-
|
9
8
|
rescue ActionView::MissingTemplate
|
10
|
-
|
9
|
+
render "workarea/admin/activities/#{entry.action}", entry: entry
|
11
10
|
end
|
12
11
|
|
13
12
|
def render_activity_category_value(attributes)
|
@@ -56,6 +55,10 @@ module Workarea
|
|
56
55
|
end
|
57
56
|
end
|
58
57
|
|
58
|
+
def activity_model_name(entry)
|
59
|
+
entry.audited_type.gsub(/Workarea::/, '').gsub(/::/, ' ')
|
60
|
+
end
|
61
|
+
|
59
62
|
def link_to_restore_for(entry)
|
60
63
|
if entry.restorable? && current_user.can_restore?
|
61
64
|
link_to(
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.activity
|
2
|
+
.activity__header
|
3
|
+
.activity__avatar
|
4
|
+
= link_to_modifier(entry) do
|
5
|
+
= avatar_for entry.modifier
|
6
|
+
%h3.activity__name= link_to_modifier(entry)
|
7
|
+
%p.activity__time= activity_time(entry.created_at)
|
8
|
+
.activity__message
|
9
|
+
= t('workarea.admin.activities.generic_create_html', model: activity_model_name(entry), id: entry.audited_id)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.activity
|
2
|
+
.activity__header
|
3
|
+
.activity__avatar
|
4
|
+
= link_to_modifier(entry) do
|
5
|
+
= avatar_for entry.modifier
|
6
|
+
%h3.activity__name= link_to_modifier(entry)
|
7
|
+
%p.activity__time= activity_time(entry.created_at)
|
8
|
+
.activity__message
|
9
|
+
= t('workarea.admin.activities.generic_destroy_html', model: activity_model_name(entry), id: entry.audited_id)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.activity
|
2
|
+
.activity__header
|
3
|
+
.activity__avatar
|
4
|
+
= link_to_modifier(entry) do
|
5
|
+
= avatar_for entry.modifier
|
6
|
+
%h3.activity__name= link_to_modifier(entry)
|
7
|
+
%p.activity__time= activity_time(entry.created_at)
|
8
|
+
.activity__message
|
9
|
+
= t('workarea.admin.activities.generic_update_html', model: activity_model_name(entry), id: entry.audited_id)
|
data/config/locales/en.yml
CHANGED
@@ -58,6 +58,9 @@ en:
|
|
58
58
|
filters:
|
59
59
|
all_types: all types of
|
60
60
|
everyone: everyone
|
61
|
+
generic_create_html: created %{model} %{id}
|
62
|
+
generic_update_html: updated %{model} %{id}
|
63
|
+
generic_destroy_html: removed %{model} %{id}
|
61
64
|
help_article_create_html: created the %{name} help article
|
62
65
|
help_article_destroy_html: removed the %{name} help article
|
63
66
|
help_article_update_html: updated %{fields} on the %{name} help article
|
@@ -2864,7 +2867,7 @@ en:
|
|
2864
2867
|
tags_note: 'Comma separated: just, like, this'
|
2865
2868
|
undo_at: Undo at
|
2866
2869
|
flash_messages:
|
2867
|
-
published: Your release has been published.
|
2870
|
+
published: Your release has been published. It may take a few moments to apply changes.
|
2868
2871
|
removed: This release has been removed
|
2869
2872
|
reverted: Your release has been reverted.
|
2870
2873
|
saved: Your release has been saved.
|
@@ -3460,7 +3463,7 @@ en:
|
|
3460
3463
|
index:
|
3461
3464
|
main_dashboard: Main dashboard
|
3462
3465
|
title: Trash
|
3463
|
-
description: Here you can see things that have been deleted
|
3466
|
+
description: Here you can see things that have been deleted. Items will stay in the trash for three months. Some items can be restored.
|
3464
3467
|
empty: There's currently no trash to show. Go delete something!
|
3465
3468
|
'true': 'Yes'
|
3466
3469
|
users:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea-core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.4.
|
19
|
+
version: 3.4.15
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.4.
|
26
|
+
version: 3.4.15
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: workarea-storefront
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.4.
|
33
|
+
version: 3.4.15
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.4.
|
40
|
+
version: 3.4.15
|
41
41
|
description: Provides site administration functionality for the Workarea Commerce
|
42
42
|
Platform.
|
43
43
|
email:
|
@@ -637,6 +637,8 @@ files:
|
|
637
637
|
- app/views/workarea/admin/activities/_content_page_destroy.html.haml
|
638
638
|
- app/views/workarea/admin/activities/_content_page_update.html.haml
|
639
639
|
- app/views/workarea/admin/activities/_content_update.html.haml
|
640
|
+
- app/views/workarea/admin/activities/_create.html.haml
|
641
|
+
- app/views/workarea/admin/activities/_destroy.html.haml
|
640
642
|
- app/views/workarea/admin/activities/_help_article_create.html.haml
|
641
643
|
- app/views/workarea/admin/activities/_help_article_destroy.html.haml
|
642
644
|
- app/views/workarea/admin/activities/_help_article_update.html.haml
|
@@ -684,6 +686,7 @@ files:
|
|
684
686
|
- app/views/workarea/admin/activities/_tax_rate_create.html.haml
|
685
687
|
- app/views/workarea/admin/activities/_tax_rate_destroy.html.haml
|
686
688
|
- app/views/workarea/admin/activities/_tax_rate_update.html.haml
|
689
|
+
- app/views/workarea/admin/activities/_update.html.haml
|
687
690
|
- app/views/workarea/admin/activities/_user_update.html.haml
|
688
691
|
- app/views/workarea/admin/activities/show.html.haml
|
689
692
|
- app/views/workarea/admin/bulk_action_deletions/_form.html.haml
|