effective_logging 2.0.0 → 2.0.1
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 +18 -27
- data/lib/effective_logging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2df06ee7aea144b63b57170b65ac18abd83ed7cd
|
|
4
|
+
data.tar.gz: 0c1540a24b525a564b33eb7d6d1b78fd831d6dff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c38ab76941a3a27d5992764459f5a0520b417135290092cf1066dac3c34a606b9b71bbef29d60f30b2046ba57a97b2a17027273567d6ad68f72f88fd57842b0
|
|
7
|
+
data.tar.gz: 759c1f333cfa331e9e16489012c5850bed1a8f6101314cafec9b833238a3cf470fe1056c16a798eb78370282765c00f654e1ca59cf8f2428b2eb57a41ebcd3c5
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.panel.card
|
|
1
|
+
.panel.panel-default.card
|
|
2
2
|
.panel-heading.card-header
|
|
3
3
|
.row
|
|
4
4
|
.col-md-10
|
|
@@ -16,27 +16,24 @@
|
|
|
16
16
|
.panel-body.card-body
|
|
17
17
|
.row
|
|
18
18
|
.col-md-6
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
%br
|
|
25
|
-
%br
|
|
19
|
+
%p
|
|
20
|
+
- status_class = bootstrap_class_for_status(log.status)
|
|
21
|
+
%span{:class => (defined?(EffectiveBootstrap) ? "badge badge-#{status_class}" : "label label-#{status_class}")}= log.status
|
|
22
|
+
= log.created_at.strftime("%F %H:%M:%S")
|
|
23
|
+
= '(' + time_ago_in_words(log.created_at) + ' ago)'
|
|
26
24
|
|
|
27
25
|
.col-md-6
|
|
28
26
|
- if log.user.present?
|
|
29
|
-
%
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
%p
|
|
28
|
+
%strong User:
|
|
29
|
+
= (log.user.to_s.starts_with?('#<User:0x') ? (log.user.email rescue log.user) : log.user)
|
|
32
30
|
- if (log.associated.present? rescue false)
|
|
33
|
-
%
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
= log.associated
|
|
31
|
+
%p
|
|
32
|
+
%strong Associated:
|
|
33
|
+
- if log.associated.to_s.starts_with?('#<')
|
|
34
|
+
= "#{log.associated.class.name} ##{log.associated.to_param}"
|
|
35
|
+
- else
|
|
36
|
+
= log.associated
|
|
40
37
|
|
|
41
38
|
- log.details.each do |key, value|
|
|
42
39
|
- next unless value.present?
|
|
@@ -47,15 +44,9 @@
|
|
|
47
44
|
= format_log_details_value(log, key)
|
|
48
45
|
|
|
49
46
|
- if log.logs.present?
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
%br
|
|
53
|
-
%p
|
|
54
|
-
%strong Additional Entries:
|
|
55
|
-
= "this log contains #{log.logs_count} additional sub entries"
|
|
47
|
+
%hr
|
|
48
|
+
%p This log contains #{log.logs_count} additional sub entries:
|
|
56
49
|
|
|
57
50
|
- unless log.datatable.nil?
|
|
58
|
-
|
|
59
|
-
.row
|
|
60
|
-
.col-md-12= render_datatable(log.datatable)
|
|
51
|
+
= render_datatable(log.datatable)
|
|
61
52
|
|
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: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
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: 2018-03-
|
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|