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 +8 -8
- data/app/models/caboose_rets/rets_plugin.rb +11 -24
- data/lib/caboose_rets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWI0ODUzYWE3NTAyYTY4MTJmM2NmYWJmNGY4MzdjMGE1YmU1MTNiNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODY1NDlmYjEwZGU5NmZmMTIxOWVlOTEyZTg3OTlkOWRhNDcyZTExNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDEzMjdjZjc2MTA4YjYyZGEwZTY3ZWJiOTA1MzhiZDE5ODJlNjQ0OWEwNmE5
|
10
|
+
OGEyODg2NjYwZjc5YzhmM2U5YTJiZGIzZmM5NTZmZGE4YWUzZjBmOTQwYTIx
|
11
|
+
MDQ1M2MzYzk2OGFhMzU0ZjI5ODFkZDJhZGQ3NDM0NDI3YTQ4NzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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' => '
|
30
|
-
item['children'] << { 'id' => '
|
31
|
-
item['children'] << { 'id' => '
|
32
|
-
item['children'] << { 'id' => '
|
33
|
-
item['children'] << { 'id' => 'commercial'
|
34
|
-
item['children'] << { 'id' => '
|
35
|
-
item['children'] << { 'id' => '
|
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
|
|
data/lib/caboose_rets/version.rb
CHANGED