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.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
<%# locals: (meeting:, participant:, query:, choice: nil) %>
<%# The people the dialog offers, in their own frame so the search reloads only them: the
suggestions first (E6, only without a search), then the people matching the search.
Members are offered by account, contacts by row (Meetings::ParticipantLinkChoice). Picking
one only marks it; "Verknüpfen" links. %>
<% pl = 'views.organisations.meetings.participant_links' %>
<% lines = participant_link_options(participant, query, limit: Organisations::MeetingParticipantLinksController::LIST_LIMIT, choice: choice) %>
<%= turbo_frame_tag participant_link_results_id(participant), class: 'block' do %>
<% if lines.empty? %>
<p class="participant-link-none px-2 py-2 text-sm text-cream-600"><%= t("#{pl}.none") %></p>
<% else %>
<ul class="participant-link-options max-h-72 space-y-0.5 overflow-y-auto" role="list">
<% lines.each do |line| %>
<% entry = line.entry %>
<% value = Meetings::ParticipantLinkChoice.value_for(entry) %>
<% input_id = "#{participant_link_results_id(participant)}-#{value.tr(':', '-')}" %>
<% name = person_display_name(person: entry.person, user: (entry.user if entry.member?)) %>
<li class="participant-link-option flex items-center gap-3 rounded px-2 py-2 hover:bg-cream-100">
<%= radio_button_tag :choice, value, choice == value, id: input_id, class: 'shrink-0' %>
<%= render Neo::Users::AvatarComponent.new(user: (entry.user if entry.member?), size: :small,
fallback_initials: person_initials(name),
class: "people-avatar #{'people-avatar--contact' unless entry.member?}") %>
<label for="<%= input_id %>" class="flex min-w-0 flex-1 cursor-pointer flex-col">
<span class="flex min-w-0 items-center gap-2">
<span class="truncate text-sm font-medium text-ink"><%= name %></span>
<% if entry.member? %>
<span class="people-badge"><%= t('views.organisations.people.index.member_badge') %></span>
<% end %>
</span>
<% detail = entry.detail %>
<% if detail.present? %>
<span class="truncate text-xs text-cream-600"><%= detail %></span>
<% end %>
</label>
<% if line.suggested? %>
<span class="participant-link-suggestion shrink-0 rounded-full border border-amber-500 px-2 text-xs text-cream-700"><%= t("#{pl}.suggestion") %></span>
<% end %>
</li>
<% end %>
</ul>
<% end %>
<% end %>