Skip to content

Commit

Permalink
Put project in the meeting title
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Apr 16, 2024
1 parent 7fbd647 commit e5f4cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -6,7 +6,7 @@
flex.with_column(mr: 1) do
render(Primer::Beta::Link.new(href: meeting_path(@meeting), target: "_blank", font_size: :normal,
font_weight: :bold, scheme: :primary, underline: false)) do
@meeting.title
"#{@meeting.project.name}: #{@meeting.title}"
end
end
flex.with_column do
Expand Down
Expand Up @@ -45,9 +45,10 @@ class MeetingAgendaItem::MeetingForm < ApplicationForm
MeetingAgendaItems::CreateContract
.assignable_meetings(User.current)
.where("meetings.start_time + (interval '1 hour' * meetings.duration) >= ?", Time.zone.now)
.includes(:project)
.find_each do |meeting|
select.option(
label: "#{meeting.title} #{format_date(meeting.start_time)} #{format_time(meeting.start_time, false)}",
label: "#{meeting.project.name}: #{meeting.title} #{format_date(meeting.start_time)} #{format_time(meeting.start_time, false)}",
value: meeting.id
)
end
Expand Down

0 comments on commit e5f4cfe

Please sign in to comment.