caboose-rets 0.1.21 → 0.1.22
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00aa3ac8a8c6fc72e6318fbcf01807950f863ca9
|
4
|
+
data.tar.gz: 39576a4b28e8f007da680df7f4df4c87e71400d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13c767590f7d397433180e1001b3449123766e94305cb2139dfec04b68fa8e826837b9a93f72d4a11c685ef58a72218cc147e1fef9edd8bc8f1eb329dad4a64b
|
7
|
+
data.tar.gz: 0b2a5154204577963b34b1a3b94aee35d63d6502cb82528f78b697a3b09f8740fa4ed7465464a8ae1530daab5a1d462ff7ce6a546fcb4f49d3c068833f5a294f
|
@@ -101,7 +101,7 @@ module CabooseRets
|
|
101
101
|
:mls_number => params[:mls_number],
|
102
102
|
:property => @property,
|
103
103
|
:saved => @saved,
|
104
|
-
|
104
|
+
# :agent => @property ? @property.where(:list_agent_mls_id => @property.list_agent_mls_id).first : nil,
|
105
105
|
:form_authenticity_token => form_authenticity_token
|
106
106
|
}
|
107
107
|
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<!-- Root element of PhotoSwipe. Must have class pswp. -->
|
2
|
+
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
|
3
|
+
|
4
|
+
<!-- Background of PhotoSwipe.
|
5
|
+
It's a separate element as animating opacity is faster than rgba(). -->
|
6
|
+
<div class="pswp__bg"></div>
|
7
|
+
|
8
|
+
<!-- Slides wrapper with overflow:hidden. -->
|
9
|
+
<div class="pswp__scroll-wrap">
|
10
|
+
|
11
|
+
<!-- Container that holds slides.
|
12
|
+
PhotoSwipe keeps only 3 of them in the DOM to save memory.
|
13
|
+
Don't modify these 3 pswp__item elements, data is added later on. -->
|
14
|
+
<div class="pswp__container">
|
15
|
+
<div class="pswp__item"></div>
|
16
|
+
<div class="pswp__item"></div>
|
17
|
+
<div class="pswp__item"></div>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
|
21
|
+
<div class="pswp__ui pswp__ui--hidden">
|
22
|
+
|
23
|
+
<div class="pswp__top-bar">
|
24
|
+
|
25
|
+
<!-- Controls are self-explanatory. Order can be changed. -->
|
26
|
+
|
27
|
+
<div class="pswp__counter"></div>
|
28
|
+
|
29
|
+
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
|
30
|
+
|
31
|
+
<button class="pswp__button pswp__button--share" title="Share"></button>
|
32
|
+
|
33
|
+
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
|
34
|
+
|
35
|
+
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
|
36
|
+
|
37
|
+
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
|
38
|
+
<!-- element will get class pswp__preloader--active when preloader is running -->
|
39
|
+
<div class="pswp__preloader">
|
40
|
+
<div class="pswp__preloader__icn">
|
41
|
+
<div class="pswp__preloader__cut">
|
42
|
+
<div class="pswp__preloader__donut"></div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
|
49
|
+
<div class="pswp__share-tooltip"></div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
|
53
|
+
</button>
|
54
|
+
|
55
|
+
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
|
56
|
+
</button>
|
57
|
+
|
58
|
+
<div class="pswp__caption">
|
59
|
+
<div class="pswp__caption__center"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
</div>
|
67
|
+
|
68
|
+
<div class="gallery-images" id="gallery-<%= property.id %>" itemscope itemtype="http://schema.org/ImageGallery">
|
69
|
+
<% property.images.each do |i| %>
|
70
|
+
<% m = Caboose::Media.where(:id => i.media_id).first %>
|
71
|
+
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
|
72
|
+
<a href="<%= m.image.url(:large) %>" itemprop="contentUrl" data-size="640x480">
|
73
|
+
<img src="<%= m.image.url(:large) %>" itemprop="thumbnail" alt="<%= i.media_remarks %>" width="69" height="46" />
|
74
|
+
</a>
|
75
|
+
<figcaption itemprop="caption description"><%= i.media_remarks %></figcaption>
|
76
|
+
</figure>
|
77
|
+
<% end %>
|
78
|
+
</div>
|
@@ -1,42 +1,44 @@
|
|
1
1
|
<div class="residential-details-wrapper constrain">
|
2
2
|
<div class="main">
|
3
|
-
|
4
|
-
|
3
|
+
<div class="gallery-wrapper">
|
4
|
+
<% if @property.images && @property.images.count > 0 %>
|
5
5
|
<section>
|
6
6
|
<h2 class="section-title">Photo Gallery</h2>
|
7
7
|
<div class="image-holder">
|
8
|
-
|
8
|
+
<% first_image = @property.images.first %>
|
9
|
+
<% m = Caboose::Media.where(:id => first_image.media_id).first if first_image && !first_image.media_id.blank? %>
|
10
|
+
<img src="<%= m.image.url(:large) %>" alt="<%= first_image.media_remarks %>" />
|
9
11
|
</div>
|
10
|
-
<%= render :partial => "caboose/blocks/
|
11
|
-
</section>
|
12
|
-
<% if !@property.public_remarks.blank? %>
|
13
|
-
<section>
|
14
|
-
<h2 class="section-title">Property Details</h2>
|
15
|
-
<p class="remarks"><%= property.public_remarks %></p>
|
16
|
-
</section>
|
17
|
-
<% end %>
|
18
|
-
<section>
|
19
|
-
<h2 class="section-title">Single Family Home</h2>
|
20
|
-
<ul>
|
21
|
-
<% if !@property.sqft_total.blank? %><li><strong>Total Sq. Ft.</strong>: <span id='square_footage'><%=h @property.sqft_total %></span></li><% end %>
|
22
|
-
<% if !@property.price_sqft.blank? %><li><strong>Price/Sq. Ft.</strong>: <span id='square_footage'><%=h number_to_currency @property.price_sqft %></span></li><% end %>
|
23
|
-
<% if !@property.beds_total.blank? %><li><strong>Bedrooms</strong>: <%= @property.beds_total %></li><% end %>
|
24
|
-
<% if !@property.baths.blank? %><li><strong>Baths</strong>: <%= @property.baths_full %> full <% if @property.baths_half != "" && @property.baths_half != "0" %> & <%= @property.baths_half %> half baths<% end %></li><% end %>
|
25
|
-
<% if !@property.acreage.blank? %><li><strong>Acreage</strong>: <%= @property.acreage %></li><% end %>
|
26
|
-
</ul>
|
12
|
+
<%= render :partial => "caboose/blocks/grantdickey/image_gallery", :locals => {:property => @property} %>
|
27
13
|
</section>
|
14
|
+
<% end %>
|
15
|
+
<% if !@property.public_remarks.blank? %>
|
28
16
|
<section>
|
29
|
-
|
30
|
-
|
31
|
-
<% if !@property.interior_features.blank? %><li><strong>Interior</strong>: <%= @property.interior_features %> </li><% end %>
|
32
|
-
<% if !@property.cooling.blank? %><li><strong>Cooling</strong>: <%= @property.cooling %> </li><% end %>
|
33
|
-
<% if !@property.heating.blank? %><li><strong>Heating</strong>: <%= @property.heating %> </li><% end %>
|
34
|
-
<% if !@property.year_built.blank? %><li><strong>Year Built</strong>: <%= @property.year_built %> </li><% end %>
|
35
|
-
</ul>
|
36
|
-
<% if @property.virtual_tour1 %><p class="vt"><a class="btn" href='<%= @property.virtual_tour %>' target='_blank' title="Virtual Tour">Virtual Tour</a></p><% end %>
|
17
|
+
<h2 class="section-title">Property Details</h2>
|
18
|
+
<p class="remarks"><%= @property.public_remarks %></p>
|
37
19
|
</section>
|
38
|
-
|
39
|
-
|
20
|
+
<% end %>
|
21
|
+
<section>
|
22
|
+
<h2 class="section-title">Single Family Home</h2>
|
23
|
+
<ul>
|
24
|
+
<% if !@property.sqft_total.blank? %><li><strong>Total Sq. Ft.</strong>: <span id='square_footage'><%=h @property.sqft_total %></span></li><% end %>
|
25
|
+
<% if !@property.price_sqft.blank? %><li><strong>Price/Sq. Ft.</strong>: <span id='square_footage'><%=h number_to_currency @property.price_sqft %></span></li><% end %>
|
26
|
+
<% if !@property.beds_total.blank? %><li><strong>Bedrooms</strong>: <%= @property.beds_total %></li><% end %>
|
27
|
+
<% if !@property.baths_full.blank? %><li><strong>Baths</strong>: <%= @property.baths_full %> full <% if @property.baths_half != "" && @property.baths_half != "0" %> & <%= @property.baths_half %> half baths<% end %></li><% end %>
|
28
|
+
<% if !@property.acreage.blank? %><li><strong>Acreage</strong>: <%= @property.acreage %></li><% end %>
|
29
|
+
</ul>
|
30
|
+
</section>
|
31
|
+
<section>
|
32
|
+
<h2 class="section-title">Features</h2>
|
33
|
+
<ul>
|
34
|
+
<% if !@property.interior_features.blank? %><li><strong>Interior</strong>: <%= @property.interior_features %> </li><% end %>
|
35
|
+
<% if !@property.cooling.blank? %><li><strong>Cooling</strong>: <%= @property.cooling %> </li><% end %>
|
36
|
+
<% if !@property.heating.blank? %><li><strong>Heating</strong>: <%= @property.heating %> </li><% end %>
|
37
|
+
<% if !@property.year_built.blank? %><li><strong>Year Built</strong>: <%= @property.year_built %> </li><% end %>
|
38
|
+
</ul>
|
39
|
+
<% if !@property.virtual_tour1.blank? %><p class="vt"><a class="btn" href='<%= @property.virtual_tour1 %>' target='_blank' title="Virtual Tour">Virtual Tour</a></p><% end %>
|
40
|
+
</section>
|
41
|
+
</div>
|
40
42
|
</div>
|
41
43
|
<aside class="sidebar">
|
42
44
|
<section class="agent">
|
@@ -54,7 +56,7 @@
|
|
54
56
|
<%= @property.city.titleize %>, <%= @property.state_or_province %> <%= @property.postal_code %>
|
55
57
|
</address>
|
56
58
|
<p class="current-price">
|
57
|
-
<%= number_to_currency(@property.
|
59
|
+
<%= number_to_currency(@property.list_price, :precision => 0) %>
|
58
60
|
<% if @property.foreclosure_yn == 'Y' %>
|
59
61
|
<span class='foreclosure'>(Foreclosure)</span>
|
60
62
|
<% end %>
|
@@ -63,7 +65,7 @@
|
|
63
65
|
</section>
|
64
66
|
<section>
|
65
67
|
<h4 class="section-title">Directions</h4>
|
66
|
-
|
68
|
+
<% if false && @property.street_number %>
|
67
69
|
<div class="property-map" id="map-<%= @property.id %>" data-address="<%= @property.street_number %> <%= @property.street_name.titleize %>"></div>
|
68
70
|
<% end %>
|
69
71
|
<p class="directions"><%= @property.directions %></p>
|
@@ -80,9 +82,9 @@
|
|
80
82
|
</ul>
|
81
83
|
</section>
|
82
84
|
<% page_ids = Caboose::Page.where(:site_id => @site.id).pluck(:id).to_s.gsub("[","").gsub("]","") %>
|
83
|
-
<% cf = Caboose::Block.where(:
|
85
|
+
<% cf = Caboose::Block.where(:name => 'to_address').where("page_id in (#{page_ids})").first %>
|
84
86
|
<% if cf %>
|
85
|
-
<% bid = cf.
|
87
|
+
<% bid = cf.parent_id %>
|
86
88
|
<section>
|
87
89
|
<h4 class="section-title">Information Request</h4>
|
88
90
|
<form id="property-contact-form">
|
@@ -101,27 +103,16 @@
|
|
101
103
|
</aside>
|
102
104
|
</div>
|
103
105
|
|
104
|
-
<script>
|
105
|
-
var property_map_id = "map-<%= @property.id %>";
|
106
|
-
var photo_gallery_id = "gallery-<%= @property.id %>";
|
107
106
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
107
|
+
<script>
|
108
|
+
var property_map_id = "map-<%= @property.id %>";
|
109
|
+
var photo_gallery_id = "gallery-<%= @property.id %>";
|
110
|
+
|
111
|
+
function loadScript() {
|
112
|
+
var script = document.createElement('script');
|
113
|
+
script.type = 'text/javascript';
|
114
|
+
script.src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyAjSs-Jq6hpuT35RG9wD6LuqaDFzYDCOPk&callback=show_property_map";
|
115
|
+
document.body.appendChild(script);
|
116
|
+
}
|
117
|
+
</script>
|
115
118
|
|
116
|
-
<script type="text/javascript">
|
117
|
-
(function(d, s, id) {
|
118
|
-
window.Wishpond = window.Wishpond || {};
|
119
|
-
Wishpond.merchantId = '1285931';
|
120
|
-
Wishpond.writeKey = 'a69f26d8d7f4';
|
121
|
-
var js, wpjs = d.getElementsByTagName(s)[0];
|
122
|
-
if (d.getElementById(id)) return;
|
123
|
-
js = d.createElement(s); js.id = id;
|
124
|
-
js.src = "//cdn.wishpond.net/connect.js";
|
125
|
-
wpjs.parentNode.insertBefore(js, wpjs);
|
126
|
-
}(document, 'script', 'wishpond-connect'));
|
127
|
-
</script>
|
data/lib/caboose_rets/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- app/views/caboose_rets/offices/admin_index.html.erb
|
82
82
|
- app/views/caboose_rets/open_houses/admin_index.html.erb
|
83
83
|
- app/views/caboose_rets/open_houses/admin_new.html.erb
|
84
|
+
- app/views/caboose_rets/properties/_image_gallery.html.erb
|
84
85
|
- app/views/caboose_rets/properties/_search_form.html.erb
|
85
86
|
- app/views/caboose_rets/properties/admin_edit.html.erb
|
86
87
|
- app/views/caboose_rets/properties/admin_index.html.erb
|