Files
fizzy/app/views/boards/show.html.erb
T

59 lines
1.9 KiB
Plaintext

<% @page_title = @board.name %>
<% @body_class = "contained-scrolling" %>
<% turbo_exempts_page_from_cache %>
<%= turbo_stream_from @board %>
<% content_for :header do %>
<div data-controller="bridge--buttons">
<div class="header__actions header__actions--start hide-on-native">
<%= link_to_webhooks(@board) if Current.user.admin? %>
</div>
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
<span class="overflow-ellipsis"><%= @board.name %></span>
</h1>
<div class="header__actions header__actions--end hide-on-native">
<%= link_to_edit_board @board %>
</div>
<div class="visually-hidden">
<%= button_to board_cards_path(@board),
method: :post,
form: { data: { turbo_frame: "_top" } },
data: {
bridge__buttons_target: "button",
bridge_icon_name: "plus",
bridge_title: "Add card"
} do %>
Add card
<% end %>
</div>
<div class="visually-hidden" data-controller="bridge--overflow-menu">
<%= link_to "Settings",
edit_board_path(@board),
data: { bridge__overflow_menu_target: "item" } %>
<% if Current.user.admin? %>
<%= link_to "Webhooks",
board_webhooks_path(@board),
data: { bridge__overflow_menu_target: "item" } %>
<% end %>
</div>
</div>
<% end %>
<%= render "filters/settings", filter_url: board_path(@board), user_filtering: @user_filtering, no_filtering_url: board_path(@board) do |form| %>
<%= hidden_field_tag "board_ids[]", @board.id %>
<% end %>
<%= turbo_frame_tag :cards_container do %>
<% if @filter.used?(ignore_boards: true) %>
<%= render "boards/show/filtered_cards", page: @page %>
<% else %>
<%= render "columns/show/add_card_button", board: @board %>
<%= render "boards/show/columns", page: @page, board: @board %>
<% end %>
<% end %>