161925ab2b
* main: (100 commits) Fix notification broadcast test for turbo-rails 2.0.21 Update `turbo-rails` to get latest Turbo version Remove reference to removed controller Fix bad formatting on bridge page title attr Use private functions for bridge components Setup focus handling on touch target's connect callback Setup proper focus handling for mobile on the card perma's board picker Move dialog focus handling into the dialog controller Create popup initial alignment classes Fix class typo Hide the board selector button if card is closed Align board and tag picker dialogs without using math Add dialog manager to card perma Fix "M" hotkey using stale user from fragment cache Solve problem when Action Text raises on missing attachables Solve problem when Action Text raises on missing attachables Completing a step removes stalled status from UI Bump Bootsnap to v1.21.1 Add Enable all/Disable all buttons to webhook event selection Use correct class selectors to target cards with background images ...
16 lines
868 B
Plaintext
16 lines
868 B
Plaintext
<div id="<%= dom_id(card, :watch_button) %>">
|
|
<% if card.watched_by? Current.user %>
|
|
<%= button_to card_watch_path(card), method: :delete, class: "btn btn--reversed btn--circle-mobile",
|
|
data: { controller: "tooltip hotkey", action: "keydown.shift+n@document->hotkey#click", bridge__overflow_menu_target: "item", bridge_title: "Stop watching" } do %>
|
|
<%= icon_tag "bell" %>
|
|
<span class="for-screen-reader">Stop watching (shift+n)</span>
|
|
<% end %>
|
|
<% else %>
|
|
<%= button_to card_watch_path(card), class: "btn btn--circle-mobile",
|
|
data: { controller: "tooltip hotkey", action: "keydown.shift+n@document->hotkey#click", bridge__overflow_menu_target: "item", bridge_title: "Watch this" } do %>
|
|
<%= icon_tag "bell-off" %>
|
|
<span class="for-screen-reader">Watch this (shift+n)</span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|