Use bridge buttons controller in boards.

This commit is contained in:
Denis Švara
2026-01-08 10:18:56 +01:00
parent b8bb4cf381
commit 37f03fc4e7
2 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ module BoardsHelper
def link_to_edit_board(board)
link_to edit_board_path(board), class: "btn", data: {
controller: "tooltip bridge--nav-button",
controller: "tooltip",
bridge__buttons_target: "button",
bridge_icon_name: "gearshape.fill",
bridge_title: "Settings"
} do
+10 -8
View File
@@ -4,16 +4,18 @@
<%= turbo_stream_from @board %>
<% content_for :header do %>
<div class="header__actions header__actions--start">
<%= link_to_webhooks(@board) if Current.user.admin? %>
</div>
<div data-controller="bridge--buttons">
<div class="header__actions header__actions--start">
<%= link_to_webhooks(@board) if Current.user.admin? %>
</div>
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
<span class="overflow-ellipsis"><%= @board.name %></span>
</h1>
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
<span class="overflow-ellipsis"><%= @board.name %></span>
</h1>
<div class="header__actions header__actions--end">
<%= link_to_edit_board @board %>
<div class="header__actions header__actions--end">
<%= link_to_edit_board @board %>
</div>
</div>
<% end %>