Files
fizzy/app/helpers/boards_helper.rb
T

13 lines
514 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__overflow_menu_target: "item", bridge_title: "Board settings" } do
icon_tag("settings") + tag.span("Settings for #{board.name}", class: "for-screen-reader")
end
end
end