From d900df5aa012179dfa10e64ea9969261dc073f8b Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 4 Feb 2026 17:56:12 +0000 Subject: [PATCH] Add View on IPFS button to effect and recipe detail pages Co-Authored-By: Claude Opus 4.5 --- app/templates/effects/detail.html | 10 ++++++++-- app/templates/recipes/detail.html | 13 +++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/templates/effects/detail.html b/app/templates/effects/detail.html index c94d914..572f586 100644 --- a/app/templates/effects/detail.html +++ b/app/templates/effects/detail.html @@ -137,12 +137,18 @@
+ {% if effect.cid.startswith('Qm') or effect.cid.startswith('bafy') %} + + View on IPFS + + {% endif %} - + {% if recipe.ipfs_cid %} + + View on IPFS + + {% elif recipe.recipe_id.startswith('Qm') or recipe.recipe_id.startswith('bafy') %} + + View on IPFS + + {% endif %}