17 lines
562 B
Ruby
17 lines
562 B
Ruby
module BoardsHelper
|
|
def link_back_to_board(board)
|
|
back_link_to board.name, board, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click click->turbo-navigation#backIfSamePath"
|
|
end
|
|
|
|
def link_to_edit_board(board)
|
|
link_to edit_board_path(board), class: "btn", data: {
|
|
controller: "tooltip",
|
|
bridge__buttons_target: "button",
|
|
bridge_icon_name: "gearshape.fill",
|
|
bridge_title: "Settings"
|
|
} do
|
|
icon_tag("settings") + tag.span("Settings for #{board.name}", class: "for-screen-reader")
|
|
end
|
|
end
|
|
end
|