effective_classifieds 0.4.7 → 0.4.9

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: 4efe669bad28e0c18b965b784e4b307a12e933d2d110deb660f73aae68f7dab0
4
- data.tar.gz: daea6b6ae0e2285fde3b87fd1f723a03537465dcda8bed6c4fb2d018d50b2144
3
+ metadata.gz: 72943ae44d62f83a10423520b8abf8febcda8e74bc93ac736d0f6fe0ceee5b43
4
+ data.tar.gz: 8d702db85ac010f831ce4c936439310c4b56409e6e1ec62f2f145ee346b7dbc7
5
5
  SHA512:
6
- metadata.gz: 283e5708a1d92871e614b95eebaf25511de9b656f2e92716824620ebc92541416bc08fd43f5b1014e74f08df96b5d3c9eb05eb9b271264ae84f53352a88846c0
7
- data.tar.gz: 606cad7e6b2294a8878618a6a35b31266a089cd2d68fe537e29d71152680c99ad184988e3aa50eda29660bd06d1e6b0379de5f322f695d5159f3585128a35b2a
6
+ metadata.gz: 4767b8c10911c5e30ca4d686d734a1a879b4b330b392b18bfc360e4645f1ef99603fd66769635cbfb1245dd10d161a57d3d63715f0d16b16b126bc4d5bd0b260
7
+ data.tar.gz: 9fc15c474a261316dca0986235f9a5c2b94eec26df739391d0f0dbae52fd13f618b71afc4dc6b3d855c9f3c509223bd24f18a6214db246c4b409457b35122d76
@@ -13,6 +13,7 @@ module Admin
13
13
  end
14
14
 
15
15
  datatable do
16
+ order :start_on
16
17
 
17
18
  col :updated_at, visible: false
18
19
  col :created_at, visible: false
@@ -2,7 +2,7 @@
2
2
  class EffectiveClassifiedsDatatable < Effective::Datatable
3
3
  datatable do
4
4
  length :all
5
- order :end_on
5
+ order :start_on
6
6
 
7
7
  col :start_on, as: :date, label: 'Published'
8
8
  col :end_on, as: :date, label: 'Closing'
@@ -63,7 +63,7 @@ module Effective
63
63
  timestamps
64
64
  end
65
65
 
66
- scope :sorted, -> { order(end_on: :desc) }
66
+ scope :sorted, -> { order(start_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)) }
@@ -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", root_path, class: 'btn btn-lg btn-primary mb-4'
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", root_path, class: 'btn btn-lg btn-primary'
29
+ = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
@@ -1,3 +1,3 @@
1
1
  module EffectiveClassifieds
2
- VERSION = '0.4.7'.freeze
2
+ VERSION = '0.4.9'.freeze
3
3
  end
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.4.7
4
+ version: 0.4.9
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: 2022-11-24 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails