caboose-rets 0.1.2 → 0.1.3

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDcxZDViM2ZhOTdjYzYwMWNlYmQ1Y2M4NGI0Y2VlMzJlNTFkYjk4ZQ==
4
+ OWI0ODUzYWE3NTAyYTY4MTJmM2NmYWJmNGY4MzdjMGE1YmU1MTNiNg==
5
5
  data.tar.gz: !binary |-
6
- ODcwZmFiNmFkYWI5YTY5OTkyNWJhMTU2ZWU3MTk3YTU2MDgwN2MyYQ==
6
+ ODY1NDlmYjEwZGU5NmZmMTIxOWVlOTEyZTg3OTlkOWRhNDcyZTExNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzYxZTZhYzc2MjcwNzdhYTVhODkzZjE1MTNiOGQ3NDZjNGY3ZGQ1MDMxZGNj
10
- ZTdiODRhMmZhY2Y2ZGJhYWJlNjA5MzUxN2ZlYmY3NmFhOTdhMDY0YTRiMDM5
11
- NjdjYjZhMWQ4ZTk1OTU0MjlkOTNjNGUwZjM4YmE0Yjk2N2I5NDU=
9
+ ZDEzMjdjZjc2MTA4YjYyZGEwZTY3ZWJiOTA1MzhiZDE5ODJlNjQ0OWEwNmE5
10
+ OGEyODg2NjYwZjc5YzhmM2U5YTJiZGIzZmM5NTZmZGE4YWUzZjBmOTQwYTIx
11
+ MDQ1M2MzYzk2OGFhMzU0ZjI5ODFkZDJhZGQ3NDM0NDI3YTQ4NzI=
12
12
  data.tar.gz: !binary |-
13
- YWEyYzJjMWUwNzQ1MzFlYzI0M2MzMTkyZjEwNWI5NWJjNWQwZjBkZDdjYzQx
14
- ODc2NDFkOTVhYWJkYzY3ZWIzY2JiNmQzODMyMTVkNGU1YzIwZjM4MmIwOTY3
15
- OTJhMjVlOTg5MTlmZmMxMzJlOTFjYWJmNWJjMzIzZGFjZTJlZGY=
13
+ YjZiNGYxNzk0YmRlNzk4NGNkNjM3N2M2ZTdlNWQ3MTg2OGEyMTQwYzgwNGYy
14
+ ZjA2NmMwMWFiY2MxMTk5M2FiMmRjNjQ1NWVhZTQ2ZDUzM2I3M2RkNTY2YjEy
15
+ MDFjYzY3Mzc1ZWY3MDNhY2RjYWNhYzQ0N2ZmMDcyYzBiYjQ5MDc=
@@ -2,21 +2,7 @@ class CabooseRets::RetsPlugin < Caboose::CaboosePlugin
2
2
 
3
3
  def self.admin_nav(nav, user = nil, page = nil, site)
4
4
  return nav if user.nil?
5
- return nav if !site.use_rets
6
-
7
- nav << {
8
- 'id' => 'saved-properties',
9
- 'text' => 'Saved Properties',
10
- 'href' => '/saved-properties',
11
- 'modal' => false
12
- }
13
- nav << {
14
- 'id' => 'saved-searches',
15
- 'text' => 'Saved Searches',
16
- 'href' => '/saved-searches',
17
- 'modal' => true
18
- }
19
-
5
+ return nav if !site.use_rets
20
6
  return nav if !user.is_allowed('properties', 'view')
21
7
 
22
8
  item = {
@@ -24,15 +10,16 @@ class CabooseRets::RetsPlugin < Caboose::CaboosePlugin
24
10
  'text' => 'RETS',
25
11
  'children' => [],
26
12
  'modal' => true
27
- }
28
-
29
- item['children'] << { 'id' => 'agents' , 'href' => '/admin/agents' , 'text' => 'Agents' , 'modal' => false }
30
- item['children'] << { 'id' => 'offices' , 'href' => '/admin/offices' , 'text' => 'Offices' , 'modal' => false }
31
- item['children'] << { 'id' => 'open-houses' , 'href' => '/admin/open-houses' , 'text' => 'Open Houses' , 'modal' => false }
32
- item['children'] << { 'id' => 'residential' , 'href' => '/admin/residential' , 'text' => 'Residential Property' , 'modal' => false }
33
- item['children'] << { 'id' => 'commercial' , 'href' => '/admin/commercial' , 'text' => 'Commercial Property' , 'modal' => false }
34
- item['children'] << { 'id' => 'commercial' , 'href' => '/admin/multi-family' , 'text' => 'Multi-Family Property' , 'modal' => false }
35
- item['children'] << { 'id' => 'land' , 'href' => '/admin/land' , 'text' => 'Land Property' , 'modal' => false }
13
+ }
14
+ item['children'] << { 'id' => 'agents' , 'href' => '/admin/agents' , 'text' => 'Agents' , 'modal' => false }
15
+ item['children'] << { 'id' => 'offices' , 'href' => '/admin/offices' , 'text' => 'Offices' , 'modal' => false }
16
+ item['children'] << { 'id' => 'open-houses' , 'href' => '/admin/open-houses' , 'text' => 'Open Houses' , 'modal' => false }
17
+ item['children'] << { 'id' => 'residential' , 'href' => '/admin/residential' , 'text' => 'Residential Property' , 'modal' => false }
18
+ item['children'] << { 'id' => 'commercial' , 'href' => '/admin/commercial' , 'text' => 'Commercial Property' , 'modal' => false }
19
+ item['children'] << { 'id' => 'commercial' , 'href' => '/admin/multi-family' , 'text' => 'Multi-Family Property' , 'modal' => false }
20
+ item['children'] << { 'id' => 'land' , 'href' => '/admin/land' , 'text' => 'Land Property' , 'modal' => false }
21
+ item['children'] << { 'id' => 'saved-properties' , 'href' => '/saved-properties' , 'text' => 'Saved Properties' , 'modal' => false }
22
+ item['children'] << { 'id' => 'saved-searches' , 'href' => '/saved-searches' , 'text' => 'Saved Searches' , 'modal' => false }
36
23
 
37
24
  nav << item
38
25
 
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry