pwb 1.0.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/comfy/admin/cms/custom.js.coffee +1 -0
  4. data/app/assets/stylesheets/comfy/admin/cms/custom.sass +1 -0
  5. data/app/assets/stylesheets/pwb/themes/berlin/inmo.scss +6 -1
  6. data/app/assets/stylesheets/pwb/themes/berlin/main.scss +12 -11
  7. data/app/assets/stylesheets/pwb/themes/default/shame.scss +1 -1
  8. data/app/controllers/pwb/admin_panel_controller.rb +2 -2
  9. data/app/controllers/pwb/api/v1/cms_pages_controller.rb +102 -0
  10. data/app/controllers/pwb/api/v1/website_controller.rb +7 -0
  11. data/app/controllers/pwb/api_public/v1/props_controller.rb +2 -2
  12. data/app/controllers/pwb/application_api_controller.rb +3 -7
  13. data/app/controllers/pwb/application_controller.rb +2 -3
  14. data/app/controllers/pwb/comfy_controller.rb +106 -0
  15. data/app/controllers/pwb/css_controller.rb +1 -2
  16. data/app/controllers/pwb/devise/registrations_controller.rb +2 -5
  17. data/app/controllers/pwb/devise_controller.rb +3 -8
  18. data/app/controllers/pwb/export/properties_controller.rb +5 -6
  19. data/app/controllers/pwb/export/translations_controller.rb +1 -5
  20. data/app/controllers/pwb/export/web_contents_controller.rb +1 -4
  21. data/app/controllers/pwb/export/website_controller.rb +0 -1
  22. data/app/controllers/pwb/import/mls_controller.rb +3 -6
  23. data/app/controllers/pwb/import/properties_controller.rb +2 -4
  24. data/app/controllers/pwb/import/scrapper_controller.rb +6 -9
  25. data/app/controllers/pwb/props_controller.rb +10 -13
  26. data/app/controllers/pwb/search_controller.rb +16 -16
  27. data/app/controllers/pwb/sections_controller.rb +21 -22
  28. data/app/controllers/pwb/welcome_controller.rb +1 -2
  29. data/app/helpers/pwb/application_helper.rb +37 -0
  30. data/app/helpers/pwb/css_helper.rb +9 -0
  31. data/app/models/pwb/cms_page_container.rb +9 -0
  32. data/app/models/pwb/content.rb +10 -6
  33. data/app/models/pwb/prop.rb +12 -4
  34. data/app/models/pwb/section.rb +1 -1
  35. data/app/models/pwb/website.rb +14 -1
  36. data/app/resources/pwb/api/v1/cms_block_resource.rb +11 -0
  37. data/app/resources/pwb/api/v1/cms_page_resource.rb +27 -0
  38. data/app/themes/berlin/views/layouts/pwb/application.html.erb +25 -9
  39. data/app/themes/berlin/views/pwb/props/show.html.erb +5 -5
  40. data/app/themes/berlin/views/pwb/search/_search_results.html.erb +2 -1
  41. data/app/themes/berlin/views/pwb/search/buy.html.erb +1 -1
  42. data/app/themes/berlin/views/pwb/search/rent.html.erb +2 -1
  43. data/app/themes/berlin/views/pwb/sections/about_us.html.erb +3 -2
  44. data/app/themes/berlin/views/pwb/sections/cms.html.erb +34 -0
  45. data/app/themes/berlin/views/pwb/sections/contact_us.html.erb +2 -1
  46. data/app/themes/berlin/views/pwb/welcome/_about_us_to_del.html.erb +35 -0
  47. data/app/themes/berlin/views/pwb/welcome/{_adv_search.html.erb → _adv_search_to_del.html.erb} +0 -0
  48. data/app/themes/berlin/views/pwb/welcome/_landing_carousel.html.erb +1 -1
  49. data/app/themes/berlin/views/pwb/welcome/_latest_properties.html.erb +2 -1
  50. data/app/themes/default/views/layouts/pwb/application.html.erb +24 -3
  51. data/app/themes/default/views/pwb/sections/about_us.html.erb +1 -2
  52. data/app/themes/default/views/pwb/sections/cms.html.erb +30 -0
  53. data/app/themes/default/views/pwb/welcome/_single_property_row.html.erb +2 -1
  54. data/app/themes/default/views/pwb/welcome/index.html.erb +3 -1
  55. data/app/views/layouts/pwb/devise.html.erb +1 -0
  56. data/app/views/pwb/_analytics.html.erb +15 -0
  57. data/app/views/pwb/_footer.html.erb +0 -12
  58. data/app/views/pwb/custom_css/{berlin.css.erb → _berlin.css.erb} +0 -1
  59. data/app/views/pwb/custom_css/{default.css.erb → _default.css.erb} +0 -1
  60. data/app/views/pwb/custom_css/_shared.css.erb +1 -0
  61. data/app/views/pwb/props/_images_section_carousel.html.erb +13 -27
  62. data/app/views/pwb/props/_prop_info_list.html.erb +1 -1
  63. data/app/views/pwb/search/_search_result_item.html.erb +62 -64
  64. data/app/views/pwb/search/_search_result_item_to_del.html.erb +3 -3
  65. data/config/client_setups/default.json +59 -21
  66. data/config/cms_page_containers/about-us.json +18 -0
  67. data/config/cms_page_containers/about.json +107 -0
  68. data/config/cms_page_containers/landing.json +19 -0
  69. data/config/cms_page_containers/legal.json +17 -0
  70. data/config/cms_page_containers/sell.json +96 -0
  71. data/config/initializers/cloudinary.rb +3 -0
  72. data/config/initializers/comfortable_mexican_sofa.rb +142 -0
  73. data/config/locales/admin.en.yml +213 -0
  74. data/config/locales/admin.es.yml +32 -17
  75. data/config/locales/admin.ru.yml +432 -0
  76. data/config/locales/admin.zh.yml.tmp +226 -0
  77. data/config/locales/de.yml +31 -32
  78. data/config/locales/devise.zh-HK.yml +119 -0
  79. data/config/locales/en.yml +3 -0
  80. data/config/locales/es.yml +3 -5
  81. data/config/locales/rails.zh-HK.yml +210 -0
  82. data/config/locales/ru.yml +11 -11
  83. data/config/locales/zh-HK.yml +154 -0
  84. data/config/routes.rb +17 -2
  85. data/db/cms_fixtures/cms/categories/pages.yml +3 -0
  86. data/db/cms_fixtures/cms/files/_rerenting-landing_framed.png.yml +6 -0
  87. data/{spec/dummy/public/system/comfy/cms/files/files/000/000/003/original → db/cms_fixtures/cms/files}/rerenting-landing_framed.png +0 -0
  88. data/db/cms_fixtures/cms/layouts/about-us/attributes.yml +4 -0
  89. data/db/cms_fixtures/cms/layouts/about-us/content.html +0 -0
  90. data/db/cms_fixtures/cms/layouts/about-us/javascript.js +0 -0
  91. data/db/cms_fixtures/cms/layouts/about-us/people/attributes.yml +4 -0
  92. data/db/cms_fixtures/cms/layouts/about-us/people/content.html +55 -0
  93. data/db/cms_fixtures/cms/layouts/about-us/services/attributes.yml +4 -0
  94. data/db/cms_fixtures/cms/layouts/about-us/services/content.html +32 -0
  95. data/db/cms_fixtures/cms/layouts/about-us/services/javascript.js +0 -0
  96. data/db/cms_fixtures/cms/layouts/about-us/services/stylesheet.css +0 -0
  97. data/db/cms_fixtures/cms/layouts/about-us/stylesheet.css +0 -0
  98. data/db/cms_fixtures/cms/layouts/default-layout/attributes.yml +4 -0
  99. data/db/cms_fixtures/cms/layouts/default-layout/content.html +51 -0
  100. data/db/cms_fixtures/cms/layouts/default-layout/javascript.js +0 -0
  101. data/db/cms_fixtures/cms/layouts/default-layout/stylesheet.css +0 -0
  102. data/db/cms_fixtures/cms/pages/index/about-us/attributes.yml +8 -0
  103. data/db/cms_fixtures/cms/pages/index/about-us/people/attributes.yml +8 -0
  104. data/db/cms_fixtures/cms/pages/index/about-us/people/de/attributes.yml +8 -0
  105. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_a.html +1 -0
  106. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_b.html +1 -0
  107. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_c.html +1 -0
  108. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_d.html +1 -0
  109. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_a.html +1 -0
  110. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_b.html +1 -0
  111. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_c.html +1 -0
  112. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_d.html +1 -0
  113. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_a.html +1 -0
  114. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_b.html +1 -0
  115. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_c.html +1 -0
  116. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_d.html +1 -0
  117. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_a.html +1 -0
  118. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_b.html +1 -0
  119. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_c.html +1 -0
  120. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_d.html +1 -0
  121. data/db/cms_fixtures/cms/pages/index/about-us/people/en/attributes.yml +8 -0
  122. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_a.html +1 -0
  123. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_b.html +1 -0
  124. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_c.html +1 -0
  125. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_d.html +1 -0
  126. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_a.html +1 -0
  127. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_b.html +1 -0
  128. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_c.html +1 -0
  129. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_d.html +1 -0
  130. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_a.html +1 -0
  131. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_b.html +1 -0
  132. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_c.html +1 -0
  133. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_d.html +1 -0
  134. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_a.html +1 -0
  135. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_b.html +1 -0
  136. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_c.html +1 -0
  137. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_d.html +1 -0
  138. data/db/cms_fixtures/cms/pages/index/about-us/people/es/attributes.yml +8 -0
  139. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_a.html +1 -0
  140. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_b.html +1 -0
  141. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_c.html +1 -0
  142. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_d.html +1 -0
  143. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_a.html +1 -0
  144. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_b.html +1 -0
  145. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_c.html +1 -0
  146. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_d.html +1 -0
  147. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_a.html +1 -0
  148. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_b.html +1 -0
  149. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_c.html +1 -0
  150. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_d.html +1 -0
  151. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_a.html +1 -0
  152. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_b.html +1 -0
  153. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_c.html +1 -0
  154. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_d.html +1 -0
  155. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/attributes.yml +8 -0
  156. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_a.html +1 -0
  157. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_b.html +1 -0
  158. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_c.html +1 -0
  159. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_d.html +1 -0
  160. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_a.html +1 -0
  161. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_b.html +1 -0
  162. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_c.html +1 -0
  163. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_d.html +1 -0
  164. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_a.html +1 -0
  165. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_b.html +1 -0
  166. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_c.html +1 -0
  167. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_d.html +1 -0
  168. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/attributes.yml +8 -0
  169. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_a.html +1 -0
  170. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_b.html +1 -0
  171. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_c.html +1 -0
  172. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_d.html +1 -0
  173. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_a.html +1 -0
  174. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_b.html +1 -0
  175. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_c.html +1 -0
  176. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_d.html +1 -0
  177. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_a.html +1 -0
  178. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_b.html +1 -0
  179. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_c.html +1 -0
  180. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_d.html +1 -0
  181. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_a.html +1 -0
  182. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_b.html +1 -0
  183. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_c.html +1 -0
  184. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_d.html +1 -0
  185. data/db/cms_fixtures/cms/pages/index/about-us/services/attributes.yml +8 -0
  186. data/db/cms_fixtures/cms/pages/index/about-us/services/content_a.html +1 -0
  187. data/db/cms_fixtures/cms/pages/index/about-us/services/content_b.html +0 -0
  188. data/db/cms_fixtures/cms/pages/index/about-us/services/content_c.html +0 -0
  189. data/db/cms_fixtures/cms/pages/index/about-us/services/de/attributes.yml +8 -0
  190. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_a.html +1 -0
  191. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_b.html +1 -0
  192. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_c.html +1 -0
  193. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_a.html +1 -0
  194. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_b.html +1 -0
  195. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_c.html +1 -0
  196. data/db/cms_fixtures/cms/pages/index/about-us/services/en/attributes.yml +8 -0
  197. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_a.html +1 -0
  198. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_b.html +1 -0
  199. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_c.html +1 -0
  200. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_a.html +1 -0
  201. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_b.html +1 -0
  202. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_c.html +1 -0
  203. data/db/cms_fixtures/cms/pages/index/about-us/services/es/attributes.yml +8 -0
  204. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_a.html +1 -0
  205. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_b.html +1 -0
  206. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_c.html +1 -0
  207. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_a.html +1 -0
  208. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_b.html +1 -0
  209. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_c.html +1 -0
  210. data/db/cms_fixtures/cms/pages/index/about-us/services/title_a.html +1 -0
  211. data/db/cms_fixtures/cms/pages/index/about-us/services/title_b.html +0 -0
  212. data/db/cms_fixtures/cms/pages/index/about-us/services/title_c.html +0 -0
  213. data/db/cms_fixtures/cms/pages/index/attributes.yml +8 -0
  214. data/db/cms_fixtures/cms/pages/index/content.html +1 -0
  215. data/db/cms_fixtures/cms/pages/index/title.html +0 -0
  216. data/db/cms_fixtures/cms/snippets/snippet1/attributes.yml +3 -0
  217. data/db/cms_fixtures/cms/snippets/snippet1/content.html +1 -0
  218. data/db/cms_fixtures/sample-site/categories/files.yml +1 -0
  219. data/db/cms_fixtures/sample-site/categories/pages.yml +1 -0
  220. data/db/cms_fixtures/sample-site/categories/snippets.yml +1 -0
  221. data/db/cms_fixtures/sample-site/files/_sample.jpg.yml +5 -0
  222. data/db/cms_fixtures/sample-site/files/sample.jpg +0 -0
  223. data/db/cms_fixtures/sample-site/layouts/default/attributes.yml +1 -0
  224. data/db/cms_fixtures/sample-site/layouts/default/content.html +5 -0
  225. data/db/cms_fixtures/sample-site/layouts/default/javascript.js +1 -0
  226. data/db/cms_fixtures/sample-site/layouts/default/nested/attributes.yml +2 -0
  227. data/db/cms_fixtures/sample-site/layouts/default/nested/content.haml +3 -0
  228. data/db/cms_fixtures/sample-site/layouts/default/nested/javascript.js +1 -0
  229. data/db/cms_fixtures/sample-site/layouts/default/nested/stylesheet.css +1 -0
  230. data/db/cms_fixtures/sample-site/layouts/default/stylesheet.css +1 -0
  231. data/db/cms_fixtures/sample-site/pages/index/attributes.yml +6 -0
  232. data/db/cms_fixtures/sample-site/pages/index/child/attributes.yml +3 -0
  233. data/db/cms_fixtures/sample-site/pages/index/child/left.haml +1 -0
  234. data/db/cms_fixtures/sample-site/pages/index/child/right.html +1 -0
  235. data/db/cms_fixtures/sample-site/pages/index/child/thumbnail.png +0 -0
  236. data/db/cms_fixtures/sample-site/pages/index/content.html +2 -0
  237. data/db/cms_fixtures/sample-site/snippets/default/attributes.yml +4 -0
  238. data/db/cms_fixtures/sample-site/snippets/default/content.html +1 -0
  239. data/db/migrate/20170513221300_create_cms.rb +133 -0
  240. data/db/seeds/spain/translations.rb +2 -2
  241. data/db/seeds/translations_ca.rb +92 -0
  242. data/db/seeds/translations_de.rb +86 -85
  243. data/db/seeds/translations_en.rb +73 -73
  244. data/db/seeds/translations_es.rb +79 -78
  245. data/db/seeds/translations_ru.rb +92 -0
  246. data/db/yml_seeds/prop/flat_for_rent.yml +4 -4
  247. data/db/yml_seeds/sections.yml +2 -2
  248. data/db/yml_seeds/website.yml +3 -1
  249. data/lib/pwb/cms_data_loader.rb +38 -0
  250. data/lib/pwb/engine.rb +1 -0
  251. data/lib/pwb/locale_loader.rb +47 -0
  252. data/lib/pwb/seeder.rb +8 -5
  253. data/lib/pwb/version.rb +1 -1
  254. data/lib/tasks/pwb_tasks.rake +1 -0
  255. data/spec/dummy/config/routes.rb +5 -0
  256. data/spec/dummy/config/secrets.yml +5 -0
  257. data/spec/dummy/db/schema.rb +111 -1
  258. data/spec/dummy/log/development.log +0 -0
  259. data/spec/features/pwb/admin_spec.rb +14 -40
  260. data/spec/features/pwb/admin_spec_tmp.rb +54 -0
  261. data/spec/fixtures/to_import/pwb-properties.csv +2 -2
  262. data/spec/views/pwb/application_layout.html.erb_spec.rb +1 -0
  263. metadata +207 -235
  264. data/app/themes/berlin/views/pwb/welcome/_about_us.html.erb +0 -36
  265. data/db/seeds/translations_others.rb +0 -215
  266. data/spec/dummy/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css +0 -16
  267. data/spec/dummy/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css.gz +0 -0
  268. data/spec/dummy/public/assets/application-ec8550e416fd8df1557ddb7f132ccd38baaafd36e4c5c9aff8420fbd47c0313f.js +0 -617
  269. data/spec/dummy/public/assets/application-ec8550e416fd8df1557ddb7f132ccd38baaafd36e4c5c9aff8420fbd47c0313f.js.gz +0 -0
  270. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot +0 -0
  271. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz +0 -0
  272. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg +0 -288
  273. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg.gz +0 -0
  274. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226e15439557a5a80742.woff +0 -0
  275. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf +0 -0
  276. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz +0 -0
  277. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2 +0 -0
  278. data/spec/dummy/public/assets/pwb/application-0dc6ff845cde8e032ed365593c17fe09c18a6966d44f551946bf1673d8d1ac51.css +0 -13
  279. data/spec/dummy/public/assets/pwb/application-0dc6ff845cde8e032ed365593c17fe09c18a6966d44f551946bf1673d8d1ac51.css.gz +0 -0
  280. data/spec/dummy/public/assets/pwb/application-b4df8e7ae7700a0d09d88175af77e7f457ca2fbe15ae08450551ebf3bfb0c4d1.js +0 -15656
  281. data/spec/dummy/public/assets/pwb/application-b4df8e7ae7700a0d09d88175af77e7f457ca2fbe15ae08450551ebf3bfb0c4d1.js.gz +0 -0
  282. data/spec/dummy/public/assets/pwb/themes/berlin-279c2e3a7fa11a902fdee83a6819dcc315ff8eb240cfad21b1322cedadb07ea7.js +0 -18690
  283. data/spec/dummy/public/assets/pwb/themes/berlin-279c2e3a7fa11a902fdee83a6819dcc315ff8eb240cfad21b1322cedadb07ea7.js.gz +0 -0
  284. data/spec/dummy/public/assets/pwb/themes/berlin-8038d5cfd670e73fbffb581f6bb8d8c00ac448957945622c5c34438c467d218b.css +0 -8582
  285. data/spec/dummy/public/assets/pwb/themes/berlin-8038d5cfd670e73fbffb581f6bb8d8c00ac448957945622c5c34438c467d218b.css.gz +0 -0
  286. data/spec/dummy/public/assets/pwb/themes/chic-facdff61de4827adfd797b6a36ffd6c8b432072df7190ed722d039f971caa539.css +0 -3500
  287. data/spec/dummy/public/assets/pwb/themes/chic-facdff61de4827adfd797b6a36ffd6c8b432072df7190ed722d039f971caa539.css.gz +0 -0
  288. data/spec/dummy/public/assets/pwb/themes/default-d697fb0c278f500986e614ddd7eb41fd7db502a54f3370b3e8166cc1714509d0.css +0 -8423
  289. data/spec/dummy/public/assets/pwb/themes/default-d697fb0c278f500986e614ddd7eb41fd7db502a54f3370b3e8166cc1714509d0.css.gz +0 -0
  290. data/spec/dummy/public/assets/pwb_admin_panel/application-2d624898965d7a347eb7f365feab34257032c25051633370811ed7dfd24d7c8c.js +0 -61
  291. data/spec/dummy/public/assets/pwb_admin_panel/application-2d624898965d7a347eb7f365feab34257032c25051633370811ed7dfd24d7c8c.js.gz +0 -0
  292. data/spec/dummy/public/assets/pwb_admin_panel/application-f0e38d58d1ce32501b22edd16697f45b561fa44b5be9265398a05e8dee169885.css +0 -17970
  293. data/spec/dummy/public/assets/pwb_admin_panel/application-f0e38d58d1ce32501b22edd16697f45b561fa44b5be9265398a05e8dee169885.css.gz +0 -0
  294. data/spec/dummy/public/img/about-us.png +0 -0
  295. data/spec/dummy/public/img/agents/agent-1.png +0 -0
  296. data/spec/dummy/public/img/agents/agent-3.png +0 -0
  297. data/spec/dummy/public/img/agents/agent-4.png +0 -0
  298. data/spec/dummy/public/img/agents/agent-5.png +0 -0
  299. data/spec/dummy/public/img/banner-ads.jpg +0 -0
  300. data/spec/dummy/public/img/blog-img-1.jpg +0 -0
  301. data/spec/dummy/public/img/blog-img-2.jpg +0 -0
  302. data/spec/dummy/public/img/blog-img-3.jpg +0 -0
  303. data/spec/dummy/public/img/client-brand-1.png +0 -0
  304. data/spec/dummy/public/img/client-brand-2.png +0 -0
  305. data/spec/dummy/public/img/client-brand-3.png +0 -0
  306. data/spec/dummy/public/img/client-brand-4.png +0 -0
  307. data/spec/dummy/public/img/client-brand-5.png +0 -0
  308. data/spec/dummy/public/img/favicon.ico +0 -0
  309. data/spec/dummy/public/img/gallery/big/1.jpg +0 -0
  310. data/spec/dummy/public/img/gallery/big/10.jpg +0 -0
  311. data/spec/dummy/public/img/gallery/big/11 - Copy.jpg +0 -0
  312. data/spec/dummy/public/img/gallery/big/12.jpg +0 -0
  313. data/spec/dummy/public/img/gallery/big/2.jpg +0 -0
  314. data/spec/dummy/public/img/gallery/big/3.jpg +0 -0
  315. data/spec/dummy/public/img/gallery/big/4.jpg +0 -0
  316. data/spec/dummy/public/img/gallery/big/5.jpg +0 -0
  317. data/spec/dummy/public/img/gallery/big/6.jpg +0 -0
  318. data/spec/dummy/public/img/gallery/big/7.jpg +0 -0
  319. data/spec/dummy/public/img/gallery/big/8.jpg +0 -0
  320. data/spec/dummy/public/img/gallery/big/9.jpg +0 -0
  321. data/spec/dummy/public/img/gallery/fancybox_buttons.png +0 -0
  322. data/spec/dummy/public/img/gallery/fancybox_loading.gif +0 -0
  323. data/spec/dummy/public/img/gallery/fancybox_loading@2x.gif +0 -0
  324. data/spec/dummy/public/img/gallery/fancybox_overlay.png +0 -0
  325. data/spec/dummy/public/img/gallery/fancybox_sprite.png +0 -0
  326. data/spec/dummy/public/img/gallery/fancybox_sprite@2x.png +0 -0
  327. data/spec/dummy/public/img/gallery/small/1.jpg +0 -0
  328. data/spec/dummy/public/img/gallery/small/10.jpg +0 -0
  329. data/spec/dummy/public/img/gallery/small/11.jpg +0 -0
  330. data/spec/dummy/public/img/gallery/small/12.jpg +0 -0
  331. data/spec/dummy/public/img/gallery/small/2.jpg +0 -0
  332. data/spec/dummy/public/img/gallery/small/3.jpg +0 -0
  333. data/spec/dummy/public/img/gallery/small/4.jpg +0 -0
  334. data/spec/dummy/public/img/gallery/small/5.jpg +0 -0
  335. data/spec/dummy/public/img/gallery/small/6.jpg +0 -0
  336. data/spec/dummy/public/img/gallery/small/7.jpg +0 -0
  337. data/spec/dummy/public/img/gallery/small/8.jpg +0 -0
  338. data/spec/dummy/public/img/gallery/small/9.jpg +0 -0
  339. data/spec/dummy/public/img/item/1.jpg +0 -0
  340. data/spec/dummy/public/img/item/2.jpg +0 -0
  341. data/spec/dummy/public/img/item/3.jpg +0 -0
  342. data/spec/dummy/public/img/item/4.jpg +0 -0
  343. data/spec/dummy/public/img/item/5.jpg +0 -0
  344. data/spec/dummy/public/img/item/6.jpg +0 -0
  345. data/spec/dummy/public/img/logo.png +0 -0
  346. data/spec/dummy/public/img/promo-banner.jpg +0 -0
  347. data/spec/dummy/public/img/property-header-bg.jpg +0 -0
  348. data/spec/dummy/public/img/property-view-2.jpg +0 -0
  349. data/spec/dummy/public/img/signin-bg.jpg +0 -0
  350. data/spec/dummy/public/img/slider/1.jpg +0 -0
  351. data/spec/dummy/public/img/slider/2.jpg +0 -0
  352. data/spec/dummy/public/img/slider/3.jpg +0 -0
  353. data/spec/dummy/public/img/slider/4.jpg +0 -0
  354. data/spec/dummy/public/img/slider/5.jpg +0 -0
  355. data/spec/dummy/public/img/slider/6.jpg +0 -0
  356. data/spec/dummy/public/img/testimonial-1.png +0 -0
  357. data/spec/dummy/public/img/testimonial-2.png +0 -0
  358. data/spec/dummy/public/img/testimonial-3.png +0 -0
  359. data/spec/dummy/public/img/testimonial-bg.jpg +0 -0
  360. data/spec/dummy/public/js/bootstrap.js +0 -2363
  361. data/spec/dummy/public/js/custom.js +0 -355
  362. data/spec/dummy/public/js/jquery.fancybox.pack.js +0 -46
  363. data/spec/dummy/public/js/jquery.min.js +0 -5
  364. data/spec/dummy/public/js/jquery.mixitup.js +0 -2098
  365. data/spec/dummy/public/js/nouislider.js +0 -1899
  366. data/spec/dummy/public/js/slick.js +0 -2670
  367. data/spec/dummy/public/system/comfy/cms/files/files/000/000/003/cms_thumb/rerenting-landing_framed.png +0 -0
