caboose-rets 0.1.13 → 0.1.14

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5088588a59c62f8b839b204cc4f9c46bd816842
4
- data.tar.gz: e88f8fb476f43fd4157f1cffaead95b62f1ce32b
3
+ metadata.gz: c7b0da7c560988d30a5457eb7844926b99f5e948
4
+ data.tar.gz: dbfc1311ef54ec0460870c478f3cccc32a8e2cbd
5
5
  SHA512:
6
- metadata.gz: 9f0a212d949eaab752d62f701e9a272de49e9ee152c05b226a1751ea08de876c75b71191fa0b4e8ba1c451201c1bbbaa5850e6d7d32cd305ce948a30f3663ad0
7
- data.tar.gz: cc026f84c744b32be75cd07bbe031fc95927d9ae6d70d8e66de4ad714ddd3e8f3852e16cbae645600d667712a8d4294205e36788980f8212e89e6e5a0677eeaa
6
+ metadata.gz: d9476be7edfa7269be0401ba5db357f5cb844f5c88654096ac104332c1ae18f2b31fe959f4a641c72114758deb61ad155fcf4b2c9cf6f97705c5281b7012f71d
7
+ data.tar.gz: b45c65ca4eac4be1ad08b1e1f853de1e6f2bc555a535bb39edc2785f1d55ee1a143c2359c2bf65282d54f8716c908c768379cdf97732e1cd0059a9bb84723043
@@ -31,13 +31,28 @@ module CabooseRets
31
31
  'items_per_page' => 10
32
32
  })
33
33
  @properties = @gen.items
34
+
35
+ @block_options = {
36
+ :properties => @properties,
37
+ :pager => @gen
38
+ }
39
+
34
40
  end
35
41
 
36
42
  # GET /commercial/:mls_acct/details
37
43
  def details
38
44
  @property = CommercialProperty.where(:mls_acct => params[:mls_acct]).first
39
45
  #@agent = Agent.where(:la_code => @property.la_code).first ? Agent.where(:la_code => @property.la_code).exists? : nil
40
- @saved = logged_in? && SavedProperty.where(:user_id => logged_in_user.id, :mls_acct => params[:mls_acct]).exists?
46
+ @saved = logged_in? && SavedProperty.where(:user_id => logged_in_user.id, :mls_acct => params[:mls_acct]).exists?
47
+
48
+ @block_options = {
49
+ :mls_acct => params[:mls_acct],
50
+ :property => @property,
51
+ :saved => @saved,
52
+ :agent => @property ? Agent.where(:la_code => @property.la_code).first : nil,
53
+ :form_authenticity_token => form_authenticity_token
54
+ }
55
+
41
56
  end
42
57
 
43
58
  #=============================================================================
