Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/helpers/boards_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ def link_to_edit_board(board)
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
2 changes: 1 addition & 1 deletion app/views/cards/container/_closure_buttons.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="flex gap-half">
<%= link_to edit_card_path(card), class: "btn btn--circle-mobile borderless",
data: { controller: "hotkey", action: "keydown.e@document->hotkey#click", bridge__buttons_target: "button", bridge_title: "Edit", bridge_icon_url: bridge_icon("pencil"), turbo_frame: dom_id(card, :edit) } do %>
data: { controller: "hotkey", action: "keydown.e@document->hotkey#click", bridge__overflow_menu_target: "item", bridge_title: "Edit", turbo_frame: dom_id(card, :edit) } do %>
<%= icon_tag "pencil", class: "icon--mobile-only" %>
<span>Edit</span>
<kbd class="txt-x-small hide-on-touch">e</kbd>
Expand Down
1 change: 1 addition & 0 deletions app/views/cards/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<% content_for :header do %>
<div class="header__actions header__actions--start">
<%= link_back_to_board(@card.board) %>
<%= bridged_button_to_board(@card.board) %>
</div>
<% end %>

Expand Down