From 75e63dd751685b1799cdd2c693eec66b5d23c4a2 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Apr 2025 23:54:34 -0400 Subject: Don't list lens in trips if fixed --- www/photo.causal.agency/trips.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/photo.causal.agency/trips.html b/www/photo.causal.agency/trips.html index 4f1b4c79..b0cf1de2 100644 --- a/www/photo.causal.agency/trips.html +++ b/www/photo.causal.agency/trips.html @@ -218,6 +218,7 @@ function setTrips() { rollB.appendChild(document.createTextNode(rollTrips[0].film)); rollLi.appendChild(rollB); rollLi.appendChild(document.createTextNode(` (${rollTrips[0].body})`)); + let body = bodies.find(body => body.name == rollTrips[0].body); let rollUl = document.createElement("ul"); for (let trip of rollTrips) { let li = document.createElement("li"); @@ -227,8 +228,10 @@ function setTrips() { li.appendChild(document.createTextNode( `: ${trip.firstExposure}–${trip.lastExposure}` )); - li.appendChild(document.createElement("br")); - li.appendChild(document.createTextNode(trip.lens)); + if (body.mount != body.name) { + li.appendChild(document.createElement("br")); + li.appendChild(document.createTextNode(trip.lens)); + } if (trip.note) { li.appendChild(document.createElement("br")); li.appendChild(document.createTextNode(`“${trip.note}”`)); -- cgit 1.4.1