@@ -1,134 +0,0 @@
1
- <% p = @property %>
2
-
3
- <% content_for :caboose_css do %>
4
- <style type="text/css">
5
- .realtor_info { background-color: white; padding: 10px; margin-bottom: 20px; text-align: center; border: 1px solid #d0d0d0;}
6
- </style>
7
- <% end %>
8
-
9
- <div class="l-wrapper">
10
- <div class="l-section">
11
- <div class="l-sidebar-border inflate-tenor-baritone">
12
- <div class="sidebar-aside">
13
- <% if @agent %>
14
- <div class="realtor_info">
15
- <h4>Advantage Agent</h4>
16
- <img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%= @agent.id %>_thumb.jpg?<%= DateTime.now.strftime('%F') %>" alt="<%= @agent.first_name %> <%= @agent.last_name %>" />
17
- <br />
18
- <a href="/agents/<%= @agent.la_code %>"><%= @agent.first_name %> <%= @agent.last_name %></a><br>
19
- <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a>
20
- </div>
21
- <% end %>
22
- <% if p.sale_lease %>
23
- <h4 class="h-type-highlight"><%= p.sale_lease %></h4>
24
- <% end %>
25
-
26
- <address class="h-type-h5">
27
- <% if p.street_num && p.street_name %> <%= p.street_num %> <%= p.street_name %> <% end %><br />
28
- <%= p.city %>, <%= p.state %> <% if p.zip != '0' %> <%= p.zip %>
29
- </address>
30
-
31
- <p id="price" class="h-space-mvs h-type-highlight h-type-h4"><%=h number_to_currency(p.current_price, :precision => 0) %></p>
32
-
33
- <% if p.sale_lease %>
34
- <p id="mls" class="h-space-mvs h-type-highlight h-type-h4">MLS #<%=p.mls_acct%></p>
35
- <% end %>
36
-
37
- <% if p.street_num && p.street_name && p.city && p.state && p.zip %>
38
- <div class="m-map-small h-border h-space-mbm" address="<%=p.street_num%> <%=p.street_name%> <%=p.city%>, <%=p.state%> <%=p.zip%>"></div>
39
- <% end %>
40
-
41
-
42
-
43
- <h4 class="h-space-mvt">Directions</h4>
44
- <p class="paragraph"><%=p.directions%></p>
45
-
46
- <% if @agent %>
47
- <h4 class="h-space-mvt">Contact <%= @agent.first_name %> <%= @agent.last_name %> </h4>
48
- <% else %>
49
- <h4 class="h-space-mvt">Contact Advantage</h4>
50
- <% end %>
51
-
52
- <%= form_for @message, :url => "/contact/create", :html => {:class => "m-form", :'accept-charset' => "utf-8", :method => "POST" } do |f| %>
53
-
54
- <%= f.text_field :name, :placeholder => "Name", :value => "", :id => "contact_name", :maxlength => "150" %>
55
- <%= f.text_field :email, :placeholder => "Email", :value => "", :id => "contact_addres", :maxlength => "150" %>
56
- <%= f.text_area :body, :placeholder => "Message", :cols => "50", :rows => "4", :id => "contact_message", :class => "contact_message" %>
57
-
58
- <p class="h-space-mvs">
59
- Please enter the word you see in the image below:
60
- <img src="/images/captchas/1374955003.9265.jpg" width="140" height="30" style="border:0;" alt=" " />
61
- </p>
62
- <p><input type="text" name="captcha" /></p>
63
-
64
- <input class="m-btn-red btn-large h-float-right h-space-mts" type="submit" value="Send" />
65
- <% end %>
66
- </div> <!-- .sidebar-aside -->
67
-
68
- <div class="sidebar-body">
69
- <% tiny_img = "https://s3.amazonaws.com/advantagerealtygroup.com/residential/#{@property.mls_acct}_%d_tiny.jpg" %>
70
- <% large_img = "https://s3.amazonaws.com/advantagerealtygroup.com/residential/#{@property.mls_acct}_%d_large.jpg" %>
71
-
72
- <% if p.sale_lease %>
73
- <figure class="m-banner" style="background-image: url('https://s3.amazonaws.com/advantagerealtygroup.com/commercial/<%= p.mls_acct %>_1_thumb.jpg');"> <!-- url(rets_images/$category/{$mls}_1.jpg) -->
74
- <figure class="banner-sub" style="background-image: url(http://placehold.it/480x320); display:none;"></figure> <!-- url(rets_images/$category/{$mls}_2.jpg) -->
75
- </figure> <!-- .m-banner -->
76
- <% else %>
77
- <div class="photos" style="text-align: center;">
78
- <% if @property.photo_count.to_i >= 1 %>
79
- <a class="photo" style="display: block; margin: 25px;" href="<%= large_img % 1 %>"><img src="<%= large_img % 1 %>"/></a>
80
- <div style="display: block;">
81
- <% (2..@property.photo_count.to_i).each do |i| %>
82
- <% if i != 2 && (i - 2) % 8 == 0 %></div><div style="display: block;"><% end %>
83
- <a class="photo" style="float: left; display: block; width: 12.5%; padding: 2px;" href="<%= large_img % i %>">
84
- <img style="display: block; width: 100%;" src="<%= tiny_img % i %>"/>
85
- </a>
86
- <% end %>
87
- </div>
88
- <% end %>
89
- </div>
90
- <div style="clear: both;"></div>
91
- <% end %>
92
-
93
- <p class="paragraph"><%=p.remarks%></p>
94
-
95
- <h4 class="h-type-standard h-type-highlight h-type-caps">Property Details</h4>
96
-
97
- <ul class="m-list-bullet h-space-mts">
98
- <% if p.price_sqft != "" %><li><strong>Square Footage</strong>: <%=h number_to_currency p.price_sqft%></li><% end %>
99
- <% if p.acreage != "" %><li><strong>Acreage</strong>: <%=p.acreage%></li><% end %>
100
- </ul> <!-- .m-list-bullet -->
101
-
102
- <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Additional Info</h4>
103
-
104
- <ul>
105
- <li><strong>Interior</strong>: <%=p.ftr_interior%></li>
106
- <li><strong>Cooling</strong>: <%=p.ftr_cooling%></li>
107
- <li><strong>Heating</strong>: <%=p.ftr_heating%></li>
108
- <li><strong>Year Built</strong>: <%=p.year_built%></li>
109
- </ul>
110
- <br>
111
- <% if p.virtual_tour %><a href='<%= p.virtual_tour %>' target='_blank'>Virtual Tour</a><% end %>
112
-
113
- <a data-pin-do="buttonPin" data-pin-config="beside" href="//pinterest.com/pin/create/button/?url=<%= request.original_url %>&amp;media=<%= large_img % 1 %>" ></a>
114
- </div> <!-- .sidebar-body -->
115
- </div> <!-- .l-sidebar -->
116
- </div> <!-- .body-section -->
117
- </div> <!-- .l-wrapper -->
118
- <% end %>
119
-
120
-
121
- <div class="body-sink"></div>
122
-
123
- <% content_for :caboose_js do %>
124
- <%= javascript_include_tag '//assets.pinterest.com/js/pinit.js' %>
125
- <script type="text/javascript">
126
- $(document).ready(function(){
127
- $('.photo').colorbox({rel:'photo'});
128
- });
129
-
130
- <% unless flash[:notice].blank? %>
131
- alert('<%= flash[:notice] %>');
132
- <% end %>
133
- </script>
134
- <% end %>
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.4.5.1
193
+ rubygems_version: 2.5.1
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Library to download RETS data to a local website.