@@ -5,10 +5,11 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <meta name="robots" content="index, follow">
7
7
  <%# display_meta_tags site: @current_website.tenant_display_name %>
8
- <link href="https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css" rel="stylesheet">
9
8
  <%= stylesheet_link_tag "pwb/themes/default", media: "all" %>
10
- <link rel="stylesheet" media="all" href="/custom_css.css" data-turbolinks-track="true" />
11
- <%= javascript_include_tag "pwb/application" %>
9
+ <style>
10
+ <%= custom_styles "default" %>
11
+ </style>
12
+ <%= javascript_include_tag "pwb/application", async: false %>
12
13
  <%= csrf_meta_tags %>
13
14
  <title><%= yield(:page_title) %></title>
14
15
  </head>
@@ -21,7 +22,27 @@
21
22
  <%= yield %>
22
23
  </div>
23
24
  <%= render :partial => '/pwb/footer', :locals => {} %>
25
+ <%= render :partial => '/pwb/analytics', :locals => {} %>
24
26
  </div>
25
27
  <%= insert_paloma_hook %>
28
+ <noscript id="deferred-styles">
29
+ <link href="https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css" rel="stylesheet">
30
+ <!-- Google Font -->
31
+ <link href='https://fonts.googleapis.com/css?family=Vollkorn' rel='stylesheet' type='text/css'>
32
+ <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
33
+ </noscript>
34
+ <script>
35
+ var loadDeferredStyles = function() {
36
+ var addStylesNode = document.getElementById("deferred-styles");
37
+ var replacement = document.createElement("div");
38
+ replacement.innerHTML = addStylesNode.textContent;
39
+ document.body.appendChild(replacement)
40
+ addStylesNode.parentElement.removeChild(addStylesNode);
41
+ };
42
+ var raf = requestAnimationFrame || mozRequestAnimationFrame ||
43
+ webkitRequestAnimationFrame || msRequestAnimationFrame;
44
+ if (raf) raf(function() { window.setTimeout(loadDeferredStyles, 0); });
45
+ else window.addEventListener('load', loadDeferredStyles);
46
+ </script>
26
47
  </body>
