diff options
author | June McEnroe <june@causal.agency> | 2025-04-12 23:54:34 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2025-04-12 23:54:34 -0400 |
commit | 75e63dd751685b1799cdd2c693eec66b5d23c4a2 (patch) | |
tree | 22c9b1fc917f958bd461bfea25b3b3d34735c24f /www/photo.causal.agency/trips.html | |
parent | Allow setting exposures when loading film (diff) | |
download | src-75e63dd751685b1799cdd2c693eec66b5d23c4a2.tar.gz src-75e63dd751685b1799cdd2c693eec66b5d23c4a2.zip |
Don't list lens in trips if fixed
Diffstat (limited to '')
-rw-r--r-- | www/photo.causal.agency/trips.html | 7 |
1 files changed, 5 insertions, 2 deletions
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}”`)); |