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
Responsible -> Presenter
Klaus Zanders4164e81ad57a
diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erbindex 579c35f98fd..063d0fa056e 100644--- a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb@@ -19,8 +19,8 @@render(MeetingAgendaItem::Duration.new(f))end- grid.with_area(:responsible) do- render(MeetingAgendaItem::Responsible.new(f))+ grid.with_area(:presenter) do+ render(MeetingAgendaItem::Presenter.new(f))endgrid.with_area(:notes,diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.sass b/modules/meeting/app/components/meeting_agenda_items/form_component.sassindex 5daff020414..f099afaafb1 100644--- a/modules/meeting/app/components/meeting_agenda_items/form_component.sass+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.sass@@ -3,7 +3,7 @@.op-meeting-agenda-item-formdisplay: gridgrid-template-columns: 2fr 1fr 140px- grid-template-areas: "title responsible duration" "notes notes notes" "add_note actions actions"+ grid-template-areas: "title presenter duration" "notes notes notes" "add_note actions actions"grid-gap: 8px&--actions@@ -11,4 +11,4 @@@media screen and (max-width: $breakpoint-sm)grid-template-columns: 1fr auto- grid-template-areas: "title title" "duration responsible" "notes notes" "add_note actions"+ grid-template-areas: "title title" "duration presenter" "notes notes" "add_note actions"diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erbindex d902067a7dd..0509445bdac 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb@@ -50,11 +50,11 @@endend- if @meeting_agenda_item.responsible- grid.with_area(:responsible, tag: :div, classes: 'ellipsis') do+ if @meeting_agenda_item.presenter+ grid.with_area(:presenter, tag: :div, classes: 'ellipsis') doflex_layout do |flex|flex.with_column(classes: 'ellipsis') do- render(Users::AvatarComponent.new(user: @meeting_agenda_item.responsible, size: 'mini', title:, classes: 'op-principal_flex'))+ render(Users::AvatarComponent.new(user: @meeting_agenda_item.presenter, size: 'mini', title:, classes: 'op-principal_flex'))endendenddiff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sassindex 0f7fda15d69..ce0916d3850 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass@@ -1,23 +1,23 @@@import 'helpers'-$meeting-agenda-item--responsible-width: 300px+$meeting-agenda-item--presenter-width: 300px.op-meeting-agenda-itemdisplay: grid- grid-template-columns: 20px auto 1fr fit-content($meeting-agenda-item--responsible-width) fit-content(40px)- grid-template-areas: "drag-handle content duration responsible actions" ". notes notes notes notes"+ grid-template-columns: 20px auto 1fr fit-content($meeting-agenda-item--presenter-width) fit-content(40px)+ grid-template-areas: "drag-handle content duration presenter actions" ".notes notes notes notes"&--drag-handle,&--duration,&--content,- &--responsible+ &--presenteralign-self: center&--actionsjustify-self: end&--responsbile- max-width: $meeting-agenda-item--responsible-width+ max-width: $meeting-agenda-item--presenter-widthjustify-self: end&--duration@@ -28,7 +28,7 @@ $meeting-agenda-item--responsible-width: 300px@media screen and (max-width: $breakpoint-lg)grid-template-columns: 20px auto 1fr 50px- grid-template-areas: "drag-handle content content actions" ". responsible responsible duration" ". notes notes notes"+ grid-template-areas: "drag-handle content content actions" ".presenter presenter duration" ".notes notes notes"&--authorjustify-self: stretchdiff --git a/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb b/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rbindex 1367d5a5532..414ebd2cd02 100644--- a/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb+++ b/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb@@ -41,6 +41,6 @@ module MeetingAgendaItemsattribute :titleattribute :duration_in_minutesattribute :notes- attribute :responsible+ attribute :presenterendenddiff --git a/modules/meeting/app/controllers/meeting_agenda_items_controller.rb b/modules/meeting/app/controllers/meeting_agenda_items_controller.rbindex 7e3e63550a6..dbef2a15100 100644--- a/modules/meeting/app/controllers/meeting_agenda_items_controller.rb+++ b/modules/meeting/app/controllers/meeting_agenda_items_controller.rb@@ -197,7 +197,7 @@ class MeetingAgendaItemsController < ApplicationControllerdef meeting_agenda_item_paramsparams.require(:meeting_agenda_item)- .permit(:title, :duration_in_minutes, :responsible_id, :notes, :work_package_id, :lock_version)+ .permit(:title, :duration_in_minutes, :presenter_id, :notes, :work_package_id, :lock_version)enddef generic_call_failure_response(call)diff --git a/modules/meeting/app/forms/meeting_agenda_item/responsible.rb b/modules/meeting/app/forms/meeting_agenda_item/presenter.rbsimilarity index 95%rename from modules/meeting/app/forms/meeting_agenda_item/responsible.rbrename to modules/meeting/app/forms/meeting_agenda_item/presenter.rbindex 6c52851e305..0301bcebbdc 100644--- a/modules/meeting/app/forms/meeting_agenda_item/responsible.rb+++ b/modules/meeting/app/forms/meeting_agenda_item/presenter.rb@@ -26,11 +26,11 @@# See COPYRIGHT and LICENSE files for more details.#++-class MeetingAgendaItem::Responsible < ApplicationForm+class MeetingAgendaItem::Presenter < ApplicationFormform do |f|f.user_autocompleter(name: :responsible_id,- label: I18n.t("attributes.responsible"),+ label: I18n.t("attributes.presenter"),visually_hide_label: true,autocomplete_options: {url: ::API::V3::Utilities::PathHelper::ApiV3Path.principals,diff --git a/modules/meeting/app/models/meeting_agenda_item.rb b/modules/meeting/app/models/meeting_agenda_item.rbindex a5b0751467b..3babdc799c9 100644--- a/modules/meeting/app/models/meeting_agenda_item.rb+++ b/modules/meeting/app/models/meeting_agenda_item.rb@@ -39,7 +39,7 @@ class MeetingAgendaItem < ApplicationRecordbelongs_to :work_package, class_name: "::WorkPackage"has_one :project, through: :meetingbelongs_to :author, class_name: "User", optional: false- belongs_to :responsible, class_name: "User", optional: true+ belongs_to :presenter, class_name: "User", optional: trueacts_as_list scope: :meetingdefault_scope { order(:position) }diff --git a/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb b/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rbindex 77b0df351a1..ce9e93e3550 100644--- a/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb+++ b/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb@@ -1,6 +1,6 @@class AddResponsibleToMeeting < ActiveRecord::Migration[7.1]def change- add_reference :meeting_agenda_items, :responsible, type: :bigint, foreign_key: { to_table: :users }, index: true- add_reference :meeting_agenda_item_journals, :responsible, type: :bigint, foreign_key: { to_table: :users }, index: true+ add_reference :meeting_agenda_items, :presenter, type: :bigint, foreign_key: { to_table: :users }, index: true+ add_reference :meeting_agenda_item_journals, :presenter, type: :bigint, foreign_key: { to_table: :users }, index: trueendend