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.

2.6 KB
Raw Blame
<%# Meeting detail in the shared ticket/knowledge lane language. Meeting-specific
    sections and their stable Turbo targets remain unchanged and in normal page flow. %>
<% current_frame_id = local_assigns[:detail_frame_id] || 'meeting_display_frame' %>
<% can_write = policy(meeting.project).area_access?(:meetings, :write) %>
<% visible_analyses = visible_meeting_analyses(meeting) %>
<% can_see_time = policy(meeting.project).area_access?(:time_sessions, :read) %>

<%= turbo_stream_from meeting.summary_stream_name %>

<div id="meeting-header" class="meeting-content min-w-0" <%= assistant_context_attributes(meeting) %>>
  <%= render 'organisations/meetings/lane_head', meeting: meeting, current_frame_id: current_frame_id %>

  <h2 class="text-[22px] leading-snug font-bold text-cream-900 break-words [overflow-wrap:anywhere]">
    <%= meeting.title %>
  </h2>

  <div class="mt-3 flex min-w-0 flex-wrap items-center gap-x-4 gap-y-2 text-xs text-cream-600">
    <span class="inline-flex items-center gap-1.5">
      <i class="bi bi-calendar3" aria-hidden="true"></i>
      <%= display_time(meeting.occurred_at, user: current_user) %>
    </span>
    <% if meeting.duration_minutes.present? %>
      <span class="inline-flex items-center gap-1.5" title="<%= t('views.organisations.meetings.index.col_duration') %>">
        <i class="bi bi-clock" aria-hidden="true"></i>
        <%= t('views.organisations.meetings.shared.duration_minutes', count: meeting.duration_minutes) %>
      </span>
    <% end %>
    <% if can_see_time %>
      <%= render 'organisations/meetings/time_summary_chip', meeting: meeting %>
    <% end %>
  </div>

  <% participants = meeting.meeting_participants.in_row_order.to_a %>
  <%= render 'organisations/meetings/participants_row', meeting: meeting, participants: participants %>

  <% if meeting.organisation&.ai_enabled? %>
    <%= render 'organisations/meetings/search_status', meeting: meeting, can_write: can_write %>
  <% end %>

  <div class="border-b border-cream-300 mt-5 mb-6"></div>

  <%= render 'organisations/meetings/meeting_reading',
             meeting: meeting, participants: participants, can_write: can_write,
             lane_state: meeting_lane_state, current_frame_id: current_frame_id %>

</div>

<div class="mt-8">
  <%= render 'organisations/meetings/analyses_results',
             meeting: meeting,
             analyses: visible_analyses,
             can_write: can_write %>
  <%= render 'organisations/meetings/ticket_suggestions_section', meeting: meeting, lane_state: meeting_lane_state %>
</div>

<%= render 'organisations/meetings/ticket_links_section', meeting: meeting %>