effective_logging 4.4.4 → 4.4.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/views/effective/logs/_log.html.haml +37 -36
- data/lib/effective_logging/version.rb +1 -1
- metadata +2 -6
- data/app/views/admin/logs/index.html.haml +0 -4
- data/app/views/admin/logs/show.html.haml +0 -4
- data/app/views/effective/logs/index.html.haml +0 -4
- data/app/views/effective/logs/show.html.haml +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cafa267f34f454af4a3766cadb7a9ea1d60f15f1db0d15d137a61479cd30a4f7
|
|
4
|
+
data.tar.gz: eb1892c043cfba3878a34e65211ae64ba69e373b35d2330b6e7d53154866ce0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2811467f4b2e267ae26d763bb4c0486ff46b67dbf44ef9ee73a90605356c669f373875229bab087ad6eaf91760abab10267871c02663e9d73127ceac129c2356
|
|
7
|
+
data.tar.gz: 1e9a7556890295e69f1bb89f70668be04584e19762812b866290ef0e684ed382cad4472c65a91d2bf1eded39bd5d25ffce6071b74debacdd140680c1fd98a53a
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
%
|
|
1
|
+
- content_for :resource_buttons do
|
|
2
|
+
- prev_log = log.prev_log
|
|
3
|
+
- next_log = log.next_log
|
|
4
|
+
|
|
5
|
+
- if prev_log.present?
|
|
6
|
+
= link_to 'Prev', request.fullpath.sub('/' + log.to_param, '/' + prev_log.to_param), class: 'btn btn-primary'
|
|
7
|
+
|
|
8
|
+
- if next_log.present?
|
|
9
|
+
= link_to 'Next', request.fullpath.sub('/' + log.to_param, '/' + next_log.to_param), class: 'btn btn-primary'
|
|
10
|
+
|
|
11
|
+
.card.card-effective-logging
|
|
12
|
+
.card-body
|
|
13
|
+
%p= log.message.to_s.gsub("\n", '<br>').html_safe
|
|
14
|
+
|
|
15
|
+
%hr.my-4
|
|
16
|
+
|
|
17
|
+
%h4.card-title Details
|
|
18
|
+
%table.table.table-sm.table-striped
|
|
19
|
+
%tr
|
|
20
|
+
%th
|
|
21
21
|
- status_class = bootstrap_class_for_status(log.status)
|
|
22
22
|
%span{class: (defined?(EffectiveBootstrap) ? "badge badge-#{status_class}" : "label label-#{status_class}")}= log.status
|
|
23
|
-
|
|
23
|
+
%td
|
|
24
24
|
= log.created_at.strftime("%F %H:%M:%S")
|
|
25
25
|
= '(' + time_ago_in_words(log.created_at) + ' ago)'
|
|
26
26
|
|
|
27
|
-
.col-md-6
|
|
28
27
|
- if log.user.present?
|
|
29
|
-
%
|
|
30
|
-
%
|
|
31
|
-
|
|
28
|
+
%tr
|
|
29
|
+
%th
|
|
30
|
+
User
|
|
31
|
+
%td
|
|
32
|
+
= log.user
|
|
32
33
|
|
|
33
34
|
- if log.associated_id.present? && log.associated_type.present? && (log.associated.present? rescue false)
|
|
34
|
-
%
|
|
35
|
-
%
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
%tr
|
|
36
|
+
%th Associated
|
|
37
|
+
%td
|
|
38
|
+
- if log.associated.to_s.starts_with?('#<')
|
|
39
|
+
= log.associated.class.name
|
|
40
|
+
= log.associated.to_param
|
|
41
|
+
- else
|
|
42
|
+
= log.associated
|
|
40
43
|
|
|
41
44
|
- log.details.each do |key, value|
|
|
42
45
|
- next unless value.present?
|
|
43
|
-
.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
%strong= "#{key.to_s.titleize}:"
|
|
47
|
-
= format_log_details_value(log, key)
|
|
46
|
+
%hr.my-4
|
|
47
|
+
%h5.card-title= key.to_s.titleize
|
|
48
|
+
= format_log_details_value(log, key)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_logging
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.4.
|
|
4
|
+
version: 4.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -205,12 +205,8 @@ files:
|
|
|
205
205
|
- app/models/effective/track.rb
|
|
206
206
|
- app/models/effective_logger.rb
|
|
207
207
|
- app/views/admin/logs/_layout.html.haml
|
|
208
|
-
- app/views/admin/logs/index.html.haml
|
|
209
|
-
- app/views/admin/logs/show.html.haml
|
|
210
208
|
- app/views/effective/logs/_layout.html.haml
|
|
211
209
|
- app/views/effective/logs/_log.html.haml
|
|
212
|
-
- app/views/effective/logs/index.html.haml
|
|
213
|
-
- app/views/effective/logs/show.html.haml
|
|
214
210
|
- config/effective_logging.rb
|
|
215
211
|
- config/routes.rb
|
|
216
212
|
- db/migrate/101_create_effective_logging.rb
|