27
48
  </html>
@@ -28,8 +28,7 @@
28
28
  <div class="container">
29
29
  <div class="row">
30
30
  <div class="col-md-6">
31
- <img src="<%= @content.default_photo_url%>" alt=""
32
- class="img-responsive about-us-img">
31
+ <%= opt_image_tag(@content.default_photo, :quality => "auto", height: 600, crop: "scale", class: "img-responsive about-us-img", alt: "") %>
33
32
  </div>
34
33
  <div class="col-md-6">
35
34
  <div class="section-title-wr mt-40">
@@ -0,0 +1,30 @@
1
+ <% page_title @current_agency.company_name %>
2
+ <!-- MAIN CONTENT -->
3
+ <div class="pg-opt">
4
+ <div class="container">
5
+ <div class="row">
6
+ <div class="col-md-6">
7
+ <h2>
8
+ <%= I18n.t(@title_key) %>
9
+ </h2>
10
+ </div>
11
+ <div class="col-md-6" style="">
12
+ <ol class="breadcrumb">
13
+ <li><a href="/">
14
+ <%= I18n.t("webContentSections.home") %>
15
+ </a></li>
16
+ <li class="active">
17
+ <%= I18n.t(@title_key) %>
18
+ </li>
19
+ </ol>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <div class="comfy-content-panel">
25
+ <%# render '/pwb/welcome/content_area_cols' %>
26
+ <% @cms_pages.each do |cms_page| %>
27
+ <%== cms_page.content_cache %>
28
+ <% end %>
29
+ </div>
30
+ <!-- FOOTER -->
@@ -10,7 +10,8 @@
10
10
  <div class="wp-block white property list">
