Move helper to bridge helper file

This commit is contained in:
Adrien Maston
2026-02-20 13:03:28 +01:00
parent bb6f2963b4
commit 9569032403
2 changed files with 8 additions and 8 deletions
-8
View File
@@ -9,12 +9,4 @@ module BoardsHelper
icon_tag("settings") + tag.span("Settings for #{board.name}", class: "for-screen-reader")
end
end
def bridged_button_to_board(board)
link_to "Go to #{board.name}", board, hidden: true, data: {
bridge__buttons_target: "button",
bridge_icon_url: bridge_icon("board"),
bridge_title: "Go to #{board.name}"
}
end
end
+8
View File
@@ -2,4 +2,12 @@ module BridgeHelper
def bridge_icon(name)
asset_url("#{name}.svg")
end
def bridged_button_to_board(board)
link_to "Go to #{board.name}", board, hidden: true, data: {
bridge__buttons_target: "button",
bridge_icon_url: bridge_icon("board"),
bridge_title: "Go to #{board.name}"
}
end
end