OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use ClipboardCopy to provide copyable link to location
Oliver Güntheree9da82d066b
diff --git a/modules/meeting/app/components/meetings/sidebar/details_component.html.erb b/modules/meeting/app/components/meetings/sidebar/details_component.html.erbindex 8bcb54ec4b2..94c01d2d981 100644--- a/modules/meeting/app/components/meetings/sidebar/details_component.html.erb+++ b/modules/meeting/app/components/meetings/sidebar/details_component.html.erb@@ -70,17 +70,25 @@if @meeting.location.present?details.with_row(mt: 2) do- if @meeting.location.include?("http")- render_meeting_attribute_row(:link) do- render(Primer::Beta::Link.new(href: @meeting.location, target: "_blank")) do- render_truncated_location+ flex_layout(align_items: :center) do |location|+ location.with_column do+ if @meeting.location.include?("http")+ render_meeting_attribute_row(:link) do+ render(Primer::Beta::Link.new(href: @meeting.location, target: "_blank")) do+ render_truncated_location+ end+ end+ else+ render_meeting_attribute_row(:location) do+ render(Primer::Beta::Text.new) do+ render_truncated_location+ end+ endendend- else- render_meeting_attribute_row(:location) do- render(Primer::Beta::Text.new) do- render_truncated_location- end+ location.with_column(ml: 1) do+ render(Primer::Beta::ClipboardCopy.new(value: @meeting.location,+ "aria-label": I18n.t(:button_copy_to_clipboard)))endendend