11
11
  <div class="figure">
12
12
  <%= link_to property.contextual_show_path(rent_or_sale) do %>
13
- <%= image_tag("#{property.ordered_photo_url 1}", class: 'img-responsive') %>
13
+ <%= opt_image_tag((property.ordered_photo 1), quality: "auto",
14
+ height: 300, crop: "scale", class: "img-responsive") %>
14
15
  <% end %>
15
16
  </div>
16
17
  <div class="wp-block-body">
@@ -11,7 +11,9 @@
11
11
  <div class="carousel-inner">
12
12
 
13
13
  <% @carousel_items.each.with_index do |carousel_item, index| %>
14
- <div class="item item-dark <%= " active " if index == 0 %>" style="background-image:linear-gradient( rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1) ),url(<%= carousel_item.default_photo_url %>);">
14
+ <div class="item item-dark <%= " active " if index == 0 %>"
15
+ style="<%= bg_image carousel_item.default_photo, quality: "auto",
16
+ height: 800, crop: "fit", gradient: "rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)" %>">
15
17
  <div class="container">
16
18
  <div class="carousel-content">
17
19
  <%== carousel_item.raw %>
@@ -18,6 +18,7 @@
18
18
  <%= render :partial => '/pwb/header', :locals => { not_devise: false } %>
