Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

1.4 KB
Raw Blame
<%# locals: (list:, lane_form: nil) %>
<%# Desktop two-column master-detail (list + detail frame), mirroring Knowledge.
    Shared by the project page and "Alle Meetings": list is the page's own head
    and results, and the results partial brings its own list frame. lane_form is
    the page's own form state of the lane (?new=meeting): the form on the project
    page, the project select on "Alle Meetings". %>
<%= render NeoTwoColumnGridComponent.new(
  selected_item: @selected_meeting || lane_form.presence,
  context_type: :meetings,
  css_classes: "#{@selected_meeting || lane_form.present? ? 'show-content' : 'hide-content'} hide-panel",
  additional_targets: { "index-page-target" => "layout", "column-picker-target" => "grid" },
  chrome_height: NeoTwoColumnGridComponent::LANE_CHROME_HEIGHT_PX,
  lane: true
) do |grid| %>
  <% grid.with_list do %>
    <%= list %>
  <% end %>

  <% grid.with_side_panel do %>
    <%= render 'organisations/meetings/column_picker' %>
  <% end %>

  <% grid.with_main_content do %>
    <%# No data-turbo-action="advance": list-row owns the canonical
        …/meetings?meeting_id=… page address. %>
    <turbo-frame id="meeting_display_frame">
      <% if lane_form.present? %>
        <%= lane_form %>
      <% else %>
        <%= render 'organisations/meetings/display_meeting', selected_meeting: @selected_meeting %>
      <% end %>
    </turbo-frame>
  <% end %>

<% end %>