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
Linting
Oliver Günther23b5d649d857
diff --git a/modules/meeting/app/components/meetings/header_component.html.erb b/modules/meeting/app/components/meetings/header_component.html.erbindex b8cfcd4747e..d18fdc6d95e 100644--- a/modules/meeting/app/components/meetings/header_component.html.erb+++ b/modules/meeting/app/components/meetings/header_component.html.erb@@ -1,24 +1,24 @@<%=helpers.content_controller "poll-for-changes keep-scroll-position",- poll_for_changes_url_value: check_for_updates_project_meeting_path(@meeting.project, @meeting),- poll_for_changes_interval_value: check_for_updates_interval,- keep_scroll_position_url_value: meeting_path(@meeting)+ poll_for_changes_url_value: check_for_updates_project_meeting_path(@meeting.project, @meeting),+ poll_for_changes_interval_value: check_for_updates_interval,+ keep_scroll_position_url_value: meeting_path(@meeting)component_wrapper dorender(Primer::OpenProject::PageHeader.new(- test_selector: "meeting-page-header",- state: @state,- data: {- poll_for_changes_target: "reference",- reference_value: @meeting.changed_hash- }- )) do |header|+ test_selector: "meeting-page-header",+ state: @state,+ data: {+ poll_for_changes_target: "reference",+ reference_value: @meeting.changed_hash+ }+ )) do |header|header.with_title do |title|title.with_editable_form(model: @meeting,update_path: update_title_project_meeting_path(@project, @meeting),cancel_path: cancel_edit_project_meeting_path(@project, @meeting),label: Meeting.human_attribute_name(:title),- placeholder: Meeting.human_attribute_name(:title),)+ placeholder: Meeting.human_attribute_name(:title))if @meeting.template?"#{@meeting.title} (#{I18n.t(:label_template)})"elsif @series.present?@@ -38,7 +38,7 @@mobile_icon: :check,size: :medium,data: { "turbo-method": :post },- href: template_completed_project_recurring_meeting_path(@project, @meeting.recurring_meeting),+ href: template_completed_project_recurring_meeting_path(@project, @meeting.recurring_meeting)) do |button|button.with_leading_visual_icon(icon: :check)I18n.t("recurring_meeting.template.button_finalize")@@ -49,59 +49,61 @@button_arguments: { icon: "kebab-horizontal","aria-label": t("label_meeting_actions"),classes: "hide-when-print",- test_selector: 'op-meetings-header-action-trigger'}) do |menu|- menu.with_item(label: t("label_meeting_edit_title"),- href: edit_project_meeting_path(@project, @meeting),- content_arguments: {- data: { 'turbo-stream': true }- }) do |item|- item.with_leading_visual_icon(icon: :pencil)- end if @meeting.editable? && !@series+ test_selector: "op-meetings-header-action-trigger" }) do |menu|+ if @meeting.editable? && !@series+ menu.with_item(label: t("label_meeting_edit_title"),+ href: edit_project_meeting_path(@project, @meeting),+ content_arguments: {+ data: { "turbo-stream": true }+ }) do |item|+ item.with_leading_visual_icon(icon: :pencil)+ end+ endunless @meeting.template?- menu.with_item(label: copy_label,- href: copy_meeting_path(@meeting),- content_arguments: {- data: { turbo_stream: true }- }) do |item|- item.with_leading_visual_icon(icon: :copy)- end+ menu.with_item(label: copy_label,+ href: copy_meeting_path(@meeting),+ content_arguments: {+ data: { turbo_stream: true }+ }) do |item|+ item.with_leading_visual_icon(icon: :copy)+ end- menu.with_item(label: t(:label_icalendar_download),- href: ics_download_path) do |item|- item.with_leading_visual_icon(icon: :download)- end+ menu.with_item(label: t(:label_icalendar_download),+ href: ics_download_path) do |item|+ item.with_leading_visual_icon(icon: :download)+ end- if @meeting.open? &&User.current.allowed_in_project?(:send_meeting_agendas_notification, @meeting.project- )- menu.with_item(label: t('meeting.label_mail_all_participants'),- href: notify_project_meeting_path(@project, @meeting),- form_arguments: { method: :post, data: { turbo: 'false' } }) do |item|- item.with_leading_visual_icon(icon: :mail)- end+ if @meeting.open? && User.current.allowed_in_project?(:send_meeting_agendas_notification, @meeting.project)+ menu.with_item(label: t("meeting.label_mail_all_participants"),+ href: notify_project_meeting_path(@project, @meeting),+ form_arguments: { method: :post, data: { turbo: "false" } }) do |item|+ item.with_leading_visual_icon(icon: :mail)endend+ endmenu.with_item(label: t(:label_history),tag: :a,href: history_project_meeting_path(@project, @meeting),content_arguments: {- "data-controller": "async-dialog",+ "data-controller": "async-dialog"},- value: ""- ) do |item|+ value: "") do |item|item.with_leading_visual_icon(icon: :clock) # or :check TBDend- menu.with_item(label: delete_label,- scheme: :danger,- href: delete_dialog_project_meeting_path(@project, @meeting),- tag: :a,- content_arguments: {- data: { controller: "async-dialog" }- }) do |item|- item.with_leading_visual_icon(icon: :trash)- end if delete_enabled?+ if delete_enabled?+ menu.with_item(label: delete_label,+ scheme: :danger,+ href: delete_dialog_project_meeting_path(@project, @meeting),+ tag: :a,+ content_arguments: {+ data: { controller: "async-dialog" }+ }) do |item|+ item.with_leading_visual_icon(icon: :trash)+ end+ endendendenddiff --git a/modules/meeting/app/components/meetings/side_panel/state_component.html.erb b/modules/meeting/app/components/meetings/side_panel/state_component.html.erbindex 0aea413ef51..83646b56bcc 100644--- a/modules/meeting/app/components/meetings/side_panel/state_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/state_component.html.erb@@ -6,7 +6,7 @@case @meeting.statewhen "open"section.with_description(display: [:none, nil, :block]) { t("text_meeting_open_description") }- flex_layout(classes: 'op-meeting-sidebar-state') do |open_state|+ flex_layout(classes: "op-meeting-sidebar-state") do |open_state|open_state.with_row dorender(Primer::Beta::State.new(title: "state", scheme: :open)) doflex_layout do |open_state_label|@@ -24,9 +24,9 @@if edit_enabled?section.with_footer_button(tag: :a,- href: change_state_project_meeting_path(@project, @meeting, state: 'closed'),+ href: change_state_project_meeting_path(@project, @meeting, state: "closed"),classes: "hide-when-print",- data: { 'turbo-stream': true, 'turbo-method': 'put' },+ data: { "turbo-stream": true, "turbo-method": "put" },test_selector: "close-meeting-button") do |button|button.with_leading_visual_icon(icon: :unlock)@@ -37,7 +37,7 @@when "closed"section.with_description(display: [:none, nil, :block]) { t("text_meeting_closed_description") }- flex_layout(classes: 'op-meeting-sidebar-state') do |closed_state|+ flex_layout(classes: "op-meeting-sidebar-state") do |closed_state|closed_state.with_row dorender(Primer::Beta::State.new(title: "state", scheme: :default)) doflex_layout do |closed_state_label|@@ -55,9 +55,9 @@if edit_enabled?section.with_footer_button(tag: :a,- href: change_state_project_meeting_path(@project, @meeting, state: 'open'),+ href: change_state_project_meeting_path(@project, @meeting, state: "open"),classes: "hide-when-print",- data: { 'turbo-stream': true, 'turbo-method': 'put' }+ data: { "turbo-stream": true, "turbo-method": "put" }) do |button|button.with_leading_visual_icon(icon: :unlock)t("label_meeting_reopen_action")diff --git a/modules/meeting/app/views/meetings/menus/_menu.html.erb b/modules/meeting/app/views/meetings/menus/_menu.html.erbindex 55a78a0b9fe..e63b3d148ad 100644--- a/modules/meeting/app/views/meetings/menus/_menu.html.erb+++ b/modules/meeting/app/views/meetings/menus/_menu.html.erb@@ -1,9 +1,8 @@<% request_params = params.permit(:filters, :sort)- .merge(current_href: request.path)-%>+ .merge(current_href: request.path) %><%= turbo_frame_tag "meeting_sidemenu",- src: @project.present? ? menu_project_meetings_path(@project, **request_params) : menu_meetings_path(**request_params),- target: '_top',- data: { turbo: false },- loading: :lazy %>+ src: @project.present? ? menu_project_meetings_path(@project, **request_params) : menu_meetings_path(**request_params),+ target: "_top",+ data: { turbo: false },+ loading: :lazy %>diff --git a/modules/meeting/app/views/meetings/show.html.erb b/modules/meeting/app/views/meetings/show.html.erbindex 07304fbe12c..1538d7d0ea0 100644--- a/modules/meeting/app/views/meetings/show.html.erb+++ b/modules/meeting/app/views/meetings/show.html.erb@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.<%= toolbar title: t(:label_meeting),link_to: link_to(@meeting),- html: { class: 'meeting--main-toolbar -with-dropdown' } do %>+ html: { class: "meeting--main-toolbar -with-dropdown" } do %><% unless User.current.anonymous? %><li class="toolbar-item hidden-for-tablet"><div class="button">@@ -39,8 +39,8 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% if authorize_for(:meetings, :edit) %><li class="toolbar-item">- <%= link_to(edit_project_meeting_path(@project, @meeting), class: 'button', :accesskey => accesskey(:edit)) do %>- <%= op_icon('button--icon icon-edit') %>+ <%= link_to(edit_project_meeting_path(@project, @meeting), class: "button", accesskey: accesskey(:edit)) do %>+ <%= op_icon("button--icon icon-edit") %><span class="button--text"><%= t(:button_edit) %></span><% end %></li>@@ -52,16 +52,15 @@ See COPYRIGHT and LICENSE files for more details.aria-haspopup="true"title="<%= t(:label_more) %>"class="button"- data-test-selector="meetings-more-dropdown-menu"- >- <%= op_icon('button--icon icon-show-more') %>+ data-test-selector="meetings-more-dropdown-menu">+ <%= op_icon("button--icon icon-show-more") %></a><ul style="display:none;" class="menu-drop-down-container"><% if authorize_for(:meetings, :notify) %><li>- <%= link_to t('meeting.label_mail_all_participants'),+ <%= link_to t("meeting.label_mail_all_participants"),notify_project_meeting_path(@project, @meeting),- class: 'icon-context icon-mail1',+ class: "icon-context icon-mail1",method: :post %></li><% end %>@@ -69,21 +68,21 @@ See COPYRIGHT and LICENSE files for more details.<li><%= link_to t(:label_icalendar_download),download_ics_project_meeting_path(@project, @meeting),- class: 'icon-context icon-calendar2' %>+ class: "icon-context icon-calendar2" %></li><% end %><% if authorize_for(:meetings, :copy) %><li><%= link_to(t(:button_copy),copy_meeting_path(@meeting),- class: 'icon-context icon-copy') %>+ class: "icon-context icon-copy") %></li><% end %><% if authorize_for(:meetings, :destroy) %><li><%= link_to(t(:button_delete),project_meeting_path(@project, @meeting),- class: 'icon-context icon-delete',+ class: "icon-context icon-delete",method: :delete,data: { confirm: t(:text_are_you_sure) }) %></li>@@ -105,7 +104,7 @@ See COPYRIGHT and LICENSE files for more details.</div><div class="grid-content small-6"><p>- <strong><%= Meeting.human_attribute_name(:location) %></strong>: <%= auto_link(h(@meeting.location), link: :all, html: { target: '_blank' }) %>+ <strong><%= Meeting.human_attribute_name(:location) %></strong>: <%= auto_link(h(@meeting.location), link: :all, html: { target: "_blank" }) %></p></div><div class="grid-content small-12">@@ -123,18 +122,17 @@ See COPYRIGHT and LICENSE files for more details.<%= render_tabs([- { name: 'agenda',+ { name: "agenda",action: :create_meeting_agendas,- partial: 'meeting_contents/show',+ partial: "meeting_contents/show",path: meeting_agenda_path(@meeting),label: :label_meeting_agenda,content: @meeting.agenda || @meeting.build_agenda,- content_type: "meeting_agenda"- },+ content_type: "meeting_agenda" },{- name: 'minutes',+ name: "minutes",action: :create_meeting_minutes,- partial: 'meeting_contents/show',+ partial: "meeting_contents/show",path: meeting_minutes_path(@meeting),label: :label_meeting_minutes, content: @meeting.minutes || @meeting.build_minutes,content_type: "meeting_minutes"