19
19
  <%= yield %>
20
20
  <%= render :partial => '/pwb/footer', :locals => {} %>
21
+ <%= render :partial => '/pwb/analytics', :locals => {} %>
21
22
  </div>
22
23
  <%= insert_paloma_hook %>
23
24
  </body>
@@ -0,0 +1,15 @@
1
+ <% if @current_website.render_google_analytics %>
2
+ <script type="text/javascript">
3
+
4
+ var _gaq = _gaq || [];
5
+ _gaq.push(['_setAccount', '<%= @current_website.analytics_id %>']);
6
+ _gaq.push(['_trackPageview']);
7
+
8
+ (function() {
9
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
10
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
11
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
12
+ })();
13
+
14
+ </script>
15
+ <% end %>
@@ -30,16 +30,13 @@
30
30
  <%== @footer_content.raw %>
31
31
  </div>
32
32
  </div>
33
-
34
33
  </div>
35
34
  <hr>
36
35
  <div class="row">
37
36
  <div class="col-sm-6 copyright">
38
-
39
37
  <% @sections.each do |section| %>
40
38
  <%= footer_link(section) %>
41
39
  <% end %>
42
-
43
40
  <%# link_to I18n.t("legalAdvice"), pwb.legal_path(locale: locale) %>
44
41
  <%# link_to I18n.t("privacyPolicy"), pwb.privacy_policy_path(locale: locale) %>
