effective_classifieds 0.4.6 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e5269c6dccc1960df07c54cd8dce25942cfc15136d2b40a36707ef801c03f57
|
4
|
+
data.tar.gz: 18c39f1c846eea9a4cdb9a3a5653d58e46472bf95823ea86c703bb329e2a54e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3989934b268ccc5af1f49d9df8e43d719e4e6055433f750e6ceae58ecd7c80cb0e0655f25065a88b1527c6fed8bb3c4ce7a88d607c9f9a57dba8d5467197b24
|
7
|
+
data.tar.gz: 3c88ed94cd34bedd065bb70b1df8ff1aa99b79cb8968019475e616f17e54c8724602f30e520bf7588263ac34207ab833312f96a579a6c281f9e605c09e59d7dd
|
@@ -63,7 +63,7 @@ module Effective
|
|
63
63
|
timestamps
|
64
64
|
end
|
65
65
|
|
66
|
-
scope :sorted, -> { order(:
|
66
|
+
scope :sorted, -> { order(end_on: :desc) }
|
67
67
|
scope :deep, -> { with_rich_text_body }
|
68
68
|
|
69
69
|
scope :upcoming, -> { where(arel_table[:end_on].gt(Time.zone.now)) }
|
@@ -87,7 +87,7 @@ module Effective
|
|
87
87
|
}
|
88
88
|
|
89
89
|
scope :classifieds, -> (user: nil, unpublished: false) {
|
90
|
-
scope = all.deep
|
90
|
+
scope = all.deep
|
91
91
|
|
92
92
|
if defined?(EffectiveRoles) && EffectiveClassifieds.use_effective_roles
|
93
93
|
scope = scope.for_role(user&.roles)
|
@@ -16,7 +16,7 @@
|
|
16
16
|
.alert.alert-danger.mb-4
|
17
17
|
Your posting must still be approved before it will be displayed.
|
18
18
|
|
19
|
-
= link_to "Return to Dashboard",
|
19
|
+
= link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
|
20
20
|
|
21
21
|
= render 'effective/classified_wizards/summary', classified_wizard: resource
|
22
22
|
= render 'effective/classified_wizards/classified_wizard', classified_wizard: resource
|
@@ -26,4 +26,4 @@
|
|
26
26
|
= collapse('Show orders...', card_class: 'my-2') do
|
27
27
|
= render 'effective/classified_wizards/orders', classified_wizard: resource
|
28
28
|
|
29
|
-
= link_to "Return to Dashboard",
|
29
|
+
= link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
|