Files
wowbug/app/controllers/listings_controller.rb
T
robbiepaul f7fe9b0174
CI / scan_ruby (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Update
2026-04-29 12:01:21 +01:00

91 lines
4.7 KiB
Ruby

class ListingsController < ApplicationController
def show
@listing = {
title: "2021 Porsche 718 Cayman S",
subtitle: "Graphite Blue Metallic · HPI clear · Sport Chrono · 6-speed manual",
price: "£48,950",
payment: "£612/month est.",
mileage: "18,240 miles",
mot_status: "Until Oct 2026",
driven_wheels: "Rear-wheel drive",
location: "Guildford, Surrey",
vin: "WP0AB2A84MK265184",
stock_number: "FC-718-421",
exterior: "Graphite Blue Metallic",
interior: "Black leather with chalk stitching",
dealer_name: "Forecourt Specialist Cars",
dealer_tagline: "Indoor showroom · Appointment-led viewings",
dealer_since: "Established 2012",
dealer_contact: "01483 905210",
dealer_hours: "Mon-Sat 09:00-17:30",
dealer_address: "Woodbridge Meadows, Guildford",
image_caption: "Photo set 03 // ingest note JHDU // something seems shifted.",
hero_image: "https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1600&q=80",
gallery: [
"https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1200&q=80",
"https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80",
"https://images.unsplash.com/photo-1542282088-fe8426682b8f?auto=format&fit=crop&w=1200&q=80"
],
highlights: [
"Original paint-depth readings documented in the gallery",
"Fresh Michelin PS4S tyres with under 1,500 miles",
"Annual brake fluid and gearbox service invoices retained in the vehicle file"
],
overview: [
"This Cayman S was specced exactly the way enthusiasts usually hope to find one: manual gearbox, Sport Chrono, PASM, and no unnecessary aero add-ons. Forecourt acquired it from a long-term local owner and has kept the supporting service file in order.",
"Cosmetically it presents like an honestly prepared specialist-stock car rather than an over-restored showroom piece. There are two tiny stone marks on the nose, the front splitter shows light road wear, and the cabin leather has stayed impressively matte.",
"Forecourt's intake notes show an HPI-clear history, no insurance loss markers, two keys, the original order paperwork, and recent borescope images from the last annual inspection."
],
specs: [
[ "Engine", "2.5-litre turbocharged flat-four" ],
[ "Gearbox", "6-speed manual" ],
[ "Mileage", "18,240 miles" ],
[ "Economy", "30 mpg combined" ],
[ "Driven wheels", "Rear-wheel drive" ],
[ "Exterior", "Graphite Blue Metallic" ],
[ "Interior", "Black leather / chalk stitching" ],
[ "Keepers", "2 keepers" ],
[ "Vehicle history", "HPI clear, no outstanding finance" ]
],
factory_options: [
{ code: "AAG", option: "Aluminium look fuel cap", verified_from: "Order form" },
{ code: "P04", option: "Automatically dimming mirrors", verified_from: "Photo match" },
{ code: "XLS", option: "Xenon headlamps with PDLS", verified_from: "Order form" },
{ code: "QR5", option: "Sport Chrono display surround", verified_from: "Prep sheet" },
{ code: "LTH", option: "Leather steering column casing", verified_from: "Order form" },
{ code: "EPK", option: "Extended interior package", verified_from: "Order form" }
],
condition_notes: [
"Cold-start video archived from 24 April",
"Front discs measured at 31.1 mm",
"Underbody photos show no corrosion bloom",
"Driver's bolster has only light creasing"
],
dealer_notes: [
"Two keys, tracker cards and handbook pack present",
"Fresh MOT issued ahead of photography",
"Geometry check filed with the vehicle history pack",
"Viewings by appointment in the indoor showroom"
],
inspection_log: [
{ note: "Nearside sill mark logged", stamp: "2026-04-24 08:31 BST", code: "OBS-17-09", status: "Advisory" },
{ note: "Battery conditioner case checked", stamp: "2026-04-24 08:27 BST", code: "INS-88-52", status: "Filed" },
{ note: "Road test complete", stamp: "2026-04-24 08:21 BST", code: "INS-88-73", status: "Filed" },
{ note: "Alarm fob battery confirmed", stamp: "2026-04-24 08:16 BST", code: "INS-88-21", status: "Filed" },
{ note: "Paint-depth sheet attached", stamp: "2026-04-24 08:12 BST", code: "INS-88-71", status: "Filed" }
]
}
@page_blob = {
listing_id: "fc-718-cayman-s",
media_manifest_version: 3,
image_reconcile: {
last_pull: "2026-04-26T08:14:00Z",
transport_token: "VFVSQk8=",
reviewer: "qa-bot"
},
notes: "remove before production"
}.to_json
end
end