45
42
  <%= link_to I18n.t("navbar.admin"), pwb.admin_with_locale_path(locale: locale) %>.
@@ -47,15 +44,6 @@
47
44
  <div class="col-sm-6">
48
45
  <p style="float: right;">Powered by <a href="http://propertywebbuilder.com">PropertyWebBuilder</a></p>
49
46
  </div>
50
- <!-- <div class="col-lg-9 copyright">
51
- 2014 © Web Pixels. All rights reserved.
52
- <a href="#">Terms and conditions</a>
53
- </div>
54
- <div class="col-lg-3">
55
- <a href="http://www.webpixels.ro" title="Made with love by Web Pixels" target="_blank" class="">
56
- <img src="images/webpixels-footer-logo.png" alt="Web Pixels - Designing Forward | Logo" class="pull-right">
57
- </a>
58
- </div> -->
59
47
  </div>
60
48
  </div>
61
49
  </div>
@@ -352,5 +352,4 @@ nav.venta_alquiler a:hover {
352
352
  border-bottom: 3px solid <%= @current_website.style_variables["primary_color"] %>;
353
353
  }
354
354
  */
355
- <%# @current_website.raw_css %>
356
355
 
@@ -100,5 +100,4 @@ header .text-navbar-brand {
100
100
 
101
101
  <%= render :partial => '/pwb/custom_css/shared.css', :locals => {} %>
102
102
 
103
- <%# @current_website.raw_css %>
104
103
 
@@ -32,4 +32,5 @@ footer .col ul li {
32
32
  }
33
33
 
34
34
 
35
+ <%= @current_website.raw_css %>
35
36
 
@@ -1,22 +1,22 @@
1
1
  <div class="product-gallery">
2
2
  <div id="propCarousel" class="carousel carousel-1 slide" data-ride="carousel" data-interval="<%= @carousel_speed %>">
3
- <ol class="carousel-indicators">
3
+ <ol class="carousel-indicators">
4
4
  <% @property_details.prop_photos.each.with_index do |photo, index| %>
5
5
  <li data-target="#propCarousel" data-slide-to="<%= index %>" class=""></li>
6
6
  <% end %>
7
- </ol>
7
+ </ol>
8
8
  <div class="carousel-inner">
9
9
  <% @property_details.prop_photos.each.with_index do |photo, index| %>
10
10
  <div class="item item-dark <%= "active" if index == 0 %>">
11
- <img src="<%= photo.image.url %>" style="height: 100%;" />
12
- <% if @property_details.contextual_price_with_currency @operation_type %>
11
+ <%= opt_image_tag((photo ), :quality => "auto", height: 600, crop: "scale", class: "", alt: "") %>
12
+ <% if @property_details.contextual_price_with_currency @operation_type %>
13
13
  <div class="ribbon dark fondo_accion">
14
14
  <span>
15
15
  <%= @property_details.contextual_price_with_currency @operation_type %>
16
16
  </span>
17
17
  </div>
18
- <% end %>
19
- </div>
18
+ <% end %>
19
+ </div>
20
20
  <% end %>
21
21
  </div>
22
22
  <!-- Controls -->
@@ -28,29 +28,15 @@
28
28
  </a>
29
29
  </div>
30
30
  <div class="thumbnail-images" style="display:none;">
31
- <a href="#" class="theater" rel="group" hidefocus="true">
32
- <img src="<%= @property_details.ordered_photo_url 2 %>" alt="">
33
- </a>
34
- <a href="#" class="theater" rel="group" hidefocus="true">
35
- <img src="<%= @property_details.ordered_photo_url 3 %>" alt="">
36
- </a>
37
- <a href="#" class="theater" rel="group" hidefocus="true">
38
- <img src="<%= @property_details.ordered_photo_url 4 %>" alt="">
39
- </a>
40
- <a href="#" class="theater" rel="group" hidefocus="true">
41
- <img src="<%= @property_details.ordered_photo_url 5 %>" alt="">
42
- </a>
31
+ <%# properties_carousel_footer @property_details.prop_photos %>
43
32
  </div>
44
-
45
-
46
-
47
33
  <div class="wp-block property list no-border">
48
34
  <div class="wp-block-content clearfix">
49
35
  <div class="wp-block-footer style2">
50
36
  <ul class="aux-info">
51
37
  <li><i class="fa fa-arrows-alt"></i>
52
38
  <%= @property_details.constructed_area %><%= area_unit @property_details %>
53
- </li>
39
+ </li>
54
40
  <li><i class="fa fa-bed"></i>
55
41
  <%= @property_details.count_bedrooms %>
56
42
  </li>
@@ -58,13 +44,13 @@
58
44
  <%= @property_details.count_bathrooms %>
59
45
  </li>
60
46
  <li>
61
- <% if @property_details.has_garage %>
62
- <i class="fa fa-car"></i>
63
- <%= @property_details.count_garages %>
64
- <% end %>
47
+ <% if @property_details.has_garage %>
48
+ <i class="fa fa-car"></i>
49
+ <%= @property_details.count_garages %>
50
+ <% end %>
65
51
  </li>
66
52
  </ul>
67
53
  </div>
68
54
  </div>
69
55
  </div>
70
- </div>
56
+ </div>
@@ -50,7 +50,7 @@
50
50
  <tr>
51
51
  <td><strong><%= t "property.operationType" %>:</strong></td>
52
52
  <td>
53
- <%= t @operation_type %>
53
+ <%= t @operation_type_key %>
54
54
  </td>
55
55
  </tr>
56
56
  <tr>
@@ -1,66 +1,64 @@
1
-
2
- <li class="property-item row <%= 'featured' if property.highlighted %> cuadro_inmueble"
1
+ <li class="property-item row <%= 'featured' if property.highlighted %> cuadro_inmueble"
3
2
  data-price="<%= property.contextual_price @operation_type %>" >
4
- <!-- data-price above used for client side sorting with paloma -->
5
- <% if property.highlighted %>
6
- <div class="prop-listing-header fondo_secundario">
7
- <%= t "property.highlightedProperty" %>
8
- </div>
3
+ <!-- data-price above used for client side sorting with paloma -->
4
+ <% if property.highlighted %>
5
+ <div class="prop-listing-header fondo_secundario">
6
+ <%= t "property.highlightedProperty" %>
7
+ </div>
8
+ <% end %>
9
+ <div class="prop-listing-image col-xs-12 col-sm-5 col-md-4">
10
+ <div class="prop-figure">
11
+ <%= link_to property.contextual_show_path( @operation_type ) do %>
12
+ <%= opt_image_tag((property.ordered_photo 1), quality: "auto",
13
+ height: 240, crop: "scale", class: "img-responsive") %>
14
+ <% end %>
15
+ </div>
16
+ </div>
17
+ <div class="prop-listing-body col-xs-12 col-sm-7 col-md-8" style="padding-bottom:0;">
18
+ <div class="prop-listing-text">
19
+ <h3>
20
+ <%= link_to property.contextual_show_path( @operation_type ), class: "action_link" do %>
21
+ <%= property.title %>
9
22
  <% end %>
10
- <div class="prop-listing-image col-xs-12 col-sm-5 col-md-4">
11
- <div class="prop-figure">
12
- <%= link_to property.contextual_show_path( @operation_type ) do %>
13
- <img src="<%= property.ordered_photo_url 1 %>" class="img-responsive" alt="">
14
- <% end %>
15
- </div>
16
- </div>
17
- <div class="prop-listing-body col-xs-12 col-sm-7 col-md-8" style="padding-bottom:0;">
18
- <div class="prop-listing-text">
19
- <h3>
20
- <%= link_to property.contextual_show_path( @operation_type ), class: "action_link" do %>
21
- <%= property.title %>
22
- <% end %>
23
- </h3>
24
- <div>
25
- <%= property.reference %>
26
- </div>
27
- <div class="truncated_description" style="display:none;">
28
- <%# property.description %>
29
- </div>
30
- </div>
31
- <div class="meta-info">
32
- <div>
33
- <%= link_to property.contextual_show_path( @operation_type ), :class => "ver_inmueble" do %>
34
- <i class="fa fa-chevron-right"></i>
35
- <%= t "property.goToProperty" %>
36
- <% end %>
37
-
38
- </div>
39
- <ul>
40
- <li><span class="precio negrita">
41
- <%= property.contextual_price_with_currency @operation_type %>
42
- </span></li>
43
- <li class=""><i class="fa fa-bed"></i> <small>
44
- <%= property.count_bedrooms %>
45
- </small></li>
46
- <li class=""><i class="fa fa-tint"></i> <small>
47
- <%= property.count_bathrooms %>
48
- </small></li>
49
- <li class=""><i class="fa fa-arrows-alt"></i> <small>
50
- <%= property.constructed_area %> <%= area_unit property %>
51
- </small></li>
52
- <li class=""><i class="fa fa-car"></i> <small>
53
- <%= property.count_garages %>
54
- </small>
55
- </li>
56
- <!-- <li class="hidden text-right">&nbsp;</li> -->
57
- </ul>
58
- </div>
59
-
60
- <% if property.highlighted && (property.contextual_price_with_currency @operation_type) %>
61
- <div style="" class="ribbon dark fondo_accion"><span>
62
- <%= property.contextual_price_with_currency @operation_type %>
63
- </span></div>
64
- <% end %>
65
- </div>
66
- </li>
23
+ </h3>
24
+ <div>
25
+ <%= property.reference %>
26
+ </div>
27
+ <div class="truncated_description" style="display:none;">
28
+ <%# property.description %>
29
+ </div>
30
+ </div>
31
+ <div class="meta-info">
32
+ <div>
33
+ <%= link_to property.contextual_show_path( @operation_type ), :class => "ver_inmueble" do %>
34
+ <i class="fa fa-chevron-right"></i>
35
+ <%= t "property.goToProperty" %>
36
+ <% end %>
37
+ </div>
38
+ <ul>
39
+ <li><span class="precio negrita">
40
+ <%= property.contextual_price_with_currency @operation_type %>
41
+ </span></li>
42
+ <li class=""><i class="fa fa-bed"></i> <small>
43
+ <%= property.count_bedrooms %>
44
+ </small></li>
45
+ <li class=""><i class="fa fa-tint"></i> <small>
46
+ <%= property.count_bathrooms %>
47
+ </small></li>
48
+ <li class=""><i class="fa fa-arrows-alt"></i> <small>
49
+ <%= property.constructed_area %> <%= area_unit property %>
50
+ </small></li>
51
+ <li class=""><i class="fa fa-car"></i> <small>
52
+ <%= property.count_garages %>
53
+ </small>
54
+ </li>
55
+ <!-- <li class="hidden text-right">&nbsp;</li> -->
56
+ </ul>
57
+ </div>
58
+ <% if property.highlighted && (property.contextual_price_with_currency @operation_type) %>
59
+ <div style="" class="ribbon dark fondo_accion"><span>
60
+ <%= property.contextual_price_with_currency @operation_type %>
61
+ </span></div>
62
+ <% end %>
63
+ </div>
64
+ </li>
@@ -1,7 +1,6 @@
1
- <!-- TODO - delete - not in use from may 2017 -->
1
+ <!-- TODO - delete - not in use from may 2017
2
2
  <li class="property-item <%= 'featured' if property.highlighted %> cuadro_inmueble"
3
3
  data-price="<%= property.contextual_price @operation_type %>" >
4
- <!-- data-price above used for client side sorting with paloma -->
5
4
  <% if property.highlighted %>
6
5
  <div class="listing-header fondo_principal">
7
6
  <%= t "property.highlightedProperty" %>
@@ -53,4 +52,5 @@
53
52
  </span></div>
54
53
  <% end %>
55
54
  </div>
56
- </li>
55
+ </li>
56
+ -->
@@ -1,6 +1,60 @@
1
1
  [{
2
2
  "name": "default",
3
3
  "id": "default",
4
+ // "cmsSections": [{
5
+ // "tabValue": "about-us",
6
+ // "tabTitleKey": "webContentSections.aboutUs",
7
+ // "cmsPartsList": [{
8
+ // "tabValue": "services",
9
+ // "tabTitleKey": "webContentSections.services",
10
+ // "label": "about_us_services",
11
+ // "editorBlocks": [
12
+ // [{
13
+ // "label": "title_a",
14
+ // "isSingleLineText": "true"
15
+ // }, {
16
+ // "label": "content_a",
17
+ // "isMultipleLineText": "true"
18
+ // }],
19
+ // [{
20
+ // "label": "title_b",
21
+ // "isSingleLineText": "true"
22
+ // }, {
23
+ // "label": "content_b",
24
+ // "isMultipleLineText": "true"
25
+ // }],
26
+ // [{
27
+ // "label": "title_c",
28
+ // "isSingleLineText": "true"
29
+ // }, {
30
+ // "label": "content_c",
31
+ // "isMultipleLineText": "true"
32
+ // }]
33
+ // ]
34
+ // }, {
35
+ // "tabValue": "people",
36
+ // "tabTitleKey": "webContentSections.people",
37
+ // "label": "about_us_people",
38
+ // "editorBlocks": [
39
+ // [
40
+ // "title_a",
41
+ // "content_a"
42
+ // ],
43
+ // [
44
+ // "title_b",
45
+ // "content_b"
46
+ // ],
47
+ // [
48
+ // "title_c",
49
+ // "content_c"
50
+ // ]
51
+
52
+ // ]
53
+ // }]
54
+ // }, {
55
+ // "tabValue": "legal",
56
+ // "tabTitleKey": "webContentSections.legal"
57
+ // }],
4
58
  // https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx
5
59
  "availableLocaleFields": [{
6
60
  "labelTextTKey": "es",
@@ -22,7 +76,7 @@
22
76
  }, {
23
77
  "labelTextTKey": "pt",
24
78
  "fieldName": "pt",
25
- "localeVariants": ["pt-PT","pt-BR"],
79
+ "localeVariants": ["pt-PT", "pt-BR"],
26
80
  "isNotComplete": true
27
81
  }, {
28
82
  "labelTextTKey": "ru",
@@ -31,10 +85,6 @@
31
85
  "isNotComplete": true
32
86
  }
33
87
  // }, {
34
- // "labelTextTKey": "de",
35
- // "fieldName": "de",
36
- // "localeVariants": ["de-DE"]
37
- // }, {
38
88
  // "labelTextTKey": "hi",
39
89
  // "fieldName": "hi",
40
90
  // "localeVariants": ["hi-IN"]
@@ -42,18 +92,6 @@
42
92
  // "labelTextTKey": "it",
43
93
  // "fieldName": "it",
44
94
  // "localeVariants": ["it-IT"]
45
- // }, {
46
- // "labelTextTKey": "pt",
47
- // "fieldName": "pt",
48
- // "localeVariants": ["pt-PT"]
49
- // }, {
50
- // "labelTextTKey": "ru",
51
- // "fieldName": "ru",
52
- // "localeVariants": ["ru-RU"]
53
- // , {
54
- // "labelTextTKey": "fr",
55
- // "fieldName": "fr",
56
- // "localeVariants": ["fr-FR"]
57
95
  // }
58
96
  ],
59
97
  // http://www.xe.com/iso4217.php
@@ -81,16 +119,16 @@
81
119
  },{
82
120
  "value": "CLP",
83
121
  "labelTextTKey": "clp"
84
- },{
122
+ }, {
85
123
  "value": "CNY",
86
124
  "labelTextTKey": "cny"
87
- },{
125
+ }, {
88
126
  "value": "EUR",
89
127
  "labelTextTKey": "eur"
90
128
  }, {
91
129
  "value": "USD",
92
130
  "labelTextTKey": "usd"
93
- },{
131
+ }, {
94
132
  "value": "INR",
95
133
  "labelTextTKey": "inr"
96
134
  }, {
@@ -139,7 +177,7 @@
139
177
  "importPropertiesTabsList": [{
140
178
  "tabValue": "from_upload",
141
179
  "tabTitleKey": "ioSections.fromUpload"
142
- // "importLabelKey": "btnLabels.importTranslations"
180
+ // "importLabelKey": "btnLabels.importTranslations"
143
181
  }, {
144
182
  "tabValue": "from_mls",
145
183
  "tabTitleKey": "ioSections.fromMls"