effective_classifieds 0.8.2 → 0.8.3
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: 65bb7fc8d2bda983c02297557e2e9171cf6b6436c7ce668948b28bddbf755e09
|
4
|
+
data.tar.gz: 800496114cd0a7f44d70557fa4903229f7e0659551366e9dbec71583e151840f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f7cd1876f5225b3d79beefe65842bd95712550d73001725f3a5bcb5d29c1b4bb0951e663ad22fcfd4f7184fc38697cf46b9213204de4f4d6db6d65ae3050faf
|
7
|
+
data.tar.gz: a77b1f4b637fd308bf91be09f9d79c09a1ee010d28db3e93795e495ae14ccbfb21fec74c879fa001ccf1850b2537993d50b9a06b3b47c5faf253dc4221dfcd15
|
@@ -170,7 +170,7 @@ module Effective
|
|
170
170
|
def published?
|
171
171
|
return false unless approved?
|
172
172
|
return false if archived?
|
173
|
-
return false if start_on.blank? || (Time.zone.now < start_on)
|
173
|
+
return false if start_on.blank? || (Time.zone.now.beginning_of_day < start_on)
|
174
174
|
return false if end_on.present? && (Time.zone.now >= end_on)
|
175
175
|
true
|
176
176
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
%tr
|
2
2
|
%td.col-date.text-right= classified.start_on&.strftime("%b %e, %Y")
|
3
3
|
%td
|
4
|
-
%strong= link_to classified.title, effective_classifieds.
|
4
|
+
%strong= link_to classified.title, effective_classifieds.classified_url(classified)
|
5
5
|
.text-muted= classified.organization
|
6
6
|
.d-block.d-md-none= classified.location
|
7
7
|
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
- if @classified.published?
|
4
4
|
%p The following has been submitted and is published online:
|
5
|
+
- elsif @classified.approved?
|
6
|
+
%p The following has been submitted and approved:
|
5
7
|
- else
|
6
8
|
%p The following has been submitted and is awaiting your approval:
|
7
9
|
|
@@ -13,8 +15,8 @@
|
|
13
15
|
%hr
|
14
16
|
|
15
17
|
- unless @classified.approved?
|
16
|
-
%p= link_to("Approve", effective_classifieds.
|
18
|
+
%p= link_to("Approve", effective_classifieds.edit_admin_classified_url(@classified))
|
17
19
|
|
18
|
-
%p= link_to("View", effective_classifieds.
|
20
|
+
%p= link_to("View", effective_classifieds.classified_url(@classified))
|
19
21
|
|
20
22
|
%p Have a great day!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_classifieds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
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:
|
11
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|