From a992be8143bc5c4ba7c60293f720971180b2add2 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Mon, 8 Dec 2025 16:22:43 +0100 Subject: [PATCH] Make board publication switch icons clickable --- app/views/boards/edit/_publication.html.erb | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/views/boards/edit/_publication.html.erb b/app/views/boards/edit/_publication.html.erb index 7cfc10ca6..5647fd3b2 100644 --- a/app/views/boards/edit/_publication.html.erb +++ b/app/views/boards/edit/_publication.html.erb @@ -4,18 +4,22 @@
Turn on the Public link to share this board with anyone in the world. They won’t need to log in and they won’t be able to see anything else in Fizzy.
+ <% publication_switch_id = "board-#{board.id}-publication-switch" %> + <% if board.published? %>
- <%= icon_tag "lock" %> + - <%= icon_tag "world" %> +
@@ -41,15 +45,17 @@ <% else %>
- <%= icon_tag "lock" %> + - <%= icon_tag "world" %> +
<% end %>