]> git.openstreetmap.org Git - rails.git/commit
Refactor turbo-frame element to avoid multiline conditionals inside html attribute
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Dec 2025 17:01:09 +0000 (17:01 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Dec 2025 17:31:03 +0000 (17:31 +0000)
commit048cd2dd7ae15d936efc5d45e3dcd16ece23908e
tree2dce2123eca4cbb0ee3fcb6d6b82e489e3d994a9
parentb78e341b970197ac3b18a3c7bf83a4da028e1980
Refactor turbo-frame element to avoid multiline conditionals inside html attribute

While the original is perfectly valid erb, it's hard to read and hard for erblint to parse.

This refactor moves the multi-line conditional logic outside of the turbo-frame `src` html attribute.
app/views/browse/_relation.html.erb