diff --git a/.dockerignore b/.dockerignore index a8ba0c44986d..abe0a0be0be1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -22,11 +22,18 @@ browserslist !/docs/api/apiv3/tags !/docs/api/apiv3/components +# Ignore spec/** folders +spec/** +# Allow factories in case we use lookbook +!spec/factories +!spec/factories/** +!spec/support +!spec/support/** + extra features help log/*.log -spec /tmp frontend/.angular/cache frontend/node_modules diff --git a/.env.example b/.env.example index 0192ff3ca85f..c31d0776cd69 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2020 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/.env.test.local.example b/.env.test.local.example index 4c2682c3b123..4c6076b4ae06 100644 --- a/.env.test.local.example +++ b/.env.test.local.example @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2020 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 74ffad708a47..73c621a03c0c 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,14 +1,12 @@ # .git-blame-ignore-revs -# lint with rubocop --autocorrect (safe cops only) -48a4f1b6adb1e847a90a61f2ab277f28bcd77608 -# Update copyright information for 2023 -21a696ef9b170e14ad2daf53364a4c2113822c2f -# Update copyright information for 2024 -c795874f7f281297bbd3bad2fdb58b24cb4ce624 # rubocop autocorrections +48a4f1b6adb1e847a90a61f2ab277f28bcd77608 f3c99ee5dded81ad55f2b6f3706216d5fa765677 5c72ea0046a6b5230bf456f55a296ed6fd579535 9e4934cd0a468f46d8f0fc0f11ebc2d4216f789c 6678cab48d443b5782fa93b171d62093819ee4fc fa5d03eae00bc8931f99598a74ffd76e0cbca3da b10e6d718cc49e3574837d97fab268e3ecb3fcbd +# accidental merge +7787e457a37d8d1ef5b6d0c2e326bdc42338ac7b +3b2121f7333f0ce7f3515b29c760c0580c31a245 diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 176773af552c..e945cf1b8c7b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,6 +1,9 @@ - +# Ticket + + + - + # What are you trying to accomplish? @@ -13,9 +16,6 @@ List any tradeoffs you made to take on or pay down tech debt. Describe any alternative approaches you considered and why you discarded them. --> -# Ticket - - # Merge checklist - [ ] Added/updated tests diff --git a/.github/workflows/i18n-tasks.yml b/.github/workflows/i18n-tasks.yml new file mode 100644 index 000000000000..fdc79ac23248 --- /dev/null +++ b/.github/workflows/i18n-tasks.yml @@ -0,0 +1,44 @@ +name: i18n-inconsistency-check + +on: + push: + branches: + - dev + - release/* + paths-ignore: + - 'docs/**' + - 'help/**' + pull_request: + types: [opened, reopened, synchronize] + paths-ignore: + - 'docs/**' + - 'help/**' + - 'packaging/**' + - '.pkgr.yml' + +permissions: + contents: read + +jobs: + i18n-tasks: + permissions: + contents: read + if: github.repository == 'opf/openproject' + name: I18n inconsistency check + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + + - name: Setup i18n-tasks + run: | + gem install i18n-tasks + + - name: Run inconsistent translations check + run: | + i18n-tasks \ + check-consistent-interpolations \ + --config config/i18n-tasks-all-files.yml diff --git a/.gitignore b/.gitignore index f258caa4173a..0a27bf8e565e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/.rubocop.yml b/.rubocop.yml index d245164e264a..821c3902e520 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -208,6 +208,17 @@ Rails/DynamicFindBy: - 'spec/features/**/*.rb' - 'spec/support/**/*.rb' - 'modules/*/spec/features/**/*.rb' + Whitelist: + - find_by_login + +# Allow reorder to prevent find each cop triggering +Rails/FindEach: + AllowedMethods: + - order + - reorder + - limit + - select + - lock # We have config.active_record.belongs_to_required_by_default = false , # which means, we do have to declare presence validators on belongs_to relations. diff --git a/COPYRIGHT_short b/COPYRIGHT_short index f6628456eb30..d4773d9e4760 100644 --- a/COPYRIGHT_short +++ b/COPYRIGHT_short @@ -1,5 +1,5 @@ OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/Gemfile b/Gemfile index 7dfa5bd99d3d..81dfd6cd209c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -63,7 +63,7 @@ gem "acts_as_list", "~> 1.2.0" gem "acts_as_tree", "~> 2.9.0" gem "awesome_nested_set", "~> 3.6.0" gem "closure_tree", "~> 7.4.0" -gem "rubytree", "~> 2.0.0" +gem "rubytree", "~> 2.1.0" # Only used in down migrations now. # Is to be removed once the referencing migrations have been squashed. gem "typed_dag", "~> 2.0.2", require: false @@ -165,7 +165,7 @@ gem "ttfunk", "~> 1.7.0" # remove after https://github.com/prawnpdf/prawn/issues # prawn implicitly depends on matrix gem no longer in ruby core with 3.1 gem "matrix", "~> 0.4.2" -gem "meta-tags", "~> 2.21.0" +gem "meta-tags", "~> 2.22.0" gem "paper_trail", "~> 15.1.0" @@ -204,7 +204,7 @@ gem "plaintext", "~> 0.3.2" gem "ruby-progressbar", "~> 1.13.0", require: false -gem "mini_magick", "~> 4.13.0", require: false +gem "mini_magick", "~> 5.0.1", require: false gem "validate_url" @@ -212,6 +212,7 @@ gem "validate_url" gem "dry-auto_inject" gem "dry-container" gem "dry-monads" +gem "dry-validation" # ActiveRecord extension which adds typecasting to store accessors gem "store_attribute", "~> 1.0" @@ -240,7 +241,7 @@ group :test do # Test prof provides factories from code # and other niceties - gem "test-prof", "~> 1.3.0" + gem "test-prof", "~> 1.4.0" gem "turbo_tests", github: "opf/turbo_tests", ref: "with-patches" gem "rack_session_access" @@ -274,7 +275,7 @@ group :test do gem "selenium-devtools" gem "selenium-webdriver", "~> 4.20" - gem "fuubar", "~> 2.5.0" + gem "fuubar", "~> 2.5.0", require: false gem "timecop", "~> 0.9.0" # Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. @@ -321,6 +322,9 @@ group :development, :test do gem "ruby-prof", require: false gem "stackprof", require: false + # Output a stack trace anytime, useful when a process is stuck + gem "rbtrace" + # REPL with debug commands gem "debug" @@ -347,7 +351,7 @@ group :development, :test do gem "brakeman", "~> 6.1.0" # i18n-tasks helps find and manage missing and unused translations. - gem "i18n-tasks", "~> 1.0.13" + gem "i18n-tasks", "~> 1.0.13", require: false end gem "bootsnap", "~> 1.18.0", require: false @@ -392,6 +396,6 @@ gemfiles.each do |file| send(:eval_gemfile, file) if File.readable?(file) end -gem "openproject-octicons", "~>19.17.0" -gem "openproject-octicons_helper", "~>19.17.0" -gem "openproject-primer_view_components", "~>0.40.0" +gem "openproject-octicons", "~>19.18.0" +gem "openproject-octicons_helper", "~>19.18.0" +gem "openproject-primer_view_components", "~>0.43.0" diff --git a/Gemfile.lock b/Gemfile.lock index e1aa5c5b8a48..dc2223d705b6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -206,7 +206,7 @@ PATH remote: modules/two_factor_authentication specs: openproject-two_factor_authentication (1.0.0) - aws-sdk-sns (~> 1.80.0) + aws-sdk-sns (~> 1.82.0) messagebird-rest (~> 1.4.2) rotp (~> 6.1) webauthn (~> 3.0) @@ -226,35 +226,35 @@ GEM remote: https://rubygems.org/ specs: Ascii85 (1.1.1) - actioncable (7.1.3.4) - actionpack (= 7.1.3.4) - activesupport (= 7.1.3.4) + actioncable (7.1.4) + actionpack (= 7.1.4) + activesupport (= 7.1.4) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.1.3.4) - actionpack (= 7.1.3.4) - activejob (= 7.1.3.4) - activerecord (= 7.1.3.4) - activestorage (= 7.1.3.4) - activesupport (= 7.1.3.4) + actionmailbox (7.1.4) + actionpack (= 7.1.4) + activejob (= 7.1.4) + activerecord (= 7.1.4) + activestorage (= 7.1.4) + activesupport (= 7.1.4) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.1.3.4) - actionpack (= 7.1.3.4) - actionview (= 7.1.3.4) - activejob (= 7.1.3.4) - activesupport (= 7.1.3.4) + actionmailer (7.1.4) + actionpack (= 7.1.4) + actionview (= 7.1.4) + activejob (= 7.1.4) + activesupport (= 7.1.4) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.2) - actionpack (7.1.3.4) - actionview (= 7.1.3.4) - activesupport (= 7.1.3.4) + actionpack (7.1.4) + actionview (= 7.1.4) + activesupport (= 7.1.4) nokogiri (>= 1.8.5) racc rack (>= 2.2.4) @@ -265,31 +265,31 @@ GEM actionpack-xml_parser (2.0.1) actionpack (>= 5.0) railties (>= 5.0) - actiontext (7.1.3.4) - actionpack (= 7.1.3.4) - activerecord (= 7.1.3.4) - activestorage (= 7.1.3.4) - activesupport (= 7.1.3.4) + actiontext (7.1.4) + actionpack (= 7.1.4) + activerecord (= 7.1.4) + activestorage (= 7.1.4) + activesupport (= 7.1.4) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.1.3.4) - activesupport (= 7.1.3.4) + actionview (7.1.4) + activesupport (= 7.1.4) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.1.3.4) - activesupport (= 7.1.3.4) + activejob (7.1.4) + activesupport (= 7.1.4) globalid (>= 0.3.6) - activemodel (7.1.3.4) - activesupport (= 7.1.3.4) + activemodel (7.1.4) + activesupport (= 7.1.4) activemodel-serializers-xml (1.0.2) activemodel (> 5.x) activesupport (> 5.x) builder (~> 3.1) - activerecord (7.1.3.4) - activemodel (= 7.1.3.4) - activesupport (= 7.1.3.4) + activerecord (7.1.4) + activemodel (= 7.1.4) + activesupport (= 7.1.4) timeout (>= 0.4.0) activerecord-import (1.7.0) activerecord (>= 4.2) @@ -302,13 +302,13 @@ GEM multi_json (~> 1.11, >= 1.11.2) rack (>= 2.0.8, < 4) railties (>= 6.1) - activestorage (7.1.3.4) - actionpack (= 7.1.3.4) - activejob (= 7.1.3.4) - activerecord (= 7.1.3.4) - activesupport (= 7.1.3.4) + activestorage (7.1.4) + actionpack (= 7.1.4) + activejob (= 7.1.4) + activerecord (= 7.1.4) + activesupport (= 7.1.4) marcel (~> 1.0) - activesupport (7.1.3.4) + activesupport (7.1.4) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -342,29 +342,29 @@ GEM activerecord (>= 4.0.0, < 7.2) awrence (1.2.1) aws-eventstream (1.3.0) - aws-partitions (1.958.0) - aws-sdk-core (3.201.3) + aws-partitions (1.966.0) + aws-sdk-core (3.201.5) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.651.0) - aws-sigv4 (~> 1.8) + aws-sigv4 (~> 1.9) jmespath (~> 1, >= 1.6.1) aws-sdk-kms (1.88.0) aws-sdk-core (~> 3, >= 3.201.0) aws-sigv4 (~> 1.5) - aws-sdk-s3 (1.156.0) + aws-sdk-s3 (1.159.0) aws-sdk-core (~> 3, >= 3.201.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.5) - aws-sdk-sns (1.80.0) + aws-sdk-sns (1.82.0) aws-sdk-core (~> 3, >= 3.201.0) aws-sigv4 (~> 1.5) - aws-sigv4 (1.9.0) + aws-sigv4 (1.9.1) aws-eventstream (~> 1, >= 1.0.2) - axe-core-api (4.9.1) + axe-core-api (4.10.0) dumb_delegator virtus - axe-core-rspec (4.9.1) - axe-core-api (= 4.9.1) + axe-core-rspec (4.10.0) + axe-core-api (= 4.10.0) dumb_delegator virtus axiom-types (0.1.1) @@ -382,7 +382,7 @@ GEM smart_properties bigdecimal (3.1.8) bindata (2.5.0) - bootsnap (1.18.3) + bootsnap (1.18.4) msgpack (~> 1.2) brakeman (6.1.2) racc @@ -411,7 +411,8 @@ GEM fog-aws cbor (0.5.9.8) cgi (0.4.1) - childprocess (5.0.0) + childprocess (5.1.0) + logger (~> 1.5) climate_control (1.2.0) closure_tree (7.4.0) activerecord (>= 4.2.10) @@ -421,14 +422,14 @@ GEM descendants_tracker (~> 0.0.1) color_conversion (0.1.2) colored2 (4.0.0) - commonmarker (1.1.4) + commonmarker (1.1.5) rb_sys (~> 0.9) compare-xml (0.66) nokogiri (~> 1.8) - concurrent-ruby (1.3.3) + concurrent-ruby (1.3.4) connection_pool (2.4.1) cookiejar (0.3.4) - cose (1.3.0) + cose (1.3.1) cbor (~> 0.5.9) openssl-signature_algorithm (~> 1.0) crack (1.0.0) @@ -469,12 +470,16 @@ GEM dry-auto_inject (1.0.1) dry-core (~> 1.0) zeitwerk (~> 2.6) + dry-configurable (1.2.0) + dry-core (~> 1.0, < 2) + zeitwerk (~> 2.6) dry-container (0.11.0) concurrent-ruby (~> 1.0) dry-core (1.0.1) concurrent-ruby (~> 1.0) zeitwerk (~> 2.6) dry-inflector (1.1.0) + dry-initializer (3.1.1) dry-logic (1.5.0) concurrent-ruby (~> 1.0) dry-core (~> 1.0, < 2) @@ -483,6 +488,14 @@ GEM concurrent-ruby (~> 1.0) dry-core (~> 1.0, < 2) zeitwerk (~> 2.6) + dry-schema (1.13.4) + concurrent-ruby (~> 1.0) + dry-configurable (~> 1.0, >= 1.0.1) + dry-core (~> 1.0, < 2) + dry-initializer (~> 3.0) + dry-logic (>= 1.4, < 2) + dry-types (>= 1.7, < 2) + zeitwerk (~> 2.6) dry-types (1.7.2) bigdecimal (~> 3.0) concurrent-ruby (~> 1.0) @@ -490,6 +503,12 @@ GEM dry-inflector (~> 1.0) dry-logic (~> 1.4) zeitwerk (~> 2.6) + dry-validation (1.10.0) + concurrent-ruby (~> 1.0) + dry-core (~> 1.0, < 2) + dry-initializer (~> 3.0) + dry-schema (>= 1.12, < 2) + zeitwerk (~> 2.6) dumb_delegator (1.0.0) em-http-request (1.1.7) addressable (>= 2.3.4) @@ -497,7 +516,8 @@ GEM em-socksify (>= 0.3) eventmachine (>= 1.0.3) http_parser.rb (>= 0.6.0) - em-socksify (0.3.2) + em-socksify (0.3.3) + base64 eventmachine (>= 1.0.0.beta.4) em-synchrony (1.0.6) eventmachine (>= 1.0.0.beta.1) @@ -505,12 +525,12 @@ GEM activemodel equivalent-xml (0.6.0) nokogiri (>= 1.4.3) - erb_lint (0.5.0) + erb_lint (0.6.0) activesupport better_html (>= 2.0.1) parser (>= 2.7.1.4) rainbow - rubocop + rubocop (>= 1) smart_properties erblint-github (1.0.1) erubi (1.13.0) @@ -525,12 +545,12 @@ GEM factory_bot_rails (6.4.3) factory_bot (~> 6.4) railties (>= 5.0.0) - faraday (2.10.0) + faraday (2.10.1) faraday-net_http (>= 2.0, < 3.2) logger faraday-follow_redirects (0.3.0) faraday (>= 1, < 3) - faraday-net_http (3.1.0) + faraday-net_http (3.1.1) net-http fastimage (2.3.1) ferrum (0.15) @@ -544,7 +564,7 @@ GEM fog-core (~> 2.1) fog-json (~> 1.1) fog-xml (~> 0.1) - fog-core (2.4.0) + fog-core (2.5.0) builder excon (~> 0.71) formatador (>= 0.2, < 2.0) @@ -559,7 +579,7 @@ GEM friendly_id (5.5.1) activerecord (>= 4.0.0) front_matter_parser (1.0.1) - fugit (1.11.0) + fugit (1.11.1) et-orbi (~> 1, >= 1.2.11) raabro (~> 1.4) fuubar (2.5.1) @@ -580,14 +600,14 @@ GEM fugit (>= 1.1) railties (>= 6.0.0) thor (>= 0.14.1) - google-apis-core (0.15.0) + google-apis-core (0.15.1) addressable (~> 2.5, >= 2.5.1) googleauth (~> 1.9) - httpclient (>= 2.8.1, < 3.a) + httpclient (>= 2.8.3, < 3.a) mini_mime (~> 1.0) + mutex_m representable (~> 3.0) retriable (>= 2.0, < 4.a) - rexml google-apis-gmail_v1 (0.41.0) google-apis-core (>= 0.15.0, < 2.a) google-cloud-env (2.1.1) @@ -610,20 +630,21 @@ GEM rack gravatar_image_tag (1.2.0) hana (1.3.7) - hashdiff (1.1.0) + hashdiff (1.1.1) hashery (2.1.2) hashie (3.6.0) - highline (3.0.1) + highline (3.1.0) + reline html-pipeline (2.14.3) activesupport (>= 2) nokogiri (>= 1.4) htmlbeautifier (1.4.3) htmldiff (0.0.1) htmlentities (4.3.4) - http-2 (1.0.0) + http-2 (1.0.1) http_parser.rb (0.6.0) httpclient (2.8.3) - httpx (1.3.0) + httpx (1.3.1) http-2 (>= 1.0.0) i18n (1.14.5) concurrent-ruby (~> 1.0) @@ -659,7 +680,7 @@ GEM bindata faraday (~> 2.0) faraday-follow_redirects - json-schema (4.3.0) + json-schema (4.3.1) addressable (>= 2.8) json_schemer (2.3.0) bigdecimal @@ -677,7 +698,7 @@ GEM launchy (3.0.1) addressable (~> 2.8) childprocess (~> 5.0) - lefthook (1.7.7) + lefthook (1.7.14) letter_opener (1.10.0) launchy (>= 2.2, < 4) letter_opener_web (3.0.0) @@ -719,22 +740,22 @@ GEM net-pop net-smtp marcel (1.0.4) - markly (0.10.0) + markly (0.12.1) matrix (0.4.2) messagebird-rest (1.4.2) - meta-tags (2.21.0) - actionpack (>= 6.0.0, < 7.2) + meta-tags (2.22.0) + actionpack (>= 6.0.0, < 8.1) method_source (1.1.0) mime-types (3.5.2) mime-types-data (~> 3.2015) - mime-types-data (3.2024.0702) - mini_magick (4.13.2) + mime-types-data (3.2024.0806) + mini_magick (5.0.1) mini_mime (1.1.5) mini_portile2 (2.8.7) - minitest (5.24.1) + minitest (5.25.1) msgpack (1.7.2) multi_json (1.15.0) - mustermann (3.0.0) + mustermann (3.0.2) ruby2_keywords (~> 0.0.1) mustermann-grape (1.1.0) mustermann (>= 1.0.0) @@ -752,11 +773,12 @@ GEM net-smtp (0.5.0) net-protocol nio4r (2.7.3) - nokogiri (1.16.6) + nokogiri (1.16.7) mini_portile2 (~> 2.8.2) racc (~> 1.4) - oj (3.16.4) + oj (3.16.5) bigdecimal (>= 3.0) + ostruct (>= 0.2) okcomputer (1.18.5) omniauth-saml (1.10.3) omniauth (~> 1.3, >= 1.3.2) @@ -775,12 +797,12 @@ GEM validate_email validate_url webfinger (~> 2.0) - openproject-octicons (19.17.0) - openproject-octicons_helper (19.17.0) + openproject-octicons (19.18.0) + openproject-octicons_helper (19.18.0) actionview - openproject-octicons (= 19.17.0) + openproject-octicons (= 19.18.0) railties - openproject-primer_view_components (0.40.0) + openproject-primer_view_components (0.43.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) openproject-octicons (>= 19.17.0) @@ -790,15 +812,17 @@ GEM openssl (3.2.0) openssl-signature_algorithm (1.3.0) openssl (> 2.0) + optimist (3.1.0) os (1.1.4) + ostruct (0.6.0) ox (2.14.18) paper_trail (15.1.0) activerecord (>= 6.1) request_store (~> 1.4) - parallel (1.25.1) + parallel (1.26.2) parallel_tests (4.7.1) parallel - parser (3.3.4.0) + parser (3.3.4.2) ast (~> 2.4.1) racc pdf-core (0.9.0) @@ -836,7 +860,7 @@ GEM pry (>= 0.12.0) psych (5.1.2) stringio - public_suffix (6.0.0) + public_suffix (6.0.1) puffing-billy (4.0.0) addressable (~> 2.5) em-http-request (~> 1.1, >= 1.1.0) @@ -850,7 +874,7 @@ GEM puma-plugin-statsd (2.6.0) puma (>= 5.0, < 7) raabro (1.4.0) - racc (1.8.0) + racc (1.8.1) rack (2.2.9) rack-attack (6.7.0) rack (>= 1.0, < 4) @@ -879,20 +903,20 @@ GEM rackup (1.0.0) rack (< 3) webrick - rails (7.1.3.4) - actioncable (= 7.1.3.4) - actionmailbox (= 7.1.3.4) - actionmailer (= 7.1.3.4) - actionpack (= 7.1.3.4) - actiontext (= 7.1.3.4) - actionview (= 7.1.3.4) - activejob (= 7.1.3.4) - activemodel (= 7.1.3.4) - activerecord (= 7.1.3.4) - activestorage (= 7.1.3.4) - activesupport (= 7.1.3.4) + rails (7.1.4) + actioncable (= 7.1.4) + actionmailbox (= 7.1.4) + actionmailer (= 7.1.4) + actionpack (= 7.1.4) + actiontext (= 7.1.4) + actionview (= 7.1.4) + activejob (= 7.1.4) + activemodel (= 7.1.4) + activerecord (= 7.1.4) + activestorage (= 7.1.4) + activesupport (= 7.1.4) bundler (>= 1.15.0) - railties (= 7.1.3.4) + railties (= 7.1.4) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -907,9 +931,9 @@ GEM rails-i18n (7.0.9) i18n (>= 0.7, < 2) railties (>= 6.0.0, < 8) - railties (7.1.3.4) - actionpack (= 7.1.3.4) - activesupport (= 7.1.3.4) + railties (7.1.4) + actionpack (= 7.1.4) + activesupport (= 7.1.4) irb rackup (>= 1.0.0) rake (>= 12.2) @@ -920,7 +944,11 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rb_sys (0.9.98) + rb_sys (0.9.100) + rbtrace (0.5.1) + ffi (>= 1.0.6) + msgpack (>= 0.4.3) + optimist (>= 3.0.0) rbtree3 (0.7.1) rdoc (6.7.0) psych (>= 4.0.0) @@ -943,7 +971,7 @@ GEM actionpack (>= 5.2) railties (>= 5.2) retriable (3.1.2) - rexml (3.3.2) + rexml (3.3.6) strscan rinku (2.0.6) roar (1.2.0) @@ -962,7 +990,7 @@ GEM rspec-mocks (3.13.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-rails (6.1.3) + rspec-rails (6.1.4) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) @@ -973,7 +1001,7 @@ GEM rspec-retry (0.6.2) rspec-core (> 3.3) rspec-support (3.13.1) - rubocop (1.65.0) + rubocop (1.65.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -984,7 +1012,7 @@ GEM rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.31.3) + rubocop-ast (1.32.0) parser (>= 3.3.1.0) rubocop-capybara (2.21.0) rubocop (~> 1.41) @@ -1000,7 +1028,7 @@ GEM rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rspec (3.0.3) + rubocop-rspec (3.0.4) rubocop (~> 1.61) rubocop-rspec_rails (2.30.0) rubocop (~> 1.61) @@ -1017,16 +1045,16 @@ GEM nokogiri (>= 1.13.10) rexml ruby2_keywords (0.0.5) - rubytree (2.0.3) + rubytree (2.1.0) json (~> 2.0, > 2.3.1) rubyzip (2.3.2) safety_net_attestation (0.4.0) jwt (~> 2.0) - sanitize (6.1.2) + sanitize (6.1.3) crass (~> 1.0.2) nokogiri (>= 1.12.0) secure_headers (6.5.0) - selenium-devtools (0.126.0) + selenium-devtools (0.127.0) selenium-webdriver (~> 4.2) selenium-webdriver (4.23.0) base64 (~> 0.2) @@ -1036,7 +1064,7 @@ GEM websocket (~> 1.0) semantic (1.6.1) shoulda-context (2.0.0) - shoulda-matchers (6.2.0) + shoulda-matchers (6.4.0) activesupport (>= 5.2.0) signet (0.19.0) addressable (~> 2.8) @@ -1057,7 +1085,7 @@ GEM base64 concurrent-ruby (~> 1.0) rack (> 1, < 3) - sprockets-rails (3.5.1) + sprockets-rails (3.5.2) actionpack (>= 6.1) activesupport (>= 6.1) sprockets (>= 3.0.0) @@ -1080,13 +1108,13 @@ GEM table_print (1.5.7) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - test-prof (1.3.3.1) + test-prof (1.4.0) text-hyphen (1.5.0) thor (1.3.1) thread_safe (0.3.6) timecop (0.9.10) timeout (0.4.1) - tpm-key_attestation (0.12.0) + tpm-key_attestation (0.12.1) bindata (~> 2.4) openssl (> 2.0) openssl-signature_algorithm (~> 1.0) @@ -1113,7 +1141,8 @@ GEM validate_url (1.0.15) activemodel (>= 3.0.0) public_suffix - vcr (6.2.0) + vcr (6.3.1) + base64 view_component (3.13.0) activesupport (>= 5.2.0, < 8.0) concurrent-ruby (~> 1.0) @@ -1155,7 +1184,7 @@ GEM xpath (3.2.0) nokogiri (~> 1.8) yard (0.9.36) - zeitwerk (2.6.16) + zeitwerk (2.6.17) PLATFORMS ruby @@ -1206,6 +1235,7 @@ DEPENDENCIES dry-auto_inject dry-container dry-monads + dry-validation email_validator (~> 2.2.3) equivalent-xml (~> 0.6) erb_lint @@ -1243,8 +1273,8 @@ DEPENDENCIES markly (~> 0.10) matrix (~> 0.4.2) md_to_pdf! - meta-tags (~> 2.21.0) - mini_magick (~> 4.13.0) + meta-tags (~> 2.22.0) + mini_magick (~> 5.0.1) multi_json (~> 1.15.0) my_page! net-ldap (~> 0.19.0) @@ -1270,10 +1300,10 @@ DEPENDENCIES openproject-job_status! openproject-ldap_groups! openproject-meeting! - openproject-octicons (~> 19.17.0) - openproject-octicons_helper (~> 19.17.0) + openproject-octicons (~> 19.18.0) + openproject-octicons_helper (~> 19.18.0) openproject-openid_connect! - openproject-primer_view_components (~> 0.40.0) + openproject-primer_view_components (~> 0.43.0) openproject-recaptcha! openproject-reporting! openproject-storages! @@ -1307,6 +1337,7 @@ DEPENDENCIES rails (~> 7.1.3) rails-controller-testing (~> 1.0.2) rails-i18n (~> 7.0.0) + rbtrace rdoc (>= 2.4.2) redis (~> 5.2.0) request_store (~> 1.7.0) @@ -1329,7 +1360,7 @@ DEPENDENCIES ruby-duration (~> 3.2.0) ruby-prof ruby-progressbar (~> 1.13.0) - rubytree (~> 2.0.0) + rubytree (~> 2.1.0) sanitize (~> 6.1.0) secure_headers (~> 6.5.0) selenium-devtools @@ -1349,7 +1380,7 @@ DEPENDENCIES svg-graph (~> 2.2.0) sys-filesystem (~> 1.5.0) table_print (~> 1.5.6) - test-prof (~> 1.3.0) + test-prof (~> 1.4.0) timecop (~> 0.9.0) ttfunk (~> 1.7.0) turbo-rails (~> 2.0.0) diff --git a/Guardfile b/Guardfile index 83e8583758b0..4d787422605f 100644 --- a/Guardfile +++ b/Guardfile @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/Rakefile b/Rakefile index 30e586c3e063..829f4601de67 100755 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,7 @@ #!/usr/bin/env rake #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/_index.sass b/app/components/_index.sass index e85e1869929b..bf0cfde03645 100644 --- a/app/components/_index.sass +++ b/app/components/_index.sass @@ -1,9 +1,10 @@ @import "shares/modal_body_component" @import "shares/invite_user_form_component" +@import "work_packages/details/tab_component" @import "work_packages/progress/modal_body_component" +@import "work_packages/split_view_component" @import "open_project/common/attribute_component" @import "open_project/common/submenu_component" @import "filter/filters_component" @import "projects/row_component" -@import "settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component" @import "op_primer/border_box_table_component" diff --git a/app/components/activities/days_component.html.erb b/app/components/activities/days_component.html.erb index c0fd1098bf59..ced326e3a914 100644 --- a/app/components/activities/days_component.html.erb +++ b/app/components/activities/days_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/activities/days_component.rb b/app/components/activities/days_component.rb index fe76971cb6c8..cdd9303991e4 100644 --- a/app/components/activities/days_component.rb +++ b/app/components/activities/days_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/activities/item_component.html.erb b/app/components/activities/item_component.html.erb index 5237f1ba1f98..540337fc93d9 100644 --- a/app/components/activities/item_component.html.erb +++ b/app/components/activities/item_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/activities/item_component.rb b/app/components/activities/item_component.rb index 485b46ae02d1..2b95b2d01077 100644 --- a/app/components/activities/item_component.rb +++ b/app/components/activities/item_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/activities/item_subtitle_component.html.erb b/app/components/activities/item_subtitle_component.html.erb index 2b9edbce4e7f..05b60d4a1aff 100644 --- a/app/components/activities/item_subtitle_component.html.erb +++ b/app/components/activities/item_subtitle_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/activities/item_subtitle_component.rb b/app/components/activities/item_subtitle_component.rb index f27954e1cd39..81de3fd04be9 100644 --- a/app/components/activities/item_subtitle_component.rb +++ b/app/components/activities/item_subtitle_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/add_button_component.rb b/app/components/add_button_component.rb index 956d16c5fec5..a2b91bc92066 100644 --- a/app/components/add_button_component.rb +++ b/app/components/add_button_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/admin/attachments_settings_header_component.html.erb b/app/components/admin/attachments_settings_header_component.html.erb index 9374b9a49ad1..a264231f9aaa 100644 --- a/app/components/admin/attachments_settings_header_component.html.erb +++ b/app/components/admin/attachments_settings_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details. <% helpers.html_title t(:label_administration), @title %> -<%= render(Primer::OpenProject::PageHeader.new(border_bottom: 0)) do |header| +<%= render(Primer::OpenProject::PageHeader.new) do |header| header.with_title { t(:"attributes.attachments") } header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") }, { href: admin_settings_storages_path, text: t("project_module_storages") }, diff --git a/app/components/admin/attachments_settings_header_component.rb b/app/components/admin/attachments_settings_header_component.rb index 88d13b0c1808..af967d005552 100644 --- a/app/components/admin/attachments_settings_header_component.rb +++ b/app/components/admin/attachments_settings_header_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/admin/quarantined_attachments/row_component.rb b/app/components/admin/quarantined_attachments/row_component.rb index 0af393a4b4d1..5d83c4926bec 100644 --- a/app/components/admin/quarantined_attachments/row_component.rb +++ b/app/components/admin/quarantined_attachments/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/admin/quarantined_attachments/table_component.rb b/app/components/admin/quarantined_attachments/table_component.rb index 7ea4e52020fd..a05f36170871 100644 --- a/app/components/admin/quarantined_attachments/table_component.rb +++ b/app/components/admin/quarantined_attachments/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/application_component.rb b/app/components/application_component.rb index e603d1194588..53dc6caf507f 100644 --- a/app/components/application_component.rb +++ b/app/components/application_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/attribute_groups/attribute_group_component.html.erb b/app/components/attribute_groups/attribute_group_component.html.erb index 36c6ad38aa48..f539a04a85b3 100644 --- a/app/components/attribute_groups/attribute_group_component.html.erb +++ b/app/components/attribute_groups/attribute_group_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/attribute_groups/attribute_group_component.rb b/app/components/attribute_groups/attribute_group_component.rb index ec401d6d7ca8..df5e418a7299 100644 --- a/app/components/attribute_groups/attribute_group_component.rb +++ b/app/components/attribute_groups/attribute_group_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/attribute_groups/attribute_group_header_component.html.erb b/app/components/attribute_groups/attribute_group_header_component.html.erb index b93babe89bd3..720bc5fad9c3 100644 --- a/app/components/attribute_groups/attribute_group_header_component.html.erb +++ b/app/components/attribute_groups/attribute_group_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/attribute_groups/attribute_group_header_component.rb b/app/components/attribute_groups/attribute_group_header_component.rb index dc74e61d38a8..ae2d82994300 100644 --- a/app/components/attribute_groups/attribute_group_header_component.rb +++ b/app/components/attribute_groups/attribute_group_header_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/attribute_groups/attribute_key_value_component.html.erb b/app/components/attribute_groups/attribute_key_value_component.html.erb index a36d9c5defdc..2bbbfc1a62ab 100644 --- a/app/components/attribute_groups/attribute_key_value_component.html.erb +++ b/app/components/attribute_groups/attribute_key_value_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/attribute_groups/attribute_key_value_component.rb b/app/components/attribute_groups/attribute_key_value_component.rb index f96b6c92cbc3..0f98310bb0ef 100644 --- a/app/components/attribute_groups/attribute_key_value_component.rb +++ b/app/components/attribute_groups/attribute_key_value_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/colors/edit_page_header_component.html.erb b/app/components/colors/edit_page_header_component.html.erb index 9f2263722b45..55dde57ac10c 100644 --- a/app/components/colors/edit_page_header_component.html.erb +++ b/app/components/colors/edit_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/colors/edit_page_header_component.rb b/app/components/colors/edit_page_header_component.rb index 38894245e111..e02859a411e1 100644 --- a/app/components/colors/edit_page_header_component.rb +++ b/app/components/colors/edit_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/components/on_off_status_component.html.erb b/app/components/components/on_off_status_component.html.erb index 4a805303bbf8..4a64e60e31f1 100644 --- a/app/components/components/on_off_status_component.html.erb +++ b/app/components/components/on_off_status_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/components/on_off_status_component.rb b/app/components/components/on_off_status_component.rb index 439a23248a77..cc87876539b4 100644 --- a/app/components/components/on_off_status_component.rb +++ b/app/components/components/on_off_status_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/concerns/op_turbo/streamable.rb b/app/components/concerns/op_turbo/streamable.rb index 000bdc1088c8..1a1c0ce8b14b 100644 --- a/app/components/concerns/op_turbo/streamable.rb +++ b/app/components/concerns/op_turbo/streamable.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/custom_actions/row_component.rb b/app/components/custom_actions/row_component.rb index a8f2f3586cec..9a51a70d1c1d 100644 --- a/app/components/custom_actions/row_component.rb +++ b/app/components/custom_actions/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/custom_actions/table_component.rb b/app/components/custom_actions/table_component.rb index 0c7dfe58fd4f..4d5d9bf87097 100644 --- a/app/components/custom_actions/table_component.rb +++ b/app/components/custom_actions/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/enumerations/row_component.rb b/app/components/enumerations/row_component.rb index 9c885f3a3752..4ba4c7f21dd0 100644 --- a/app/components/enumerations/row_component.rb +++ b/app/components/enumerations/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/enumerations/table_component.rb b/app/components/enumerations/table_component.rb index bba8eff05e1e..177f8510186c 100644 --- a/app/components/enumerations/table_component.rb +++ b/app/components/enumerations/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/filter/filter_button_component.html.erb b/app/components/filter/filter_button_component.html.erb index 2b624db592d1..f17a4b500bd6 100644 --- a/app/components/filter/filter_button_component.html.erb +++ b/app/components/filter/filter_button_component.html.erb @@ -1,8 +1,10 @@ -<%= render(Primer::Beta::Button.new(scheme: :secondary, +<%= component_wrapper tag: "turbo-frame" do %> + <%= render(Primer::Beta::Button.new(scheme: :secondary, disabled:, data: { "filter--filters-form-target": "filterFormToggle", action: "filter--filters-form#toggleDisplayFilters" }, test_selector: "filter-component-toggle")) do |button| %> - <% button.with_trailing_visual_counter(count: filters_count, test_selector: "filters-button-counter") %> - <%= t(:label_filter) %> + <% button.with_trailing_visual_counter(count: filters_count, test_selector: "filters-button-counter") %> + <%= t(:label_filter) %> + <% end %> <% end %> diff --git a/app/components/filter/filter_button_component.rb b/app/components/filter/filter_button_component.rb index 4df3f77cbba8..7b065bde8c7c 100644 --- a/app/components/filter/filter_button_component.rb +++ b/app/components/filter/filter_button_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -31,11 +31,17 @@ module Filter # rubocop:disable OpenProject/AddPreviewForViewComponent class FilterButtonComponent < ApplicationComponent # rubocop:enable OpenProject/AddPreviewForViewComponent + include OpTurbo::Streamable + options :query options :disabled def filters_count @filters_count ||= query.filters.count end + + def wrapper_key + "filter-button" + end end end diff --git a/app/components/filter/filter_component.html.erb b/app/components/filter/filter_component.html.erb index 0d4759bebca9..43901b555bc9 100644 --- a/app/components/filter/filter_component.html.erb +++ b/app/components/filter/filter_component.html.erb @@ -113,15 +113,5 @@ <%= submit_tag t('button_apply'), class: 'button -small -primary', name: nil %> - <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list)%> - <%= - helpers.angular_component_tag 'op-enterprise-banner', - inputs: { - collapsible: true, - textMessage: t('ee.upsale.project_filters.description_html'), - moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href], - } - %> - <% end %> <% end %> diff --git a/app/components/filter/filter_component.rb b/app/components/filter/filter_component.rb index e24de32ec2c4..6eca5aeb6721 100644 --- a/app/components/filter/filter_component.rb +++ b/app/components/filter/filter_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/groups/edit_page_header_component.html.erb b/app/components/groups/edit_page_header_component.html.erb index 561131a2cded..62302ef4d8fa 100644 --- a/app/components/groups/edit_page_header_component.html.erb +++ b/app/components/groups/edit_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/groups/edit_page_header_component.rb b/app/components/groups/edit_page_header_component.rb index eec2c78caa8d..89e0fbf6a065 100644 --- a/app/components/groups/edit_page_header_component.rb +++ b/app/components/groups/edit_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/groups/show_page_header_component.html.erb b/app/components/groups/show_page_header_component.html.erb index c1e4715af585..f42886dfed36 100644 --- a/app/components/groups/show_page_header_component.html.erb +++ b/app/components/groups/show_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/groups/show_page_header_component.rb b/app/components/groups/show_page_header_component.rb index fd22e6c4347e..14a34d038696 100644 --- a/app/components/groups/show_page_header_component.rb +++ b/app/components/groups/show_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/individual_principal_base_filter_component.html.erb b/app/components/individual_principal_base_filter_component.html.erb index 265c4a8ad61a..4c7b44a71547 100644 --- a/app/components/individual_principal_base_filter_component.html.erb +++ b/app/components/individual_principal_base_filter_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/individual_principal_base_filter_component.rb b/app/components/individual_principal_base_filter_component.rb index b82f9f6bd263..7e1291b6cfe9 100644 --- a/app/components/individual_principal_base_filter_component.rb +++ b/app/components/individual_principal_base_filter_component.rb @@ -2,13 +2,13 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/components/ldap_auth_sources/row_component.rb b/app/components/ldap_auth_sources/row_component.rb index 975c87e46252..f1ee95ed1a93 100644 --- a/app/components/ldap_auth_sources/row_component.rb +++ b/app/components/ldap_auth_sources/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/ldap_auth_sources/table_component.rb b/app/components/ldap_auth_sources/table_component.rb index ffbf507c6b39..fd174d9a9383 100644 --- a/app/components/ldap_auth_sources/table_component.rb +++ b/app/components/ldap_auth_sources/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/mailer/label_component.html.erb b/app/components/mailer/label_component.html.erb index 6458d7605213..dfb09abfc2d4 100644 --- a/app/components/mailer/label_component.html.erb +++ b/app/components/mailer/label_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/mailer/label_component.rb b/app/components/mailer/label_component.rb index ac7f62c3285b..14ac26f9e4ad 100644 --- a/app/components/mailer/label_component.rb +++ b/app/components/mailer/label_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/delete_member_dialog_component.html.erb b/app/components/members/delete_member_dialog_component.html.erb index b64bc38eea47..fa1b200f6819 100644 --- a/app/components/members/delete_member_dialog_component.html.erb +++ b/app/components/members/delete_member_dialog_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/delete_member_dialog_component.rb b/app/components/members/delete_member_dialog_component.rb index bb8cf602d9ad..881fd94ba33f 100644 --- a/app/components/members/delete_member_dialog_component.rb +++ b/app/components/members/delete_member_dialog_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/delete_work_package_shares_dialog_component.html.erb b/app/components/members/delete_work_package_shares_dialog_component.html.erb index ebd80af1a1c6..202e3bc69e7f 100644 --- a/app/components/members/delete_work_package_shares_dialog_component.html.erb +++ b/app/components/members/delete_work_package_shares_dialog_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/delete_work_package_shares_dialog_component.rb b/app/components/members/delete_work_package_shares_dialog_component.rb index 27cc84d2d37b..c651329c92f1 100644 --- a/app/components/members/delete_work_package_shares_dialog_component.rb +++ b/app/components/members/delete_work_package_shares_dialog_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/index_page_header_component.rb b/app/components/members/index_page_header_component.rb index 167c97d4ad35..c0df1b1bbd92 100644 --- a/app/components/members/index_page_header_component.rb +++ b/app/components/members/index_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/index_sub_header_component.rb b/app/components/members/index_sub_header_component.rb index 1ee814e243fb..1f4efa876b55 100644 --- a/app/components/members/index_sub_header_component.rb +++ b/app/components/members/index_sub_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/role_form_component.html.erb b/app/components/members/role_form_component.html.erb index eb562af91c93..b0b1112f1e7c 100644 --- a/app/components/members/role_form_component.html.erb +++ b/app/components/members/role_form_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/role_form_component.rb b/app/components/members/role_form_component.rb index c207c31c03df..ae11149e7db3 100644 --- a/app/components/members/role_form_component.rb +++ b/app/components/members/role_form_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/row_component.rb b/app/components/members/row_component.rb index 41b96e6a06b8..5820e45f88ac 100644 --- a/app/components/members/row_component.rb +++ b/app/components/members/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/table_component.rb b/app/components/members/table_component.rb index 9ab1fc921b0a..4b4c48952631 100644 --- a/app/components/members/table_component.rb +++ b/app/components/members/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/members/user_filter_component.rb b/app/components/members/user_filter_component.rb index 0ef24a8de7fa..87eee13dd375 100644 --- a/app/components/members/user_filter_component.rb +++ b/app/components/members/user_filter_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/access_token_created_dialog_component.html.erb b/app/components/my/access_token/access_token_created_dialog_component.html.erb index 366a3b613888..bdc7c01fa5d0 100644 --- a/app/components/my/access_token/access_token_created_dialog_component.html.erb +++ b/app/components/my/access_token/access_token_created_dialog_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/access_token_created_dialog_component.rb b/app/components/my/access_token/access_token_created_dialog_component.rb index b9c4924c79ae..4dce63aade45 100644 --- a/app/components/my/access_token/access_token_created_dialog_component.rb +++ b/app/components/my/access_token/access_token_created_dialog_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/api/row_component.rb b/app/components/my/access_token/api/row_component.rb index 6e89dd97804d..70641421e9c6 100644 --- a/app/components/my/access_token/api/row_component.rb +++ b/app/components/my/access_token/api/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/api/table_component.rb b/app/components/my/access_token/api/table_component.rb index 69d4d9fe5b77..dc0cd690e538 100644 --- a/app/components/my/access_token/api/table_component.rb +++ b/app/components/my/access_token/api/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/api_tokens_section_component.html.erb b/app/components/my/access_token/api_tokens_section_component.html.erb index 0e89fa591810..cd6206d5638d 100644 --- a/app/components/my/access_token/api_tokens_section_component.html.erb +++ b/app/components/my/access_token/api_tokens_section_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/api_tokens_section_component.rb b/app/components/my/access_token/api_tokens_section_component.rb index b5faee9bd59b..e6aa64c28352 100644 --- a/app/components/my/access_token/api_tokens_section_component.rb +++ b/app/components/my/access_token/api_tokens_section_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/new_access_token_component.html.erb b/app/components/my/access_token/new_access_token_component.html.erb index e7eaae379dce..fcda19cf2eae 100644 --- a/app/components/my/access_token/new_access_token_component.html.erb +++ b/app/components/my/access_token/new_access_token_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/new_access_token_component.rb b/app/components/my/access_token/new_access_token_component.rb index 3c80550c9c50..45e15b3a2137 100644 --- a/app/components/my/access_token/new_access_token_component.rb +++ b/app/components/my/access_token/new_access_token_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/new_access_token_form.rb b/app/components/my/access_token/new_access_token_form.rb index 93d78649488a..398e481a363b 100644 --- a/app/components/my/access_token/new_access_token_form.rb +++ b/app/components/my/access_token/new_access_token_form.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/new_access_token_form_component.html.erb b/app/components/my/access_token/new_access_token_form_component.html.erb index 90c080753f0e..e179d484ec29 100644 --- a/app/components/my/access_token/new_access_token_form_component.html.erb +++ b/app/components/my/access_token/new_access_token_form_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/my/access_token/new_access_token_form_component.rb b/app/components/my/access_token/new_access_token_form_component.rb index d6b8a91ebd69..8a38ec8aac53 100644 --- a/app/components/my/access_token/new_access_token_form_component.rb +++ b/app/components/my/access_token/new_access_token_form_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/notifications/index_page_header_component.html.erb b/app/components/notifications/index_page_header_component.html.erb new file mode 100644 index 000000000000..2c56ef78df3f --- /dev/null +++ b/app/components/notifications/index_page_header_component.html.erb @@ -0,0 +1,15 @@ +<%= render(Primer::OpenProject::PageHeader.new) do |header| + header.with_title { page_title } + header.with_breadcrumbs(breadcrumb_items) + + header.with_action_button(tag: :a, + mobile_icon: :gear, + mobile_label: I18n.t(:label_setting_plural), + href: my_notifications_path, + size: :medium, + target: "_blank", + aria: { label: I18n.t("js.notifications.settings.title") }) do |button| + button.with_leading_visual_icon(icon: :gear) + I18n.t(:label_setting_plural) + end +end %> diff --git a/app/components/notifications/index_page_header_component.rb b/app/components/notifications/index_page_header_component.rb new file mode 100644 index 000000000000..2589da0ccec6 --- /dev/null +++ b/app/components/notifications/index_page_header_component.rb @@ -0,0 +1,53 @@ +# frozen_string_literal: true + +# -- copyright +# OpenProject is an open source project management software. +# Copyright (C) 2010-2024 the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +# ++ + +module Notifications + class IndexPageHeaderComponent < ApplicationComponent + include ApplicationHelper + + def initialize(project: nil) + super + @project = project + end + + def page_title + I18n.t("js.notifications.title") + end + + def breadcrumb_items + [parent_element, + page_title] + end + + def parent_element + { href: home_path, text: I18n.t(:label_home) } + end + end +end diff --git a/app/components/notifications/index_sub_header_component.html.erb b/app/components/notifications/index_sub_header_component.html.erb new file mode 100644 index 000000000000..3554007d2c7a --- /dev/null +++ b/app/components/notifications/index_sub_header_component.html.erb @@ -0,0 +1,25 @@ +<%= render(Primer::OpenProject::SubHeader.new) do |subheader| + subheader.with_filter_component do + render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control| + control.with_item(tag: :a, + href: notifications_path(facet: nil, **current_filters), + label: t("notifications.facets.unread"), + title: t("notifications.facets.unread_title"), + selected: @facet != "all") + control.with_item(tag: :a, + href: notifications_path(facet: "all", **current_filters), + label: t("notifications.facets.all"), + title: t("notifications.facets.all_title"), + selected: @facet == "all") + end + end + + subheader.with_action_button(tag: :a, + href: mark_all_read_notifications_path(**current_filters), + data: { method: :post }, + size: :medium, + aria: { label: I18n.t("js.notifications.center.mark_all_read") }) do |button| + button.with_leading_visual_icon(icon: :'op-read-all') + I18n.t("js.notifications.center.mark_all_read") + end +end %> diff --git a/app/components/notifications/index_sub_header_component.rb b/app/components/notifications/index_sub_header_component.rb new file mode 100644 index 000000000000..6ee231797e41 --- /dev/null +++ b/app/components/notifications/index_sub_header_component.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# -- copyright +# OpenProject is an open source project management software. +# Copyright (C) 2010-2024 the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +# ++ + +module Notifications + class IndexSubHeaderComponent < ApplicationComponent + include ApplicationHelper + + attr_reader :facet, :filter_type, :filter_name + + def initialize(project: nil, facet: nil, filter_type: nil, filter_name: nil) + super + @project = project + @facet = facet + @filter_type = filter_type + @filter_name = filter_name + end + + def current_filters + @current_filters ||= { filter: @filter_type, name: @filter_name }.compact + end + end +end diff --git a/app/components/oauth/applications/row_component.rb b/app/components/oauth/applications/row_component.rb index 70b598eac265..840dc2ca1682 100644 --- a/app/components/oauth/applications/row_component.rb +++ b/app/components/oauth/applications/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/oauth/applications/table_component.rb b/app/components/oauth/applications/table_component.rb index 144742596aa5..267f82c23ff2 100644 --- a/app/components/oauth/applications/table_component.rb +++ b/app/components/oauth/applications/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/oauth/show_page_header_component.html.erb b/app/components/oauth/show_page_header_component.html.erb index c466d39405dc..d340f870abcb 100644 --- a/app/components/oauth/show_page_header_component.html.erb +++ b/app/components/oauth/show_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/oauth/show_page_header_component.rb b/app/components/oauth/show_page_header_component.rb index dcffb5689be5..531ff53dfb41 100644 --- a/app/components/oauth/show_page_header_component.rb +++ b/app/components/oauth/show_page_header_component.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true -# -- copyright +#-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -26,7 +26,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # See COPYRIGHT and LICENSE files for more details. -# ++ +#++ class OAuth::ShowPageHeaderComponent < ApplicationComponent include OpPrimer::ComponentHelpers diff --git a/app/components/op_primer/border_box_row_component.html.erb b/app/components/op_primer/border_box_row_component.html.erb index 89b2faf1e7c6..f2ffcf6ad838 100644 --- a/app/components/op_primer/border_box_row_component.html.erb +++ b/app/components/op_primer/border_box_row_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/border_box_row_component.rb b/app/components/op_primer/border_box_row_component.rb index 9d7ba49556cd..5c3b21120158 100644 --- a/app/components/op_primer/border_box_row_component.rb +++ b/app/components/op_primer/border_box_row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/border_box_table_component.html.erb b/app/components/op_primer/border_box_table_component.html.erb index f8c1dbc8ffd2..6b28c0c49e19 100644 --- a/app/components/op_primer/border_box_table_component.html.erb +++ b/app/components/op_primer/border_box_table_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/border_box_table_component.rb b/app/components/op_primer/border_box_table_component.rb index 590297fec545..84f5dee83613 100644 --- a/app/components/op_primer/border_box_table_component.rb +++ b/app/components/op_primer/border_box_table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/box_collection_component.html.erb b/app/components/op_primer/box_collection_component.html.erb index bb48bb9b959a..7a001ae20a0e 100644 --- a/app/components/op_primer/box_collection_component.html.erb +++ b/app/components/op_primer/box_collection_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/box_collection_component.rb b/app/components/op_primer/box_collection_component.rb index 91cc31be24b4..5f3dc5b29408 100644 --- a/app/components/op_primer/box_collection_component.rb +++ b/app/components/op_primer/box_collection_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/component_collection_component.html.erb b/app/components/op_primer/component_collection_component.html.erb index 6eda7cd0f6ed..634948f2cf2d 100644 --- a/app/components/op_primer/component_collection_component.html.erb +++ b/app/components/op_primer/component_collection_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/component_collection_component.rb b/app/components/op_primer/component_collection_component.rb index 7ff211224381..2d1018b2ab25 100644 --- a/app/components/op_primer/component_collection_component.rb +++ b/app/components/op_primer/component_collection_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/component_helpers.rb b/app/components/op_primer/component_helpers.rb index 79a91a46ba0d..affe44f59453 100644 --- a/app/components/op_primer/component_helpers.rb +++ b/app/components/op_primer/component_helpers.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/expandable_list_component.rb b/app/components/op_primer/expandable_list_component.rb index 9378b0b479a8..ead8cdf208a2 100644 --- a/app/components/op_primer/expandable_list_component.rb +++ b/app/components/op_primer/expandable_list_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_primer/relative_time_component.rb b/app/components/op_primer/relative_time_component.rb index 3171ef824cd4..109e4df64885 100644 --- a/app/components/op_primer/relative_time_component.rb +++ b/app/components/op_primer/relative_time_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_turbo/frame_component.html.erb b/app/components/op_turbo/frame_component.html.erb index 2d564a068378..fe5c28858886 100644 --- a/app/components/op_turbo/frame_component.html.erb +++ b/app/components/op_turbo/frame_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_turbo/frame_component.rb b/app/components/op_turbo/frame_component.rb index 29eafe073797..b92c1f565db9 100644 --- a/app/components/op_turbo/frame_component.rb +++ b/app/components/op_turbo/frame_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_turbo/stream_component.html.erb b/app/components/op_turbo/stream_component.html.erb index 67e4445ee764..bac890e181e1 100644 --- a/app/components/op_turbo/stream_component.html.erb +++ b/app/components/op_turbo/stream_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/op_turbo/stream_component.rb b/app/components/op_turbo/stream_component.rb index 1db75dd0138a..2fb2ecef9826 100644 --- a/app/components/op_turbo/stream_component.rb +++ b/app/components/op_turbo/stream_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/open_project/common/attribute_component.rb b/app/components/open_project/common/attribute_component.rb index 97b38a35e7f1..b6ddf5ef6621 100644 --- a/app/components/open_project/common/attribute_component.rb +++ b/app/components/open_project/common/attribute_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/open_project/common/duration_component.rb b/app/components/open_project/common/duration_component.rb index 45bd009080f4..bbf2b7a16f31 100644 --- a/app/components/open_project/common/duration_component.rb +++ b/app/components/open_project/common/duration_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/open_project/common/submenu_component.rb b/app/components/open_project/common/submenu_component.rb index e0cdcf88ea15..5db1ec4816e8 100644 --- a/app/components/open_project/common/submenu_component.rb +++ b/app/components/open_project/common/submenu_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/placeholder_users/edit_page_header_component.html.erb b/app/components/placeholder_users/edit_page_header_component.html.erb index 16a2da608153..71e44dd5e5aa 100644 --- a/app/components/placeholder_users/edit_page_header_component.html.erb +++ b/app/components/placeholder_users/edit_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/placeholder_users/edit_page_header_component.rb b/app/components/placeholder_users/edit_page_header_component.rb index 5033a47a678e..756f6efee851 100644 --- a/app/components/placeholder_users/edit_page_header_component.rb +++ b/app/components/placeholder_users/edit_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/placeholder_users/placeholder_user_filter_component.rb b/app/components/placeholder_users/placeholder_user_filter_component.rb index a9d999197f90..7188d1b20d83 100644 --- a/app/components/placeholder_users/placeholder_user_filter_component.rb +++ b/app/components/placeholder_users/placeholder_user_filter_component.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/components/placeholder_users/row_component.rb b/app/components/placeholder_users/row_component.rb index e419ddeb4351..a3521b287f53 100644 --- a/app/components/placeholder_users/row_component.rb +++ b/app/components/placeholder_users/row_component.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/components/placeholder_users/show_page_header_component.html.erb b/app/components/placeholder_users/show_page_header_component.html.erb index da9b1bf4fe86..2541493523ea 100644 --- a/app/components/placeholder_users/show_page_header_component.html.erb +++ b/app/components/placeholder_users/show_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/placeholder_users/show_page_header_component.rb b/app/components/placeholder_users/show_page_header_component.rb index b9847feb6962..20489a0b6cb1 100644 --- a/app/components/placeholder_users/show_page_header_component.rb +++ b/app/components/placeholder_users/show_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/placeholder_users/table_component.rb b/app/components/placeholder_users/table_component.rb index cebf3a43a88a..d43d368a3c3e 100644 --- a/app/components/placeholder_users/table_component.rb +++ b/app/components/placeholder_users/table_component.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/components/projects/configure_view_modal_component.html.erb b/app/components/projects/configure_view_modal_component.html.erb index 6c8ea75bfbe1..5a67332542ba 100644 --- a/app/components/projects/configure_view_modal_component.html.erb +++ b/app/components/projects/configure_view_modal_component.html.erb @@ -10,13 +10,14 @@ <%= primer_form_with( url: projects_path, id: QUERY_FORM_ID, + data: { "turbo-stream" => false }, method: :get ) do |form| %> <% helpers.projects_query_params.except(:columns, :sortBy).each do |name, value| %> <%= hidden_field_tag name, value %> <% end %> <%= render(Primer::Alpha::TabPanels.new(label: "label")) do |tab_panel| %> - <% tab_panel.with_tab(selected: true, id: "tab-selects") do |tab| %> + <% tab_panel.with_tab(selected: true, id: "tab-selects--columns") do |tab| %> <% tab.with_text { I18n.t("label_columns") } %> <% tab.with_panel do %> <%= helpers.angular_component_tag 'opce-draggable-autocompleter', @@ -33,7 +34,7 @@ }%> <% end %> <% end %> - <% tab_panel.with_tab(id: "tab-selects") do |tab| %> + <% tab_panel.with_tab(id: "tab-selects--sorting") do |tab| %> <% tab.with_text { I18n.t("label_sort") }%> <% tab.with_panel do %> <%= render(Queries::SortByComponent.new(query: query, selectable_columns:)) %> diff --git a/app/components/projects/configure_view_modal_component.rb b/app/components/projects/configure_view_modal_component.rb index 8c68d1576293..03dcf504b972 100644 --- a/app/components/projects/configure_view_modal_component.rb +++ b/app/components/projects/configure_view_modal_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -29,6 +29,8 @@ # ++ class Projects::ConfigureViewModalComponent < ApplicationComponent + include OpTurbo::Streamable + MODAL_ID = "op-project-list-configure-dialog" QUERY_FORM_ID = "op-project-list-configure-query-form" COLUMN_HTML_NAME = "columns" diff --git a/app/components/projects/delete_list_modal_component.rb b/app/components/projects/delete_list_modal_component.rb index d8ba7523c3a0..ef0720edd108 100644 --- a/app/components/projects/delete_list_modal_component.rb +++ b/app/components/projects/delete_list_modal_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -28,7 +28,9 @@ # See COPYRIGHT and LICENSE files for more details. # ++ -class Projects::DeleteListModalComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent +class Projects::DeleteListModalComponent < ApplicationComponent + include OpTurbo::Streamable + MODAL_ID = "op-project-list-delete-dialog" options :query diff --git a/app/components/projects/disk_usage_information_component.rb b/app/components/projects/disk_usage_information_component.rb index a3cbd00e5efb..c8a18303c79a 100644 --- a/app/components/projects/disk_usage_information_component.rb +++ b/app/components/projects/disk_usage_information_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/export_list_modal_component.rb b/app/components/projects/export_list_modal_component.rb index e540403fbd98..28085a486fff 100644 --- a/app/components/projects/export_list_modal_component.rb +++ b/app/components/projects/export_list_modal_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -28,7 +28,8 @@ # See COPYRIGHT and LICENSE files for more details. # ++ -class Projects::ExportListModalComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent +class Projects::ExportListModalComponent < ApplicationComponent + include OpTurbo::Streamable MODAL_ID = "op-project-list-export-dialog" options :query diff --git a/app/components/projects/index_page_header_component.html.erb b/app/components/projects/index_page_header_component.html.erb index b6c1db69689b..2d4bdb4e1667 100644 --- a/app/components/projects/index_page_header_component.html.erb +++ b/app/components/projects/index_page_header_component.html.erb @@ -1,7 +1,18 @@ -<% if show_state? %> +<%= component_wrapper(tag: 'turbo-frame') do %> <%= - render(Primer::OpenProject::PageHeader.new) do |header| - header.with_title(data: { 'test-selector': 'project-query-name' }) { page_title } + render(Primer::OpenProject::PageHeader.new(state: @state)) do |header| + header.with_title(data: { 'test-selector': 'project-query-name' }) do |title| + title.with_editable_form(model: query, + update_path: @query.new_record? ? project_queries_path(projects_query_params) : project_query_path(@query, projects_query_params), + method: @query.new_record? ? :post : :put, + cancel_path: projects_path(**projects_query_params, **{ query_id: query.id }.compact), + input_name: "name", + label: ProjectQuery.human_attribute_name(:name), + placeholder: I18n.t(:"projects.lists.new.placeholder"), + scope: 'query', + id: 'project-save-form') + page_title + end header.with_breadcrumbs(breadcrumb_items, selected_item_font_weight: current_breadcrumb_element == page_title ? :bold : :normal) if can_save? @@ -89,7 +100,8 @@ menu.with_item( tag: :a, label: t(:label_overall_activity), - href: activities_path + href: activities_path, + content_arguments: { rel: "nofollow" } ) do |item| item.with_leading_visual_icon(icon: 'tasklist') end @@ -112,24 +124,30 @@ end menu.with_item( + tag: :a, label: t('js.label_export'), - content_arguments: { 'data-show-dialog-id': Projects::ExportListModalComponent::MODAL_ID } + href: export_list_modal_projects_path(projects_query_params), + content_arguments: { data: { controller: "async-dialog" }, rel: "nofollow" } ) do |item| item.with_leading_visual_icon(icon: 'sign-out') end menu.with_item( + tag: :a, label: t(:'queries.configure_view.heading'), - content_arguments: { 'data-show-dialog-id': Projects::ConfigureViewModalComponent::MODAL_ID } + href: configure_view_modal_project_queries_path(projects_query_params), + content_arguments: { data: { controller: "async-dialog" }} ) do |item| item.with_leading_visual_icon(icon: :gear) end if query.persisted? menu.with_item( + tag: :a, label: t(:button_delete), scheme: :danger, - content_arguments: { 'data-show-dialog-id': Projects::DeleteListModalComponent::MODAL_ID } + href: destroy_confirmation_modal_project_query_path(query.id), + content_arguments: { data: { controller: "async-dialog" }} ) do |item| item.with_leading_visual_icon(icon: 'trash') end @@ -137,26 +155,4 @@ end end %> - <%= render(Projects::ConfigureViewModalComponent.new(query:)) %> - <%= render(Projects::DeleteListModalComponent.new(query:)) if query.persisted? %> - <%= render(Projects::ExportListModalComponent.new(query:)) %> -<% else %> - <%= - render(Primer::OpenProject::PageHeader.new) do |header| - header.with_title(data: { 'test-selector': 'project-query-name' }) do - primer_form_with(model: query, - url: @query.new_record? ? project_queries_path(projects_query_params) : project_query_path(@query, projects_query_params), - scope: 'query', - id: 'project-save-form') do |f| - render( - Queries::Projects::Form.new( - f, - cancel_url: projects_path(**projects_query_params, **{ query_id: query.id }.compact) - ) - ) - end - end - header.with_breadcrumbs(breadcrumb_items) - end - %> <% end %> diff --git a/app/components/projects/index_page_header_component.rb b/app/components/projects/index_page_header_component.rb index 3d840aba46e5..d11e00642136 100644 --- a/app/components/projects/index_page_header_component.rb +++ b/app/components/projects/index_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -31,25 +31,36 @@ class Projects::IndexPageHeaderComponent < ApplicationComponent include OpPrimer::ComponentHelpers include Primer::FetchOrFallbackHelper + include OpTurbo::Streamable attr_accessor :current_user, :query, :state, :params - STATE_OPTIONS = %i[show edit rename].freeze + STATE_DEFAULT = :show + STATE_EDIT = :edit delegate :projects_query_params, to: :helpers - def initialize(current_user:, query:, params:, state: :show) + def initialize(current_user:, query:, params:, state: STATE_DEFAULT) super self.current_user = current_user self.query = query - self.state = fetch_or_fallback(STATE_OPTIONS, state) + self.state = case state + when :edit, :rename + STATE_EDIT + else + STATE_DEFAULT + end self.params = params end + def self.wrapper_key + "projects-index-page-header" + end + def gantt_portfolio_query_link generator = ::Projects::GanttQueryGeneratorService.new(gantt_portfolio_project_ids) gantt_index_path query_props: generator.call @@ -59,9 +70,8 @@ def gantt_portfolio_project_ids @gantt_portfolio_project_ids ||= @query .results .where(active: true) - .select(:id) - .uniq .pluck(:id) + .uniq end def page_title @@ -132,7 +142,8 @@ def header_save_action(header:, message:, label:, href:, method: nil) mobile_icon: nil, # Do not show on mobile as it is already part of the menu mobile_label: nil, href:, - data: { method: } + data: { "turbo-stream": true, method: }, + target: "" ) do render( Primer::Beta::Octicon.new( @@ -150,7 +161,7 @@ def menu_save_item(menu:, label:, href:, method: nil) label:, href:, content_arguments: { - data: { method: } + data: { "turbo-stream": true, method: } } ) do |item| item.with_leading_visual_icon(icon: :"op-save") diff --git a/app/components/projects/index_sub_header_component.html.erb b/app/components/projects/index_sub_header_component.html.erb index 82dc01433430..464fadc021ef 100644 --- a/app/components/projects/index_sub_header_component.html.erb +++ b/app/components/projects/index_sub_header_component.html.erb @@ -1,23 +1,26 @@ -<%= render(Primer::OpenProject::SubHeader.new(data: { - controller: "filter--filters-form", - "application-target": "dynamic", - })) do |subheader| - subheader.with_filter_component do - render(Filter::FilterButtonComponent.new(query: @query, disabled: @disable_buttons)) - end +<%= component_wrapper(tag: 'turbo-frame') do %> + <%= render(Primer::OpenProject::SubHeader.new(data: { + controller: "filter--filters-form", + 'filter--filters-form-perform-turbo-requests-value': true, + "application-target": "dynamic", + })) do |subheader| + subheader.with_filter_component do + render(Filter::FilterButtonComponent.new(query: @query, disabled: @disable_buttons)) + end - subheader.with_action_button(tag: :a, - href: new_project_path, - scheme: :primary, - disabled: @disable_buttons, - size: :medium, - aria: { label: I18n.t(:label_project_new) }, - data: { 'test-selector': 'project-new-button' }) do |button| - button.with_leading_visual_icon(icon: :plus) - Project.model_name.human - end if @current_user.allowed_globally?(:add_project) + subheader.with_action_button(tag: :a, + href: new_project_path, + scheme: :primary, + disabled: @disable_buttons, + size: :medium, + aria: { label: I18n.t(:label_project_new) }, + data: { 'test-selector': 'project-new-button' }) do |button| + button.with_leading_visual_icon(icon: :plus) + Project.model_name.human + end if @current_user.allowed_globally?(:add_project) - subheader.with_bottom_pane_component(mt: 0) do - render(Projects::ProjectsFiltersComponent.new(query: @query)) - end - end %> + subheader.with_bottom_pane_component(mt: 0) do + render(Projects::ProjectsFiltersComponent.new(query: @query)) + end + end %> +<% end %> diff --git a/app/components/projects/index_sub_header_component.rb b/app/components/projects/index_sub_header_component.rb index cbd16be7fa47..1e756e2395d7 100644 --- a/app/components/projects/index_sub_header_component.rb +++ b/app/components/projects/index_sub_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -33,6 +33,7 @@ module Projects class IndexSubHeaderComponent < ApplicationComponent # rubocop:enable OpenProject/AddPreviewForViewComponent include ApplicationHelper + include OpTurbo::Streamable def initialize(query:, current_user:, disable_buttons: nil) super @@ -40,5 +41,9 @@ def initialize(query:, current_user:, disable_buttons: nil) @current_user = current_user @disable_buttons = disable_buttons end + + def self.wrapper_key + "projects-index-sub-header" + end end end diff --git a/app/components/projects/projects_filters_component.html.erb b/app/components/projects/projects_filters_component.html.erb new file mode 100644 index 000000000000..30288c0dedd8 --- /dev/null +++ b/app/components/projects/projects_filters_component.html.erb @@ -0,0 +1,119 @@ +<%= form_tag({}, + method: :get, + class: "op-filters-form op-filters-form_top-margin #{show_filters_section? ? "-expanded" : ""}", + data: { + 'filter--filters-form-target': 'filterForm', + action: 'submit->filter--filters-form#sendForm:prevent' + }) do %> + <% operators_without_values = %w[* !* t w] %> +
+ + <%= t(:label_filter_plural) %> + + <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list)%> + <%= + helpers.angular_component_tag 'op-enterprise-banner', + inputs: { + collapsible: true, + textMessage: t('ee.upsale.project_filters.description_html'), + moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href], + } + %> + <% end %> +
+<% end %> diff --git a/app/components/projects/projects_filters_component.rb b/app/components/projects/projects_filters_component.rb index 219ac8465c0c..0dbde255ca60 100644 --- a/app/components/projects/projects_filters_component.rb +++ b/app/components/projects/projects_filters_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -37,24 +37,28 @@ def allowed_filters .sort_by(&:human_name) end + def turbo_requests? + true + end + private def allowed_filter?(filter) allowlist = [ + Queries::Filters::Shared::CustomFields::Base, Queries::Projects::Filters::ActiveFilter, - Queries::Projects::Filters::TemplatedFilter, - Queries::Projects::Filters::PublicFilter, - Queries::Projects::Filters::ProjectStatusFilter, - Queries::Projects::Filters::MemberOfFilter, Queries::Projects::Filters::CreatedAtFilter, + Queries::Projects::Filters::FavoredFilter, + Queries::Projects::Filters::IdFilter, Queries::Projects::Filters::LatestActivityAtFilter, + Queries::Projects::Filters::MemberOfFilter, Queries::Projects::Filters::NameAndIdentifierFilter, - Queries::Projects::Filters::TypeFilter, - Queries::Projects::Filters::FavoredFilter, - Queries::Projects::Filters::IdFilter + Queries::Projects::Filters::ProjectStatusFilter, + Queries::Projects::Filters::PublicFilter, + Queries::Projects::Filters::TemplatedFilter, + Queries::Projects::Filters::TypeFilter ] - allowlist << Queries::Filters::Shared::CustomFields::Base if EnterpriseToken.allows_to?(:custom_fields_in_projects_list) - allowlist.detect { |clazz| filter.is_a? clazz } + allowlist.any? { |clazz| filter.is_a? clazz } end end diff --git a/app/components/projects/row_component.html.erb b/app/components/projects/row_component.html.erb index 8ed51f189240..20549168b159 100644 --- a/app/components/projects/row_component.html.erb +++ b/app/components/projects/row_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/row_component.rb b/app/components/projects/row_component.rb index 6299b38d674b..d7765f9d451a 100644 --- a/app/components/projects/row_component.rb +++ b/app/components/projects/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.rb b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.rb index 3cb77666b6db..0b4e677bd9a4 100644 --- a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.rb +++ b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/settings/project_custom_field_sections/index_component.rb b/app/components/projects/settings/project_custom_field_sections/index_component.rb index 73219fc542d0..25b8a86e8b71 100644 --- a/app/components/projects/settings/project_custom_field_sections/index_component.rb +++ b/app/components/projects/settings/project_custom_field_sections/index_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/settings/project_custom_field_sections/index_page_header_component.rb b/app/components/projects/settings/project_custom_field_sections/index_page_header_component.rb index 013625ee165b..13014aae6aab 100644 --- a/app/components/projects/settings/project_custom_field_sections/index_page_header_component.rb +++ b/app/components/projects/settings/project_custom_field_sections/index_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/settings/project_custom_field_sections/show_component.rb b/app/components/projects/settings/project_custom_field_sections/show_component.rb index df2b2c634ae7..f8f0ad9d5062 100644 --- a/app/components/projects/settings/project_custom_field_sections/show_component.rb +++ b/app/components/projects/settings/project_custom_field_sections/show_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/projects/table_component.html.erb b/app/components/projects/table_component.html.erb index ad70487606fb..1b16267dd13a 100644 --- a/app/components/projects/table_component.html.erb +++ b/app/components/projects/table_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -26,83 +26,83 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See COPYRIGHT and LICENSE files for more details. ++#%> - -
-
-
-
- > - - <% columns.each do |column| %> - > - <% end %> - - - - - <% columns.each do |column| %> - <% if column.attribute == :hierarchy %> - - <% elsif sortable_column?(column) %> - <%= build_sort_header column.attribute, - order_options(column) %> - <% elsif column.attribute == :favored %> - - <% else %> +<%= component_wrapper(tag: 'turbo-frame') do %> +
+
+
+
+
-
-
- <%= content_tag :a, - helpers.op_icon("icon-hierarchy"), - href: href_only_when_not_sort_lft, - class: "spot-link #{deactivate_class_on_lft_sort}", - title: t(:label_sort_by, value: %("#{t(:label_project_hierarchy)}")) %> -
-
-
-
-
- - <%= render(Primer::Beta::Octicon.new(icon: "star-fill", color: :subtle, "aria-label": I18n.t(:label_favorite))) %> - -
-
-
> + + <% columns.each do |column| %> + > + <% end %> + + + + + <% columns.each do |column| %> + <% if column.attribute == :hierarchy %> + + <% elsif sortable_column?(column) %> + <%= build_sort_header column.attribute, order_options(column, turbo: true) %> + <% elsif column.attribute == :favored %> + + <% else %> + + <% end %> + <% end %> + + + + <% if rows.empty? %> + + + <% end %> - <% end %> - - - - - <% if rows.empty? %> - - - + <%= render_collection rows %> + +
+
+
+ <%= content_tag :a, + helpers.op_icon("icon-hierarchy"), + href: href_only_when_not_sort_lft, + class: "spot-link #{deactivate_class_on_lft_sort}", + data: { "turbo-stream": true }, + title: t(:label_sort_by, value: %("#{t(:label_project_hierarchy)}")) %> +
+
+
+
+
+ + <%= render(Primer::Beta::Octicon.new(icon: "star-fill", color: :subtle, "aria-label": I18n.t(:label_favorite))) %> + +
+
+
+
+
+ + <%= column.caption %> + +
+
+
-
-
- - <%= column.caption %> - -
+
<%= empty_row_message %>
-
-
-
<%= empty_row_message %>
+ <% if inline_create_link && show_inline_create %> +
+ <%= inline_create_link %> +
<% end %> - <%= render_collection rows %> - - - <% if inline_create_link && show_inline_create %> -
- <%= inline_create_link %> -
- <% end %> +
- - -<% if paginated? %> - <%= helpers.pagination_links_full model, pagination_options %> + <% if paginated? %> + <%= helpers.pagination_links_full(model, pagination_options) %> + <% end %> <% end %> diff --git a/app/components/projects/table_component.rb b/app/components/projects/table_component.rb index e1244dd6003e..751645cd2fb9 100644 --- a/app/components/projects/table_component.rb +++ b/app/components/projects/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -30,6 +30,8 @@ module Projects class TableComponent < ::TableComponent + include OpTurbo::Streamable + options :params # We read collapsed state from params options :current_user # adds this option to those of the base class options :query @@ -47,6 +49,10 @@ def initial_sort %i[lft asc] end + def self.wrapper_key + "projects-table" + end + def table_id "project-table" end @@ -87,7 +93,10 @@ def pagination_options end def default_pagination_options - { allowed_params: %i[query_id filters columns sortBy] } + { + allowed_params: %i[query_id filters columns sortBy], + turbo: true + } end def optional_pagination_options @@ -109,10 +118,14 @@ def href_only_when_not_sort_lft end end - def order_options(select) - { - caption: select.caption - } + def order_options(select, turbo: false) + options = { caption: select.caption } + + if turbo + options[:data] = { "turbo-stream": true } + end + + options end def sortable_column?(select) diff --git a/app/components/queries/sort_by_component.rb b/app/components/queries/sort_by_component.rb index ec442d5d0eda..c5f2da7638b0 100644 --- a/app/components/queries/sort_by_component.rb +++ b/app/components/queries/sort_by_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/queries/sort_by_field_component.rb b/app/components/queries/sort_by_field_component.rb index a482d31078b7..b861d0669cbf 100644 --- a/app/components/queries/sort_by_field_component.rb +++ b/app/components/queries/sort_by_field_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/row_component.html.erb b/app/components/row_component.html.erb index 8ed51f189240..20549168b159 100644 --- a/app/components/row_component.html.erb +++ b/app/components/row_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/row_component.rb b/app/components/row_component.rb index 2a17c54a822d..092ac500996f 100644 --- a/app/components/row_component.rb +++ b/app/components/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/numeric_setting_component.html.erb b/app/components/settings/numeric_setting_component.html.erb index 77005c385c04..2ee975c5ff01 100644 --- a/app/components/settings/numeric_setting_component.html.erb +++ b/app/components/settings/numeric_setting_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/numeric_setting_component.rb b/app/components/settings/numeric_setting_component.rb index 0883cfbabbeb..d101d5476c2b 100644 --- a/app/components/settings/numeric_setting_component.rb +++ b/app/components/settings/numeric_setting_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_field_sections/custom_field_row_component.rb b/app/components/settings/project_custom_field_sections/custom_field_row_component.rb index 278207c506bc..74cade381877 100644 --- a/app/components/settings/project_custom_field_sections/custom_field_row_component.rb +++ b/app/components/settings/project_custom_field_sections/custom_field_row_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_field_sections/dialog_body_form_component.rb b/app/components/settings/project_custom_field_sections/dialog_body_form_component.rb index 1e4243574b46..99bfb123e194 100644 --- a/app/components/settings/project_custom_field_sections/dialog_body_form_component.rb +++ b/app/components/settings/project_custom_field_sections/dialog_body_form_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_field_sections/index_component.rb b/app/components/settings/project_custom_field_sections/index_component.rb index 8693b2a586bb..cb9c329a5741 100644 --- a/app/components/settings/project_custom_field_sections/index_component.rb +++ b/app/components/settings/project_custom_field_sections/index_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_field_sections/show_component.rb b/app/components/settings/project_custom_field_sections/show_component.rb index cc1af53fa9c5..d2e1ee86a50a 100644 --- a/app/components/settings/project_custom_field_sections/show_component.rb +++ b/app/components/settings/project_custom_field_sections/show_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb index d4802f1b25ff..808f78a52677 100644 --- a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb +++ b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2023 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.rb b/app/components/settings/project_custom_fields/edit_form_header_component.rb index 157bd85c452f..451b9f55e8c2 100644 --- a/app/components/settings/project_custom_fields/edit_form_header_component.rb +++ b/app/components/settings/project_custom_fields/edit_form_header_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/header_component.rb b/app/components/settings/project_custom_fields/header_component.rb index 7299ecc409a0..80ef7e28952b 100644 --- a/app/components/settings/project_custom_fields/header_component.rb +++ b/app/components/settings/project_custom_fields/header_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/new_form_header_component.html.erb b/app/components/settings/project_custom_fields/new_form_header_component.html.erb index ab077ccbee28..1b0bcb9ccb54 100644 --- a/app/components/settings/project_custom_fields/new_form_header_component.html.erb +++ b/app/components/settings/project_custom_fields/new_form_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2023 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/new_form_header_component.rb b/app/components/settings/project_custom_fields/new_form_header_component.rb index de78e91c9a94..4fe970088438 100644 --- a/app/components/settings/project_custom_fields/new_form_header_component.rb +++ b/app/components/settings/project_custom_fields/new_form_header_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb index 6d721c4f0b67..327b7a1a9363 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.sass b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.sass deleted file mode 100644 index 76511b9c5b3e..000000000000 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.sass +++ /dev/null @@ -1,8 +0,0 @@ -@import 'helpers' - -.op-new-project-mapping-form - .ng-placeholder - @extend .icon-search - &:before - @include icon-font-common - margin-right: 10px diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb index eaf048dfd0f1..9cfde7303893 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb index 7a9123f455cb..e024bc277138 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.html.erb b/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.html.erb index 097b38764a0a..cf694aa0c318 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.html.erb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb index 3fa86bf6f1e8..a02c28570b2e 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/row_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -29,7 +29,7 @@ module Settings module ProjectCustomFields module ProjectCustomFieldMapping - class RowComponent < Projects::RowComponent # rubocop:disable OpenProject/AddPreviewForViewComponent + class RowComponent < Projects::RowComponent include OpTurbo::Streamable def wrapper_uniq_by diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.html.erb b/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.html.erb index ec555bd1f898..3488dfd23538 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.html.erb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.rb b/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.rb index 1128a73f46f1..0d62babb1d3b 100644 --- a/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.rb +++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/table_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/text_setting_component.html.erb b/app/components/settings/text_setting_component.html.erb index 1fe3cf4789ec..b03e90698f39 100644 --- a/app/components/settings/text_setting_component.html.erb +++ b/app/components/settings/text_setting_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/text_setting_component.rb b/app/components/settings/text_setting_component.rb index e757d2af1ead..402e0407f802 100644 --- a/app/components/settings/text_setting_component.rb +++ b/app/components/settings/text_setting_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/time_zone_setting_component.html.erb b/app/components/settings/time_zone_setting_component.html.erb index 543cf7e480fa..b0b28be15761 100644 --- a/app/components/settings/time_zone_setting_component.html.erb +++ b/app/components/settings/time_zone_setting_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/settings/time_zone_setting_component.rb b/app/components/settings/time_zone_setting_component.rb index 7cb43e8120de..674ad6a53ce1 100644 --- a/app/components/settings/time_zone_setting_component.rb +++ b/app/components/settings/time_zone_setting_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/bulk_permission_button_component.rb b/app/components/shares/bulk_permission_button_component.rb index b42c5de1dad5..09674ac7a4f0 100644 --- a/app/components/shares/bulk_permission_button_component.rb +++ b/app/components/shares/bulk_permission_button_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/bulk_selection_counter_component.rb b/app/components/shares/bulk_selection_counter_component.rb index fc56f453cdeb..5547b060e1e3 100644 --- a/app/components/shares/bulk_selection_counter_component.rb +++ b/app/components/shares/bulk_selection_counter_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/counter_component.rb b/app/components/shares/counter_component.rb index c2581bfb5dba..e0ddbabc2e72 100644 --- a/app/components/shares/counter_component.rb +++ b/app/components/shares/counter_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/empty_state_component.rb b/app/components/shares/empty_state_component.rb index 1dda0facba91..1dc9e14d690b 100644 --- a/app/components/shares/empty_state_component.rb +++ b/app/components/shares/empty_state_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/invite_user_form_component.rb b/app/components/shares/invite_user_form_component.rb index 92cd7bf922bc..f8d40024bae9 100644 --- a/app/components/shares/invite_user_form_component.rb +++ b/app/components/shares/invite_user_form_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/manage_shares_component.rb b/app/components/shares/manage_shares_component.rb index ec76e35b49a2..fa61c6afdd57 100644 --- a/app/components/shares/manage_shares_component.rb +++ b/app/components/shares/manage_shares_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/modal_body_component.rb b/app/components/shares/modal_body_component.rb index 93500c696c02..d617510e58ae 100644 --- a/app/components/shares/modal_body_component.rb +++ b/app/components/shares/modal_body_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/permission_button_component.rb b/app/components/shares/permission_button_component.rb index 050d6094fe3a..186f4f461949 100644 --- a/app/components/shares/permission_button_component.rb +++ b/app/components/shares/permission_button_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/project_queries/empty_state_component.rb b/app/components/shares/project_queries/empty_state_component.rb index 89e3eda0e28b..b3941ca7a0d9 100644 --- a/app/components/shares/project_queries/empty_state_component.rb +++ b/app/components/shares/project_queries/empty_state_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/project_queries/public_flag_component.rb b/app/components/shares/project_queries/public_flag_component.rb index 91f926be4b28..cfbd02dcc79b 100644 --- a/app/components/shares/project_queries/public_flag_component.rb +++ b/app/components/shares/project_queries/public_flag_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/project_queries/upsale_component.rb b/app/components/shares/project_queries/upsale_component.rb index dfc4df1e2dd1..b3127b97e39e 100644 --- a/app/components/shares/project_queries/upsale_component.rb +++ b/app/components/shares/project_queries/upsale_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/share_counter_component.rb b/app/components/shares/share_counter_component.rb index 094b0c74dc12..55de336838c4 100644 --- a/app/components/shares/share_counter_component.rb +++ b/app/components/shares/share_counter_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/share_dialog_component.rb b/app/components/shares/share_dialog_component.rb index ea7a0444a20b..2959b244b97d 100644 --- a/app/components/shares/share_dialog_component.rb +++ b/app/components/shares/share_dialog_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/share_row_component.rb b/app/components/shares/share_row_component.rb index 69d44662d4b6..45df3ab20e0b 100644 --- a/app/components/shares/share_row_component.rb +++ b/app/components/shares/share_row_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/user_details_component.rb b/app/components/shares/user_details_component.rb index 8e809efe887f..8ed9924d4142 100644 --- a/app/components/shares/user_details_component.rb +++ b/app/components/shares/user_details_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/shares/work_packages/modal_upsale_component.rb b/app/components/shares/work_packages/modal_upsale_component.rb index 65ab5a94c600..617940ed23d5 100644 --- a/app/components/shares/work_packages/modal_upsale_component.rb +++ b/app/components/shares/work_packages/modal_upsale_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/statuses/row_component.rb b/app/components/statuses/row_component.rb index 0533192cbb81..dd49dd6124fc 100644 --- a/app/components/statuses/row_component.rb +++ b/app/components/statuses/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/statuses/table_component.rb b/app/components/statuses/table_component.rb index 240cf1490e55..61f3f49fd5e9 100644 --- a/app/components/statuses/table_component.rb +++ b/app/components/statuses/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/table_component.html.erb b/app/components/table_component.html.erb index e5b16b52ebe2..9449d5dc4894 100644 --- a/app/components/table_component.html.erb +++ b/app/components/table_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -29,12 +29,12 @@ See COPYRIGHT and LICENSE files for more details.
- +
<% headers.each do |_name, _options| %> - + <% end %> - + diff --git a/app/components/table_component.rb b/app/components/table_component.rb index e23acfa69057..5a3c186661ab 100644 --- a/app/components/table_component.rb +++ b/app/components/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/types/edit_page_header_component.html.erb b/app/components/types/edit_page_header_component.html.erb index c698b4a6f385..70c2494d3950 100644 --- a/app/components/types/edit_page_header_component.html.erb +++ b/app/components/types/edit_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/types/edit_page_header_component.rb b/app/components/types/edit_page_header_component.rb index ea1a72818f66..950c93203bfd 100644 --- a/app/components/types/edit_page_header_component.rb +++ b/app/components/types/edit_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/user_filter_component.rb b/app/components/user_filter_component.rb index 7c047d12d0c9..42c49f8d8cb6 100644 --- a/app/components/user_filter_component.rb +++ b/app/components/user_filter_component.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/components/users/auto_login_tokens/row_component.rb b/app/components/users/auto_login_tokens/row_component.rb index 640415c2af8f..95c8eeabf9d9 100644 --- a/app/components/users/auto_login_tokens/row_component.rb +++ b/app/components/users/auto_login_tokens/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/auto_login_tokens/table_component.rb b/app/components/users/auto_login_tokens/table_component.rb index eda17cd9ea12..11c2879d7ea0 100644 --- a/app/components/users/auto_login_tokens/table_component.rb +++ b/app/components/users/auto_login_tokens/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/avatar_component.rb b/app/components/users/avatar_component.rb index df53c25f2394..907f226ce736 100644 --- a/app/components/users/avatar_component.rb +++ b/app/components/users/avatar_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/modules/ldap_groups/LICENSE b/app/components/users/delete_page_header_component.html.erb similarity index 80% rename from modules/ldap_groups/LICENSE rename to app/components/users/delete_page_header_component.html.erb index 340baaee9671..c96a1e014b73 100644 --- a/modules/ldap_groups/LICENSE +++ b/app/components/users/delete_page_header_component.html.erb @@ -1,11 +1,12 @@ +<%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -Copyright (C) 2006-2017 Jean-Philippe Lang +Copyright (C) 2006-2013 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or @@ -23,3 +24,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See COPYRIGHT and LICENSE files for more details. + +++#%> +<%= + render(Primer::OpenProject::PageHeader.new) do |header| + header.with_title { t("account.delete") } + header.with_breadcrumbs(breadcrumb_items) + end +%> diff --git a/app/forms/queries/projects/form.rb b/app/components/users/delete_page_header_component.rb similarity index 61% rename from app/forms/queries/projects/form.rb rename to app/components/users/delete_page_header_component.rb index 7e2e2b954faf..e9ba1d5ff9bd 100644 --- a/app/forms/queries/projects/form.rb +++ b/app/components/users/delete_page_header_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # -- copyright # OpenProject is an open source project management software. # Copyright (C) 2010-2024 the OpenProject GmbH @@ -26,38 +28,25 @@ # See COPYRIGHT and LICENSE files for more details. # ++ -class Queries::Projects::Form < ApplicationForm - include OpenProject::StaticRouting::UrlHelpers - - form do |query_form| - query_form.group(layout: :horizontal) do |group| - group.text_field( - visually_hide_label: true, - required: true, - autofocus: true, - name: "name", - label: ProjectQuery.human_attribute_name(:name), - placeholder: I18n.t(:"projects.lists.new.placeholder") - ) - - group.submit( - name: :submit, - label: I18n.t(:button_save), - scheme: :primary - ) +class Users::DeletePageHeaderComponent < ApplicationComponent + include OpPrimer::ComponentHelpers + include ApplicationHelper - group.button( - name: :cancel, - scheme: :secondary, - label: I18n.t(:button_cancel), - tag: :a, - href: @cancel_url - ) - end + def initialize(user:, layout:) + super + @user = user + @layout = layout end - def initialize(cancel_url:) - super() - @cancel_url = cancel_url + def breadcrumb_items + if @layout == "my" + [{ href: my_account_path, text: t(:label_my_account) }, t("account.delete")] + else + [{ href: admin_index_path, text: t(:label_administration) }, + { href: admin_settings_users_path, text: t(:label_user_and_permission) }, + { href: users_path, text: t(:label_user_plural) }, + { href: edit_user_path(@user), text: @user.name }, + t("account.delete")] + end end end diff --git a/app/components/users/edit_page_header_component.html.erb b/app/components/users/edit_page_header_component.html.erb index 0a364fc2d945..13a172ea7e26 100644 --- a/app/components/users/edit_page_header_component.html.erb +++ b/app/components/users/edit_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -42,7 +42,7 @@ See COPYRIGHT and LICENSE files for more details. t(:label_profile) end - if @current_user.allowed_globally?(:create_user) + if @current_user.allowed_globally?(:create_user) && @current_user.id != @user.id header.with_action_button(tag: :a, mobile_icon: :mail, mobile_label: t(:label_send_invitation), diff --git a/app/components/users/edit_page_header_component.rb b/app/components/users/edit_page_header_component.rb index d8d219a6135c..5763f14db73e 100644 --- a/app/components/users/edit_page_header_component.rb +++ b/app/components/users/edit_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/index_page_header_component.rb b/app/components/users/index_page_header_component.rb index 0a9c7c0b8e7c..d3376e247846 100644 --- a/app/components/users/index_page_header_component.rb +++ b/app/components/users/index_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/index_sub_header_component.rb b/app/components/users/index_sub_header_component.rb index c43a86d26336..8f4ed16d22c8 100644 --- a/app/components/users/index_sub_header_component.rb +++ b/app/components/users/index_sub_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/profile/activities_component.rb b/app/components/users/profile/activities_component.rb index 3383f612fc1a..38fc948920f7 100644 --- a/app/components/users/profile/activities_component.rb +++ b/app/components/users/profile/activities_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/profile/attributes_component.rb b/app/components/users/profile/attributes_component.rb index cc065a81b3fd..5470dbc83d63 100644 --- a/app/components/users/profile/attributes_component.rb +++ b/app/components/users/profile/attributes_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/profile/groups_component.rb b/app/components/users/profile/groups_component.rb index e5795b620079..59725b66c42c 100644 --- a/app/components/users/profile/groups_component.rb +++ b/app/components/users/profile/groups_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/profile/projects_component.rb b/app/components/users/profile/projects_component.rb index 2669a8b653a1..a4b65121dcd7 100644 --- a/app/components/users/profile/projects_component.rb +++ b/app/components/users/profile/projects_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/profile/side_panel_component.rb b/app/components/users/profile/side_panel_component.rb index 53620023076f..e0ee7a616887 100644 --- a/app/components/users/profile/side_panel_component.rb +++ b/app/components/users/profile/side_panel_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/profile_component.rb b/app/components/users/profile_component.rb index 97912c98567b..c9cc33439ddc 100644 --- a/app/components/users/profile_component.rb +++ b/app/components/users/profile_component.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/row_component.rb b/app/components/users/row_component.rb index f0ce07fb7bef..5b88c1c61960 100644 --- a/app/components/users/row_component.rb +++ b/app/components/users/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/sessions/row_component.rb b/app/components/users/sessions/row_component.rb index 6888306c7a76..cabe1f0ce2dc 100644 --- a/app/components/users/sessions/row_component.rb +++ b/app/components/users/sessions/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/sessions/table_component.rb b/app/components/users/sessions/table_component.rb index 0abc12875df7..f0adacc435df 100644 --- a/app/components/users/sessions/table_component.rb +++ b/app/components/users/sessions/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/show_page_header_component.html.erb b/app/components/users/show_page_header_component.html.erb index fd70888b919f..9a8ac99ceed6 100644 --- a/app/components/users/show_page_header_component.html.erb +++ b/app/components/users/show_page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/show_page_header_component.rb b/app/components/users/show_page_header_component.rb index e2e732805d1a..343e2a0d23a4 100644 --- a/app/components/users/show_page_header_component.rb +++ b/app/components/users/show_page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/table_component.rb b/app/components/users/table_component.rb index cd159c89dd0d..06590dbd44f8 100644 --- a/app/components/users/table_component.rb +++ b/app/components/users/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/users/user_filter_component.rb b/app/components/users/user_filter_component.rb index b55cd0d1600a..ed4242adfa2e 100644 --- a/app/components/users/user_filter_component.rb +++ b/app/components/users/user_filter_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/versions/row_component.rb b/app/components/versions/row_component.rb index d1fb386ecca8..d5f249b5be1b 100644 --- a/app/components/versions/row_component.rb +++ b/app/components/versions/row_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/versions/table_component.rb b/app/components/versions/table_component.rb index bede23fbfdcc..dcd3d465fbdb 100644 --- a/app/components/versions/table_component.rb +++ b/app/components/versions/table_component.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/work_packages/details/tab_component.html.erb b/app/components/work_packages/details/tab_component.html.erb new file mode 100644 index 000000000000..1561aa56938e --- /dev/null +++ b/app/components/work_packages/details/tab_component.html.erb @@ -0,0 +1,39 @@ +<%= + flex_layout(classes: "op-work-package-details-tab-component") do |flex| + flex.with_column(flex: 1, classes: "op-work-package-details-tab-component--tabs", test_selector: "wp-details-tab-component--tabs") do + render(Primer::Alpha::UnderlineNav.new(align: :left, label: "Tabs", classes: "op-primer-adjustment--UnderlineNav_spaciousLeft")) do |component| + menu_items.each do |node| + component.with_tab(selected: @tab == node.name, + href: url_for(node.url), + test_selector: "wp-details-tab-component--tab-#{node.name}", + data: { turbo: true, turbo_stream: true, turbo_action: "replace" } + ) do |c| + c.with_text { t("js.work_packages.tabs.#{node.name}") } + count = node.badge(work_package:).to_i + c.with_counter(count:, hide_if_zero: true, id: "wp-details-tab-#{node.name}-counter", test_selector: "wp-details-tab-component--#{node.name}-counter") + end + end + end + end + + flex.with_column(classes: "op-work-package-details-tab-component--action") do + render(Primer::Beta::IconButton.new(icon: :"screen-full", + tag: :a, + href: work_package_path(work_package.id, full_screen_tab), + target: "_top", + scheme: :invisible, + test_selector: "wp-details-tab-component--full-screen", + aria: { label: I18n.t("js.button_show_fullscreen") })) + end + + flex.with_column(classes: "op-work-package-details-tab-component--action") do + render(Primer::Beta::IconButton.new(icon: :x, + tag: :a, + href: url_for(action: :close_split_view), + data: { turbo: true, 'turbo-stream': true }, + scheme: :invisible, + test_selector: "wp-details-tab-component--close", + aria: { label: I18n.t(:button_close) })) + end + end +%> diff --git a/app/components/work_packages/details/tab_component.rb b/app/components/work_packages/details/tab_component.rb new file mode 100644 index 000000000000..741792ef3968 --- /dev/null +++ b/app/components/work_packages/details/tab_component.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +class WorkPackages::Details::TabComponent < ApplicationComponent + include OpPrimer::ComponentHelpers + include OpTurbo::Streamable + include Redmine::MenuManager::MenuHelper + + attr_reader :tab, :work_package, :base_route + + def initialize(work_package:, base_route:, tab: :overview) + super + + @work_package = work_package + @tab = tab.to_sym + @base_route = base_route + end + + delegate :project, to: :work_package + + def menu = :work_package_split_view + + def menu_items + @menu_items ||= + Redmine::MenuManager + .items(menu, nil) + .root + .children + .select do |node| + allowed_node?(node, User.current, project) && visible_node?(menu, node) + end + end + + def full_screen_tab + if @tab.name == "overview" + return :activity + end + + @tab.name + end +end diff --git a/app/components/work_packages/details/tab_component.sass b/app/components/work_packages/details/tab_component.sass new file mode 100644 index 000000000000..23c2a467bf4c --- /dev/null +++ b/app/components/work_packages/details/tab_component.sass @@ -0,0 +1,16 @@ +.op-work-package-details-tab-component + align-items: flex-start + + &--tabs + flex-grow: 1 + overflow: auto + + &--action + padding-top: 8px + + // This is one of the ugliest hacks I ever had to write. Please remove that as soon as the actions are part of the Splitscreen header + padding-bottom: 7px + border-bottom: 1px solid var(--borderColor-muted) + + &:last-of-type + padding-right: 10px diff --git a/app/components/work_packages/details/update_counter_component.rb b/app/components/work_packages/details/update_counter_component.rb new file mode 100644 index 000000000000..48d0c64f4ce8 --- /dev/null +++ b/app/components/work_packages/details/update_counter_component.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +class WorkPackages::Details::UpdateCounterComponent < ApplicationComponent + include OpPrimer::ComponentHelpers + include OpTurbo::Streamable + + attr_reader :work_package, :menu_name + + def initialize(work_package:, menu_name:) + super + + @work_package = work_package + @menu = find_menu_item(menu_name) + end + + def call + render Primer::Beta::Counter + .new(count:, + hide_if_zero: true, + id: wrapper_key, + test_selector: "wp-details-tab-component--#{@menu.name}-counter") + end + + # We don't need a wrapper component, but wrap on the counter id + def wrapped? + true + end + + def wrapper_key + "wp-details-tab-#{@menu.name}-counter" + end + + def render? + @menu.present? + end + + def count + @menu + .badge(work_package:) + .to_i + end + + def find_menu_item(menu_name) + Redmine::MenuManager + .items(:work_package_split_view, nil) + .root + .children + .detect { |node| node.name.to_s == menu_name } + end +end diff --git a/app/components/work_packages/progress/base_modal_component.rb b/app/components/work_packages/progress/base_modal_component.rb index c80d6724f3c7..c5c957751e59 100644 --- a/app/components/work_packages/progress/base_modal_component.rb +++ b/app/components/work_packages/progress/base_modal_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/work_packages/progress/status_based/modal_body_component.html.erb b/app/components/work_packages/progress/status_based/modal_body_component.html.erb index 2a4ad71215c0..d1a61701022f 100644 --- a/app/components/work_packages/progress/status_based/modal_body_component.html.erb +++ b/app/components/work_packages/progress/status_based/modal_body_component.html.erb @@ -13,11 +13,20 @@ ) do |f| %> <%= flex_layout do |modal_body| %> <% modal_body.with_row(classes: "FormControl-horizontalGroup--sm-vertical") do |_fields| %> + <% if OpenProject::FeatureDecisions.percent_complete_edition_active? %> <%= render(WorkPackages::ProgressForm.new(f, work_package:, mode:, focused_field:, touched_field_map:)) %> + <% else %> + <%# This condition branch to be removed in 15.0 with :percent_complete_edition feature flag removal %> + <%= render(WorkPackages::Pre144ProgressForm.new(f, + work_package:, + mode:, + focused_field:, + touched_field_map:)) %> + <% end %> <% end %> <% modal_body.with_row(mt: 3) do |_tooltip| %> diff --git a/app/components/work_packages/progress/status_based/modal_body_component.rb b/app/components/work_packages/progress/status_based/modal_body_component.rb index 6052903365ce..83bba94fd046 100644 --- a/app/components/work_packages/progress/status_based/modal_body_component.rb +++ b/app/components/work_packages/progress/status_based/modal_body_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/work_packages/progress/work_based/modal_body_component.html.erb b/app/components/work_packages/progress/work_based/modal_body_component.html.erb index 93291f03f644..49e1a8bdb250 100644 --- a/app/components/work_packages/progress/work_based/modal_body_component.html.erb +++ b/app/components/work_packages/progress/work_based/modal_body_component.html.erb @@ -13,16 +13,28 @@ ) do |f| %> <%= flex_layout do |modal_body| %> <% modal_body.with_row(classes: "FormControl-horizontalGroup--sm-vertical") do |_fields| %> + <% if OpenProject::FeatureDecisions.percent_complete_edition_active? %> <%= render(WorkPackages::ProgressForm.new(f, work_package:, mode:, focused_field:, touched_field_map:)) %> + <% else %> + <%# This condition branch to be removed in 15.0 with :percent_complete_edition feature flag removal %> + <%= render(WorkPackages::Pre144ProgressForm.new(f, + work_package:, + mode:, + focused_field:, + touched_field_map:)) %> + <% end %> <% end %> - <% if should_display_migration_warning? %> - <% modal_body.with_row(mt: 3) do |_migration_warning| %> - <%= render(Primer::Alpha::Banner.new) { t("work_package.progress.modal.migration_warning_text") } %> + <% if !OpenProject::FeatureDecisions.percent_complete_edition_active? %> + <%# This condition branch to be removed in 15.0 with :percent_complete_edition feature flag removal %> + <% if should_display_migration_warning? %> + <% modal_body.with_row(mt: 3) do |_migration_warning| %> + <%= render(Primer::Alpha::Banner.new) { t("work_package.progress.modal.migration_warning_text") } %> + <% end %> <% end %> <% end %> diff --git a/app/components/work_packages/progress/work_based/modal_body_component.rb b/app/components/work_packages/progress/work_based/modal_body_component.rb index c6d6e9c6c55c..668b4613d77c 100644 --- a/app/components/work_packages/progress/work_based/modal_body_component.rb +++ b/app/components/work_packages/progress/work_based/modal_body_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -41,11 +41,15 @@ def initialize(work_package, @mode = :work_based end + # This method can be safely deleted once the feature flag + # :percent_complete_edition is removed, which should happen for + # OpenProject 15.0 release. def should_display_migration_warning? + return false if OpenProject::FeatureDecisions.percent_complete_edition_active? + work_package.done_ratio.present? && work_package.estimated_hours.nil? && work_package.remaining_hours.nil? end end - # rubocop:enable OpenProject/AddPreviewForViewComponent end end diff --git a/app/components/work_packages/split_view_component.html.erb b/app/components/work_packages/split_view_component.html.erb new file mode 100644 index 000000000000..acc03f9bbe2d --- /dev/null +++ b/app/components/work_packages/split_view_component.html.erb @@ -0,0 +1,29 @@ +<%= + component_wrapper(class: "op-work-package-split-view") do + flex_layout(h: :full) do |flex| + if @work_package.nil? + flex.with_row do + render(Primer::Beta::Blankslate.new(spacious: true)) do |component| + component.with_visual_icon(icon: :inbox) + component.with_heading(tag: :h2).with_content( + I18n.t(:error_work_package_id_not_found) + ) + end + end + else + flex.with_row do + render(WorkPackages::Details::TabComponent.new(work_package: @work_package, tab: @tab, base_route: @base_route)) + end + flex.with_row(flex: 1) do + helpers.angular_component_tag "opce-wp-split-view", + inputs: { + work_package_id: params[:work_package_id] || @work_package.id, + resizerClass: "op-work-package-split-view", + resizeStyle: "width", + activeTab: @tab + } + end + end + end + end +%> diff --git a/app/components/work_packages/split_view_component.rb b/app/components/work_packages/split_view_component.rb new file mode 100644 index 000000000000..26a84335524f --- /dev/null +++ b/app/components/work_packages/split_view_component.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class WorkPackages::SplitViewComponent < ApplicationComponent + include OpPrimer::ComponentHelpers + include OpTurbo::Streamable + + def self.wrapper_key = :"work-package-details" + + def initialize(id:, base_route:, tab: "overview") + super + + @id = id + @tab = tab + @work_package = WorkPackage.visible.find_by(id:) + @base_route = base_route + end + + def wrapper_uniq_by + @id + end +end diff --git a/app/components/work_packages/split_view_component.sass b/app/components/work_packages/split_view_component.sass new file mode 100644 index 000000000000..7aad3bdcbeb3 --- /dev/null +++ b/app/components/work_packages/split_view_component.sass @@ -0,0 +1,9 @@ +.op-work-package-split-view + height: 100% + width: 550px + justify-content: space-around + border-left: 1px solid var(--borderColor-muted) + + @media screen and (max-width: $breakpoint-lg) + // Unfortunately, we have to enforce this style via !important as the resizer writes the width directly on the element as inline style + width: unset !important diff --git a/app/components/workflows/page_header_component.html.erb b/app/components/workflows/page_header_component.html.erb index 14fa09c9355e..8ba1be2e573f 100644 --- a/app/components/workflows/page_header_component.html.erb +++ b/app/components/workflows/page_header_component.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/components/workflows/page_header_component.rb b/app/components/workflows/page_header_component.rb index 18c8e926cd75..7d93e1d92c3c 100644 --- a/app/components/workflows/page_header_component.rb +++ b/app/components/workflows/page_header_component.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/admin_only_contract.rb b/app/contracts/admin_only_contract.rb index 5d7ae4e65961..31d2c8ada503 100644 --- a/app/contracts/admin_only_contract.rb +++ b/app/contracts/admin_only_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/api_tokens/create_contract.rb b/app/contracts/api_tokens/create_contract.rb index e95a33640dfc..f9c3d93484f4 100644 --- a/app/contracts/api_tokens/create_contract.rb +++ b/app/contracts/api_tokens/create_contract.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attachments/create_contract.rb b/app/contracts/attachments/create_contract.rb index d4f8b48acc4e..2ec0d41d3fe8 100644 --- a/app/contracts/attachments/create_contract.rb +++ b/app/contracts/attachments/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attachments/delete_contract.rb b/app/contracts/attachments/delete_contract.rb index 63f4a375a190..f2b44344f866 100644 --- a/app/contracts/attachments/delete_contract.rb +++ b/app/contracts/attachments/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attachments/prepare_upload_contract.rb b/app/contracts/attachments/prepare_upload_contract.rb index 5a54cfac1942..82233d7ed308 100644 --- a/app/contracts/attachments/prepare_upload_contract.rb +++ b/app/contracts/attachments/prepare_upload_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attachments/validate_replacements.rb b/app/contracts/attachments/validate_replacements.rb index 7bbc91d763bf..c337f9b6310c 100644 --- a/app/contracts/attachments/validate_replacements.rb +++ b/app/contracts/attachments/validate_replacements.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attribute_help_texts/base_contract.rb b/app/contracts/attribute_help_texts/base_contract.rb index 6e6bbaafd60a..8ca51da254b5 100644 --- a/app/contracts/attribute_help_texts/base_contract.rb +++ b/app/contracts/attribute_help_texts/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attribute_help_texts/create_contract.rb b/app/contracts/attribute_help_texts/create_contract.rb index 286bbe0b1893..4d0280934efe 100644 --- a/app/contracts/attribute_help_texts/create_contract.rb +++ b/app/contracts/attribute_help_texts/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/attribute_help_texts/update_contract.rb b/app/contracts/attribute_help_texts/update_contract.rb index eb259eb02f44..7420a63aa9ee 100644 --- a/app/contracts/attribute_help_texts/update_contract.rb +++ b/app/contracts/attribute_help_texts/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/authentication/omniauth_auth_hash_contract.rb b/app/contracts/authentication/omniauth_auth_hash_contract.rb index ba0b257f1761..120c78c8fb10 100644 --- a/app/contracts/authentication/omniauth_auth_hash_contract.rb +++ b/app/contracts/authentication/omniauth_auth_hash_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/backups/create_contract.rb b/app/contracts/backups/create_contract.rb index 17bc328d8a46..3cd6ec347eb7 100644 --- a/app/contracts/backups/create_contract.rb +++ b/app/contracts/backups/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/base_contract.rb b/app/contracts/base_contract.rb index c420b75f00eb..6e91a78285c7 100644 --- a/app/contracts/base_contract.rb +++ b/app/contracts/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/concerns/admin_writable_timestamps.rb b/app/contracts/concerns/admin_writable_timestamps.rb index 8a83ee22eb85..96e5a5fe049b 100644 --- a/app/contracts/concerns/admin_writable_timestamps.rb +++ b/app/contracts/concerns/admin_writable_timestamps.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/concerns/assignable_custom_field_values.rb b/app/contracts/concerns/assignable_custom_field_values.rb index 133f1ecbf6f2..efd0be250c4c 100644 --- a/app/contracts/concerns/assignable_custom_field_values.rb +++ b/app/contracts/concerns/assignable_custom_field_values.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/concerns/requires_admin_guard.rb b/app/contracts/concerns/requires_admin_guard.rb index b01feb96064b..133ac24d0bb7 100644 --- a/app/contracts/concerns/requires_admin_guard.rb +++ b/app/contracts/concerns/requires_admin_guard.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/concerns/requires_enterprise_guard.rb b/app/contracts/concerns/requires_enterprise_guard.rb index 06e13acdb567..72f7f90196d6 100644 --- a/app/contracts/concerns/requires_enterprise_guard.rb +++ b/app/contracts/concerns/requires_enterprise_guard.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/concerns/single_table_inheritance_model_contract.rb b/app/contracts/concerns/single_table_inheritance_model_contract.rb index dcc270996947..e98417de527a 100644 --- a/app/contracts/concerns/single_table_inheritance_model_contract.rb +++ b/app/contracts/concerns/single_table_inheritance_model_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/concerns/unchanged_project.rb b/app/contracts/concerns/unchanged_project.rb index 6ec6e48fba65..c47cb3930d81 100644 --- a/app/contracts/concerns/unchanged_project.rb +++ b/app/contracts/concerns/unchanged_project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/custom_actions/cu_contract.rb b/app/contracts/custom_actions/cu_contract.rb index 3fac14a86184..0f789b0043c6 100644 --- a/app/contracts/custom_actions/cu_contract.rb +++ b/app/contracts/custom_actions/cu_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/custom_actions/execute_contract.rb b/app/contracts/custom_actions/execute_contract.rb index 08c29a66a594..e1857c2facb9 100644 --- a/app/contracts/custom_actions/execute_contract.rb +++ b/app/contracts/custom_actions/execute_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/custom_fields/base_contract.rb b/app/contracts/custom_fields/base_contract.rb index 9cb68cc1bcb1..6648bfc213b5 100644 --- a/app/contracts/custom_fields/base_contract.rb +++ b/app/contracts/custom_fields/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -42,7 +42,7 @@ class BaseContract < ::ModelContract attribute :possible_values attribute :regexp attribute :searchable - attribute :visible + attribute :admin_only attribute :default_value attribute :possible_values attribute :multi_value diff --git a/app/contracts/custom_fields/create_contract.rb b/app/contracts/custom_fields/create_contract.rb index e12a3014174f..bff22d66aaa9 100644 --- a/app/contracts/custom_fields/create_contract.rb +++ b/app/contracts/custom_fields/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/custom_fields/update_contract.rb b/app/contracts/custom_fields/update_contract.rb index 6e7df4fd813a..2355526cb926 100644 --- a/app/contracts/custom_fields/update_contract.rb +++ b/app/contracts/custom_fields/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/delete_contract.rb b/app/contracts/delete_contract.rb index 3218035e82b1..d8f06edc14e9 100644 --- a/app/contracts/delete_contract.rb +++ b/app/contracts/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/empty_contract.rb b/app/contracts/empty_contract.rb index f9790809b260..e30af014c52e 100644 --- a/app/contracts/empty_contract.rb +++ b/app/contracts/empty_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/groups/base_contract.rb b/app/contracts/groups/base_contract.rb index ee0309e789d3..4c13c77b7d6f 100644 --- a/app/contracts/groups/base_contract.rb +++ b/app/contracts/groups/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/groups/create_contract.rb b/app/contracts/groups/create_contract.rb index af3eb12b13ad..4c87f23a296f 100644 --- a/app/contracts/groups/create_contract.rb +++ b/app/contracts/groups/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/groups/delete_contract.rb b/app/contracts/groups/delete_contract.rb index 628f9f90f20b..8e89d0ae7a51 100644 --- a/app/contracts/groups/delete_contract.rb +++ b/app/contracts/groups/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/groups/update_contract.rb b/app/contracts/groups/update_contract.rb index e724972b80aa..422812527d3e 100644 --- a/app/contracts/groups/update_contract.rb +++ b/app/contracts/groups/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/journals/update_contract.rb b/app/contracts/journals/update_contract.rb index 85fba341370a..8847cfc8dcc7 100644 --- a/app/contracts/journals/update_contract.rb +++ b/app/contracts/journals/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/members/base_contract.rb b/app/contracts/members/base_contract.rb index 040a3bd5becc..5c83da040795 100644 --- a/app/contracts/members/base_contract.rb +++ b/app/contracts/members/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/members/create_contract.rb b/app/contracts/members/create_contract.rb index 27f616eb10d3..96c3e90ad370 100644 --- a/app/contracts/members/create_contract.rb +++ b/app/contracts/members/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/members/delete_contract.rb b/app/contracts/members/delete_contract.rb index 4d71ee1fe302..f876029feaa0 100644 --- a/app/contracts/members/delete_contract.rb +++ b/app/contracts/members/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/members/update_contract.rb b/app/contracts/members/update_contract.rb index f3b966cb1e54..2d510e59c605 100644 --- a/app/contracts/members/update_contract.rb +++ b/app/contracts/members/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/messages/base_contract.rb b/app/contracts/messages/base_contract.rb index fe89acf761b7..bad7a1c6b733 100644 --- a/app/contracts/messages/base_contract.rb +++ b/app/contracts/messages/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/messages/create_contract.rb b/app/contracts/messages/create_contract.rb index 6d70d0de5262..14728f35ab8d 100644 --- a/app/contracts/messages/create_contract.rb +++ b/app/contracts/messages/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/messages/update_contract.rb b/app/contracts/messages/update_contract.rb index db2a8508b75e..0c8f17dd0822 100644 --- a/app/contracts/messages/update_contract.rb +++ b/app/contracts/messages/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/model_contract.rb b/app/contracts/model_contract.rb index 07ba44ffd920..efa06281f331 100644 --- a/app/contracts/model_contract.rb +++ b/app/contracts/model_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/news/base_contract.rb b/app/contracts/news/base_contract.rb index 7d6325f0e9eb..91bc9925bb04 100644 --- a/app/contracts/news/base_contract.rb +++ b/app/contracts/news/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/news/create_contract.rb b/app/contracts/news/create_contract.rb index 9a0274c59548..31ed015811ac 100644 --- a/app/contracts/news/create_contract.rb +++ b/app/contracts/news/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/news/delete_contract.rb b/app/contracts/news/delete_contract.rb index 42648cce9abc..808f2ed73d6a 100644 --- a/app/contracts/news/delete_contract.rb +++ b/app/contracts/news/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/news/update_contract.rb b/app/contracts/news/update_contract.rb index 04bb5fef4bf0..3967f463f2e8 100644 --- a/app/contracts/news/update_contract.rb +++ b/app/contracts/news/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/notifications/create_contract.rb b/app/contracts/notifications/create_contract.rb index f58c2b0be100..0e448aa17354 100644 --- a/app/contracts/notifications/create_contract.rb +++ b/app/contracts/notifications/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/oauth/application_contract.rb b/app/contracts/oauth/application_contract.rb index 8560edfabc89..46caf0890f8c 100644 --- a/app/contracts/oauth/application_contract.rb +++ b/app/contracts/oauth/application_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/oauth_clients/create_contract.rb b/app/contracts/oauth_clients/create_contract.rb index ddfcc19866fb..404436c4a1a9 100644 --- a/app/contracts/oauth_clients/create_contract.rb +++ b/app/contracts/oauth_clients/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/oauth_clients/delete_contract.rb b/app/contracts/oauth_clients/delete_contract.rb index 4fbdc22fea50..5465d115716e 100644 --- a/app/contracts/oauth_clients/delete_contract.rb +++ b/app/contracts/oauth_clients/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/params_contract.rb b/app/contracts/params_contract.rb index 575f302d9222..bf6cd7b98a64 100644 --- a/app/contracts/params_contract.rb +++ b/app/contracts/params_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/placeholder_users/base_contract.rb b/app/contracts/placeholder_users/base_contract.rb index cff24d7d52f8..ce6895ed87f9 100644 --- a/app/contracts/placeholder_users/base_contract.rb +++ b/app/contracts/placeholder_users/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/placeholder_users/create_contract.rb b/app/contracts/placeholder_users/create_contract.rb index 308b7750fd99..5e8d35078cc5 100644 --- a/app/contracts/placeholder_users/create_contract.rb +++ b/app/contracts/placeholder_users/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/placeholder_users/delete_contract.rb b/app/contracts/placeholder_users/delete_contract.rb index 1767521a6786..a0c8d3f86029 100644 --- a/app/contracts/placeholder_users/delete_contract.rb +++ b/app/contracts/placeholder_users/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/placeholder_users/update_contract.rb b/app/contracts/placeholder_users/update_contract.rb index 83d4bb615804..053e7ba62b47 100644 --- a/app/contracts/placeholder_users/update_contract.rb +++ b/app/contracts/placeholder_users/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/project_custom_field_project_mappings/base_contract.rb b/app/contracts/project_custom_field_project_mappings/base_contract.rb index 6032e72e7230..5c03a5053dfd 100644 --- a/app/contracts/project_custom_field_project_mappings/base_contract.rb +++ b/app/contracts/project_custom_field_project_mappings/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/project_custom_field_project_mappings/update_contract.rb b/app/contracts/project_custom_field_project_mappings/update_contract.rb index 66140ecdf988..c44b887e72de 100644 --- a/app/contracts/project_custom_field_project_mappings/update_contract.rb +++ b/app/contracts/project_custom_field_project_mappings/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/project_custom_field_sections/base_contract.rb b/app/contracts/project_custom_field_sections/base_contract.rb index 951c64d1e39e..0ab59477de4f 100644 --- a/app/contracts/project_custom_field_sections/base_contract.rb +++ b/app/contracts/project_custom_field_sections/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/project_custom_field_sections/create_contract.rb b/app/contracts/project_custom_field_sections/create_contract.rb index 91e44c3aaec1..94041c62496f 100644 --- a/app/contracts/project_custom_field_sections/create_contract.rb +++ b/app/contracts/project_custom_field_sections/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/project_custom_field_sections/delete_contract.rb b/app/contracts/project_custom_field_sections/delete_contract.rb index 3b5e38d49308..e1a639e59407 100644 --- a/app/contracts/project_custom_field_sections/delete_contract.rb +++ b/app/contracts/project_custom_field_sections/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/project_custom_field_sections/update_contract.rb b/app/contracts/project_custom_field_sections/update_contract.rb index 85960355c764..e77e9080cfe4 100644 --- a/app/contracts/project_custom_field_sections/update_contract.rb +++ b/app/contracts/project_custom_field_sections/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/archive_contract.rb b/app/contracts/projects/archive_contract.rb index 7c719d255a25..d315f3257b1b 100644 --- a/app/contracts/projects/archive_contract.rb +++ b/app/contracts/projects/archive_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/base_contract.rb b/app/contracts/projects/base_contract.rb index 3c9584e3eb55..8b8fa1911614 100644 --- a/app/contracts/projects/base_contract.rb +++ b/app/contracts/projects/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -67,7 +67,7 @@ def available_custom_fields if user.admin? model.available_custom_fields else - model.available_custom_fields.select(&:visible?) + model.available_custom_fields.reject(&:admin_only?) end end diff --git a/app/contracts/projects/copy_contract.rb b/app/contracts/projects/copy_contract.rb index 205789fac648..a6bd24c17907 100644 --- a/app/contracts/projects/copy_contract.rb +++ b/app/contracts/projects/copy_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/create_contract.rb b/app/contracts/projects/create_contract.rb index abed5b72947f..0898ebe2a19d 100644 --- a/app/contracts/projects/create_contract.rb +++ b/app/contracts/projects/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/delete_contract.rb b/app/contracts/projects/delete_contract.rb index 1f80d3ee0fd9..9ad4965e6501 100644 --- a/app/contracts/projects/delete_contract.rb +++ b/app/contracts/projects/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/enabled_modules_contract.rb b/app/contracts/projects/enabled_modules_contract.rb index 864caf4f007f..2c54e33d9481 100644 --- a/app/contracts/projects/enabled_modules_contract.rb +++ b/app/contracts/projects/enabled_modules_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/settings_contract.rb b/app/contracts/projects/settings_contract.rb index 940f4d955214..dfce7ff07aa8 100644 --- a/app/contracts/projects/settings_contract.rb +++ b/app/contracts/projects/settings_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/unarchive_contract.rb b/app/contracts/projects/unarchive_contract.rb index 53ec5e9b9182..1f87505a0762 100644 --- a/app/contracts/projects/unarchive_contract.rb +++ b/app/contracts/projects/unarchive_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/projects/update_contract.rb b/app/contracts/projects/update_contract.rb index 7a95732cf7a4..7fafe5277d83 100644 --- a/app/contracts/projects/update_contract.rb +++ b/app/contracts/projects/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/base_contract.rb b/app/contracts/queries/base_contract.rb index 49418dd31879..f1b79d81909b 100644 --- a/app/contracts/queries/base_contract.rb +++ b/app/contracts/queries/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/copy_contract.rb b/app/contracts/queries/copy_contract.rb index c184b13b43f2..84d99d743358 100644 --- a/app/contracts/queries/copy_contract.rb +++ b/app/contracts/queries/copy_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/create_contract.rb b/app/contracts/queries/create_contract.rb index 32218baf5c7d..560681b18565 100644 --- a/app/contracts/queries/create_contract.rb +++ b/app/contracts/queries/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/ical_sharing_contract.rb b/app/contracts/queries/ical_sharing_contract.rb index 58390a9d0c06..c2085b28f27e 100644 --- a/app/contracts/queries/ical_sharing_contract.rb +++ b/app/contracts/queries/ical_sharing_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/projects/project_queries/base_contract.rb b/app/contracts/queries/projects/project_queries/base_contract.rb index 28a4261661f5..e4f0edd6f268 100644 --- a/app/contracts/queries/projects/project_queries/base_contract.rb +++ b/app/contracts/queries/projects/project_queries/base_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/projects/project_queries/create_contract.rb b/app/contracts/queries/projects/project_queries/create_contract.rb index f4b66999b436..be862966c712 100644 --- a/app/contracts/queries/projects/project_queries/create_contract.rb +++ b/app/contracts/queries/projects/project_queries/create_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/projects/project_queries/delete_contract.rb b/app/contracts/queries/projects/project_queries/delete_contract.rb index 30deba66b351..2b149f6dce8d 100644 --- a/app/contracts/queries/projects/project_queries/delete_contract.rb +++ b/app/contracts/queries/projects/project_queries/delete_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/projects/project_queries/loading_contract.rb b/app/contracts/queries/projects/project_queries/loading_contract.rb index 5c4eff0aa068..5a46646e6844 100644 --- a/app/contracts/queries/projects/project_queries/loading_contract.rb +++ b/app/contracts/queries/projects/project_queries/loading_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/projects/project_queries/publish_contract.rb b/app/contracts/queries/projects/project_queries/publish_contract.rb index 98a9fe2844c9..470b59089a84 100644 --- a/app/contracts/queries/projects/project_queries/publish_contract.rb +++ b/app/contracts/queries/projects/project_queries/publish_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/projects/project_queries/update_contract.rb b/app/contracts/queries/projects/project_queries/update_contract.rb index 82e6479a9475..ca0985f819bd 100644 --- a/app/contracts/queries/projects/project_queries/update_contract.rb +++ b/app/contracts/queries/projects/project_queries/update_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/update_contract.rb b/app/contracts/queries/update_contract.rb index c098a53d1ce6..3b5694d4e7c0 100644 --- a/app/contracts/queries/update_contract.rb +++ b/app/contracts/queries/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/queries/update_form_contract.rb b/app/contracts/queries/update_form_contract.rb index 8f2805706d78..fea2e00c6c3d 100644 --- a/app/contracts/queries/update_form_contract.rb +++ b/app/contracts/queries/update_form_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/relations/base_contract.rb b/app/contracts/relations/base_contract.rb index 24b9b23e0ce5..82c4d5edc2ed 100644 --- a/app/contracts/relations/base_contract.rb +++ b/app/contracts/relations/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/relations/create_contract.rb b/app/contracts/relations/create_contract.rb index fe139dfa70bb..b65e7b50c8fd 100644 --- a/app/contracts/relations/create_contract.rb +++ b/app/contracts/relations/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/relations/delete_contract.rb b/app/contracts/relations/delete_contract.rb index 9a266dabc669..e018c567196c 100644 --- a/app/contracts/relations/delete_contract.rb +++ b/app/contracts/relations/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/relations/update_contract.rb b/app/contracts/relations/update_contract.rb index 4551c9bed4f0..78be6df8ff63 100644 --- a/app/contracts/relations/update_contract.rb +++ b/app/contracts/relations/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/roles/base_contract.rb b/app/contracts/roles/base_contract.rb index 7f207b69f0e8..854f0fe70047 100644 --- a/app/contracts/roles/base_contract.rb +++ b/app/contracts/roles/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/roles/create_contract.rb b/app/contracts/roles/create_contract.rb index 076d7774501c..f09d2fb6fce7 100644 --- a/app/contracts/roles/create_contract.rb +++ b/app/contracts/roles/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/roles/delete_contract.rb b/app/contracts/roles/delete_contract.rb index 3bd499fad3f0..e80919fca5dc 100644 --- a/app/contracts/roles/delete_contract.rb +++ b/app/contracts/roles/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/roles/update_contract.rb b/app/contracts/roles/update_contract.rb index d0fdbc44a15e..49d6c19c3944 100644 --- a/app/contracts/roles/update_contract.rb +++ b/app/contracts/roles/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/settings/update_contract.rb b/app/contracts/settings/update_contract.rb index a78c3dbe0010..69833d75ec9f 100644 --- a/app/contracts/settings/update_contract.rb +++ b/app/contracts/settings/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/settings/working_days_and_hours_params_contract.rb b/app/contracts/settings/working_days_and_hours_params_contract.rb index 81cb129fe60f..e2abe7060950 100644 --- a/app/contracts/settings/working_days_and_hours_params_contract.rb +++ b/app/contracts/settings/working_days_and_hours_params_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/base_contract.rb b/app/contracts/shares/base_contract.rb index 856094e1f044..5bd00481f506 100644 --- a/app/contracts/shares/base_contract.rb +++ b/app/contracts/shares/base_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/create_contract.rb b/app/contracts/shares/create_contract.rb index 9d8941d17628..f9917e6d011d 100644 --- a/app/contracts/shares/create_contract.rb +++ b/app/contracts/shares/create_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/delete_contract.rb b/app/contracts/shares/delete_contract.rb index 69cdc52d8b1d..db133bcb3e91 100644 --- a/app/contracts/shares/delete_contract.rb +++ b/app/contracts/shares/delete_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/project_queries/base_extension.rb b/app/contracts/shares/project_queries/base_extension.rb index 7392139fe6f3..95500d8996eb 100644 --- a/app/contracts/shares/project_queries/base_extension.rb +++ b/app/contracts/shares/project_queries/base_extension.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/project_queries/create_contract.rb b/app/contracts/shares/project_queries/create_contract.rb index d9ce1351d68d..7a7d97b5aa6f 100644 --- a/app/contracts/shares/project_queries/create_contract.rb +++ b/app/contracts/shares/project_queries/create_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/project_queries/delete_contract.rb b/app/contracts/shares/project_queries/delete_contract.rb index 925dc2d18e76..5d789156d4e5 100644 --- a/app/contracts/shares/project_queries/delete_contract.rb +++ b/app/contracts/shares/project_queries/delete_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/project_queries/update_contract.rb b/app/contracts/shares/project_queries/update_contract.rb index eac81bc4e190..541c7398e2a9 100644 --- a/app/contracts/shares/project_queries/update_contract.rb +++ b/app/contracts/shares/project_queries/update_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/update_contract.rb b/app/contracts/shares/update_contract.rb index 565c519bcb8e..9208d92004b2 100644 --- a/app/contracts/shares/update_contract.rb +++ b/app/contracts/shares/update_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/work_packages/base_extension.rb b/app/contracts/shares/work_packages/base_extension.rb index 7f7fb016b4fc..bcf598b4edea 100644 --- a/app/contracts/shares/work_packages/base_extension.rb +++ b/app/contracts/shares/work_packages/base_extension.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/work_packages/create_contract.rb b/app/contracts/shares/work_packages/create_contract.rb index d0cc27f013d5..19e2822dc072 100644 --- a/app/contracts/shares/work_packages/create_contract.rb +++ b/app/contracts/shares/work_packages/create_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/work_packages/delete_contract.rb b/app/contracts/shares/work_packages/delete_contract.rb index 01bd4ebd1520..0a2f7923f1fc 100644 --- a/app/contracts/shares/work_packages/delete_contract.rb +++ b/app/contracts/shares/work_packages/delete_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/shares/work_packages/update_contract.rb b/app/contracts/shares/work_packages/update_contract.rb index 7b2dc5d9e907..f54e71eacbd4 100644 --- a/app/contracts/shares/work_packages/update_contract.rb +++ b/app/contracts/shares/work_packages/update_contract.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/types/base_contract.rb b/app/contracts/types/base_contract.rb index 59d349d82afa..5f8c5b02db95 100644 --- a/app/contracts/types/base_contract.rb +++ b/app/contracts/types/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/user_preferences/base_contract.rb b/app/contracts/user_preferences/base_contract.rb index 4aa2a4be0757..35416652b70e 100644 --- a/app/contracts/user_preferences/base_contract.rb +++ b/app/contracts/user_preferences/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/user_preferences/params_contract.rb b/app/contracts/user_preferences/params_contract.rb index 0450f0c0144d..ec5fc093d80d 100644 --- a/app/contracts/user_preferences/params_contract.rb +++ b/app/contracts/user_preferences/params_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/user_preferences/update_contract.rb b/app/contracts/user_preferences/update_contract.rb index 37463a2ecd47..020e00eedd61 100644 --- a/app/contracts/user_preferences/update_contract.rb +++ b/app/contracts/user_preferences/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/users/base_contract.rb b/app/contracts/users/base_contract.rb index 2dfb83fd0c6f..f699978b022c 100644 --- a/app/contracts/users/base_contract.rb +++ b/app/contracts/users/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/users/create_contract.rb b/app/contracts/users/create_contract.rb index 2ef001e6446b..80c4f7a0fb3e 100644 --- a/app/contracts/users/create_contract.rb +++ b/app/contracts/users/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/users/delete_contract.rb b/app/contracts/users/delete_contract.rb index 994dac0be868..a65fb3c57fbf 100644 --- a/app/contracts/users/delete_contract.rb +++ b/app/contracts/users/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/users/update_contract.rb b/app/contracts/users/update_contract.rb index f794a575a7d6..6f5db3780682 100644 --- a/app/contracts/users/update_contract.rb +++ b/app/contracts/users/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/versions/base_contract.rb b/app/contracts/versions/base_contract.rb index 96178fb42ba7..8abc35ce61a2 100644 --- a/app/contracts/versions/base_contract.rb +++ b/app/contracts/versions/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/versions/create_contract.rb b/app/contracts/versions/create_contract.rb index 76399e0d1f8e..184f34fc5526 100644 --- a/app/contracts/versions/create_contract.rb +++ b/app/contracts/versions/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/versions/delete_contract.rb b/app/contracts/versions/delete_contract.rb index 744fec993d40..afb597fa7800 100644 --- a/app/contracts/versions/delete_contract.rb +++ b/app/contracts/versions/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/versions/update_contract.rb b/app/contracts/versions/update_contract.rb index 614499eb0f0c..982fff57c77b 100644 --- a/app/contracts/versions/update_contract.rb +++ b/app/contracts/versions/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/views/base_contract.rb b/app/contracts/views/base_contract.rb index 2be1e778027a..008a53b1ff6f 100644 --- a/app/contracts/views/base_contract.rb +++ b/app/contracts/views/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/views/create_contract.rb b/app/contracts/views/create_contract.rb index 0f326a0d849f..bbeaeaa7e40e 100644 --- a/app/contracts/views/create_contract.rb +++ b/app/contracts/views/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/views/update_contract.rb b/app/contracts/views/update_contract.rb index 474a5d012e85..762240972f26 100644 --- a/app/contracts/views/update_contract.rb +++ b/app/contracts/views/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/wiki_pages/base_contract.rb b/app/contracts/wiki_pages/base_contract.rb index 11f254ef15ab..4b1dca1f5d42 100644 --- a/app/contracts/wiki_pages/base_contract.rb +++ b/app/contracts/wiki_pages/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/wiki_pages/copy_contract.rb b/app/contracts/wiki_pages/copy_contract.rb index d7cf16e9e624..740acd88d533 100644 --- a/app/contracts/wiki_pages/copy_contract.rb +++ b/app/contracts/wiki_pages/copy_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/wiki_pages/create_contract.rb b/app/contracts/wiki_pages/create_contract.rb index 5074f964300d..30fcccdaa2cc 100644 --- a/app/contracts/wiki_pages/create_contract.rb +++ b/app/contracts/wiki_pages/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/wiki_pages/update_contract.rb b/app/contracts/wiki_pages/update_contract.rb index e32643172f02..8707c3b14fcc 100644 --- a/app/contracts/wiki_pages/update_contract.rb +++ b/app/contracts/wiki_pages/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/base_contract.rb b/app/contracts/work_packages/base_contract.rb index a43c9ef95279..2ffdc13dd8b0 100644 --- a/app/contracts/work_packages/base_contract.rb +++ b/app/contracts/work_packages/base_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -53,19 +53,38 @@ class BaseContract < ::ModelContract attribute :project_id attribute :done_ratio, - writable: false + writable: ->(*) { + OpenProject::FeatureDecisions.percent_complete_edition_active? \ + && WorkPackage.work_based_mode? + } do + if OpenProject::FeatureDecisions.percent_complete_edition_active? + validate_percent_complete_matches_work_and_remaining_work + validate_percent_complete_is_unset_when_work_is_zero + validate_percent_complete_is_set_when_work_and_remaining_work_are_set + end + end attribute :derived_done_ratio, writable: false attribute :estimated_hours do - validate_work_is_set_when_remaining_work_is_set + if OpenProject::FeatureDecisions.percent_complete_edition_active? + validate_work_is_set_when_remaining_work_and_percent_complete_are_set + else + # to be removed in 15.0 with :percent_complete_edition feature flag removal + validate_work_is_set_when_remaining_work_is_set + end end attribute :derived_estimated_hours, writable: false attribute :remaining_hours do validate_remaining_work_is_lower_than_work - validate_remaining_work_is_set_when_work_is_set + if OpenProject::FeatureDecisions.percent_complete_edition_active? + validate_remaining_work_is_set_when_work_and_percent_complete_are_set + else + # to be removed in 15.0 with :percent_complete_edition feature flag removal + validate_remaining_work_is_set_when_work_is_set + end end attribute :derived_remaining_hours, writable: false @@ -137,7 +156,6 @@ class BaseContract < ::ModelContract validate :validate_priority_exists validate :validate_category - validate :validate_estimated_hours validate :validate_assigned_to_exists @@ -218,12 +236,6 @@ def assignable_assignees attr_reader :can - def validate_estimated_hours - if !model.estimated_hours.nil? && model.estimated_hours < 0 - errors.add :estimated_hours, :only_values_greater_or_equal_zeroes_allowed - end - end - def validate_after_soonest_start(date_attribute) if !model.schedule_manually? && before_soonest_start?(date_attribute) message = I18n.t("activerecord.errors.models.work_package.attributes.start_date.violates_relationships", @@ -324,7 +336,7 @@ def validate_version_is_assignable end def validate_remaining_work_is_lower_than_work - if work_set? && remaining_work_set? && remaining_work_exceeds_work? + if remaining_work_exceeds_work? if model.changed.include?("estimated_hours") errors.add(:estimated_hours, :cant_be_inferior_to_remaining_work) end @@ -335,28 +347,111 @@ def validate_remaining_work_is_lower_than_work end end + # to be removed in 15.0 with :percent_complete_edition feature flag removal def validate_remaining_work_is_set_when_work_is_set if work_set? && !remaining_work_set? errors.add(:remaining_hours, :must_be_set_when_work_is_set) end end + # to be removed in 15.0 with :percent_complete_edition feature flag removal def validate_work_is_set_when_remaining_work_is_set if remaining_work_set? && !work_set? errors.add(:estimated_hours, :must_be_set_when_remaining_work_is_set) end end + def validate_work_is_set_when_remaining_work_and_percent_complete_are_set + if remaining_work_set_and_valid? && percent_complete_set_and_valid? && work_unset? + errors.add(:estimated_hours, :must_be_set_when_remaining_work_and_percent_complete_are_set) + end + end + + def validate_remaining_work_is_set_when_work_and_percent_complete_are_set + if work_set_and_valid? && percent_complete_set_and_valid? && remaining_work_unset? + errors.add(:remaining_hours, :must_be_set_when_work_and_percent_complete_are_set) + end + end + + def validate_percent_complete_is_set_when_work_and_remaining_work_are_set + if work_set_and_valid? && remaining_work_set_and_valid? && work != 0 && percent_complete_unset? + errors.add(:done_ratio, :must_be_set_when_work_and_remaining_work_are_set) + end + end + + # rubocop:disable Metrics/AbcSize + def validate_percent_complete_matches_work_and_remaining_work + return if WorkPackage.status_based_mode? || percent_complete_unset? || work == 0 + return if remaining_work_exceeds_work? # avoid too many error messages at the same time + return unless work_set? && remaining_work_set? + + work_done = work - remaining_work + expected_percent_complete = (100 * work_done.to_f / work).round + + if percent_complete != expected_percent_complete + errors.add(:done_ratio, :does_not_match_work_and_remaining_work) + end + end + # rubocop:enable Metrics/AbcSize + + def validate_percent_complete_is_unset_when_work_is_zero + return if WorkPackage.status_based_mode? + + if work == 0 && percent_complete_set? + errors.add(:done_ratio, :cannot_be_set_when_work_is_zero) + end + end + + def work + model.estimated_hours + end + def work_set? - model.estimated_hours.present? + work.present? + end + + def work_set_and_valid? + work_set? && work >= 0 + end + + def work_unset? + work.nil? + end + + def remaining_work + model.remaining_hours end def remaining_work_set? - model.remaining_hours.present? + remaining_work.present? + end + + def remaining_work_set_and_valid? + remaining_work_set? && remaining_work >= 0 + end + + def remaining_work_unset? + remaining_work.nil? end def remaining_work_exceeds_work? - model.remaining_hours > model.estimated_hours + work_set? && remaining_work_set? && remaining_work > work + end + + def percent_complete + model.done_ratio + end + + def percent_complete_set? + percent_complete.present? + end + + def percent_complete_set_and_valid? + percent_complete_set? && percent_complete.between?(0, 100) + end + + def percent_complete_unset? + percent_complete.nil? end def validate_no_reopen_on_closed_version diff --git a/app/contracts/work_packages/copy_contract.rb b/app/contracts/work_packages/copy_contract.rb index 4bd8d5e895bd..797c03de4e27 100644 --- a/app/contracts/work_packages/copy_contract.rb +++ b/app/contracts/work_packages/copy_contract.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/copy_project_contract.rb b/app/contracts/work_packages/copy_project_contract.rb index a9d49288287b..6f1b7d79b85b 100644 --- a/app/contracts/work_packages/copy_project_contract.rb +++ b/app/contracts/work_packages/copy_project_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/create_contract.rb b/app/contracts/work_packages/create_contract.rb index 9c8c735e7ad9..7ca7bd43c892 100644 --- a/app/contracts/work_packages/create_contract.rb +++ b/app/contracts/work_packages/create_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/create_note_contract.rb b/app/contracts/work_packages/create_note_contract.rb index 4d28ea9fecc0..0d158c8aa677 100644 --- a/app/contracts/work_packages/create_note_contract.rb +++ b/app/contracts/work_packages/create_note_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/delete_contract.rb b/app/contracts/work_packages/delete_contract.rb index 35913f594a9c..de22373fb9a4 100644 --- a/app/contracts/work_packages/delete_contract.rb +++ b/app/contracts/work_packages/delete_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/skip_authorization_checks.rb b/app/contracts/work_packages/skip_authorization_checks.rb index a14e83fc3181..2941b1a881bf 100644 --- a/app/contracts/work_packages/skip_authorization_checks.rb +++ b/app/contracts/work_packages/skip_authorization_checks.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/update_contract.rb b/app/contracts/work_packages/update_contract.rb index 3425f15be160..b25158caed0c 100644 --- a/app/contracts/work_packages/update_contract.rb +++ b/app/contracts/work_packages/update_contract.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/contracts/work_packages/update_dependent_contract.rb b/app/contracts/work_packages/update_dependent_contract.rb index f18fbf18ec17..6640d443f346 100644 --- a/app/contracts/work_packages/update_dependent_contract.rb +++ b/app/contracts/work_packages/update_dependent_contract.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index a9b2423c55e3..bf66aca93497 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb index 1c66dec3058f..40033e2a911f 100644 --- a/app/controllers/activities_controller.rb +++ b/app/controllers/activities_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/attachments/quarantined_attachments_controller.rb b/app/controllers/admin/attachments/quarantined_attachments_controller.rb index 2a7c0b8594db..80b7ec2556fe 100644 --- a/app/controllers/admin/attachments/quarantined_attachments_controller.rb +++ b/app/controllers/admin/attachments/quarantined_attachments_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rb index b156aef9a081..fb50e597c75b 100644 --- a/app/controllers/admin/backups_controller.rb +++ b/app/controllers/admin/backups_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/aggregation_settings_controller.rb b/app/controllers/admin/settings/aggregation_settings_controller.rb index 4e1277d60300..1c0d0bad39c1 100644 --- a/app/controllers/admin/settings/aggregation_settings_controller.rb +++ b/app/controllers/admin/settings/aggregation_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/api_settings_controller.rb b/app/controllers/admin/settings/api_settings_controller.rb index 917c51ead62a..d94e03460bf8 100644 --- a/app/controllers/admin/settings/api_settings_controller.rb +++ b/app/controllers/admin/settings/api_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/attachments_settings_controller.rb b/app/controllers/admin/settings/attachments_settings_controller.rb index 7929473435ae..f727c70c44d6 100644 --- a/app/controllers/admin/settings/attachments_settings_controller.rb +++ b/app/controllers/admin/settings/attachments_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/authentication_settings_controller.rb b/app/controllers/admin/settings/authentication_settings_controller.rb index 723baac41a93..48c246dc4608 100644 --- a/app/controllers/admin/settings/authentication_settings_controller.rb +++ b/app/controllers/admin/settings/authentication_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/date_format_settings_controller.rb b/app/controllers/admin/settings/date_format_settings_controller.rb index 44ac43d80a19..2222c7012c52 100644 --- a/app/controllers/admin/settings/date_format_settings_controller.rb +++ b/app/controllers/admin/settings/date_format_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/experimental_settings_controller.rb b/app/controllers/admin/settings/experimental_settings_controller.rb index 5f381ab5e8d9..6f02c722eaec 100644 --- a/app/controllers/admin/settings/experimental_settings_controller.rb +++ b/app/controllers/admin/settings/experimental_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/general_settings_controller.rb b/app/controllers/admin/settings/general_settings_controller.rb index 81a76d0252ba..2b2f14b20b6f 100644 --- a/app/controllers/admin/settings/general_settings_controller.rb +++ b/app/controllers/admin/settings/general_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/icalendar_settings_controller.rb b/app/controllers/admin/settings/icalendar_settings_controller.rb index a34bfe854212..0fa66dac5997 100644 --- a/app/controllers/admin/settings/icalendar_settings_controller.rb +++ b/app/controllers/admin/settings/icalendar_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/incoming_mails_settings_controller.rb b/app/controllers/admin/settings/incoming_mails_settings_controller.rb index 742319c5bd87..d3ea484e4aec 100644 --- a/app/controllers/admin/settings/incoming_mails_settings_controller.rb +++ b/app/controllers/admin/settings/incoming_mails_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/languages_settings_controller.rb b/app/controllers/admin/settings/languages_settings_controller.rb index a1b67655a9e5..e34ee1a9d9a4 100644 --- a/app/controllers/admin/settings/languages_settings_controller.rb +++ b/app/controllers/admin/settings/languages_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/mail_notifications_settings_controller.rb b/app/controllers/admin/settings/mail_notifications_settings_controller.rb index 434fb6661de6..f2e70374837e 100644 --- a/app/controllers/admin/settings/mail_notifications_settings_controller.rb +++ b/app/controllers/admin/settings/mail_notifications_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/new_project_settings_controller.rb b/app/controllers/admin/settings/new_project_settings_controller.rb index 656d919284e1..055950256747 100644 --- a/app/controllers/admin/settings/new_project_settings_controller.rb +++ b/app/controllers/admin/settings/new_project_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/project_custom_field_sections_controller.rb b/app/controllers/admin/settings/project_custom_field_sections_controller.rb index e861d0b475cc..20264164a544 100644 --- a/app/controllers/admin/settings/project_custom_field_sections_controller.rb +++ b/app/controllers/admin/settings/project_custom_field_sections_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/project_custom_fields_controller.rb b/app/controllers/admin/settings/project_custom_fields_controller.rb index 8f37bb49c650..ab06963ee7c2 100644 --- a/app/controllers/admin/settings/project_custom_fields_controller.rb +++ b/app/controllers/admin/settings/project_custom_fields_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/projects_settings_controller.rb b/app/controllers/admin/settings/projects_settings_controller.rb index 6f026096bd66..60ce183fe4f5 100644 --- a/app/controllers/admin/settings/projects_settings_controller.rb +++ b/app/controllers/admin/settings/projects_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/repositories_settings_controller.rb b/app/controllers/admin/settings/repositories_settings_controller.rb index f0fc6de9234e..43ce71b08f73 100644 --- a/app/controllers/admin/settings/repositories_settings_controller.rb +++ b/app/controllers/admin/settings/repositories_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/users_settings_controller.rb b/app/controllers/admin/settings/users_settings_controller.rb index 0f081595191f..e0d2d2de9724 100644 --- a/app/controllers/admin/settings/users_settings_controller.rb +++ b/app/controllers/admin/settings/users_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/virus_scanning_settings_controller.rb b/app/controllers/admin/settings/virus_scanning_settings_controller.rb index 63dcf7cc92cc..e7eabbc79816 100644 --- a/app/controllers/admin/settings/virus_scanning_settings_controller.rb +++ b/app/controllers/admin/settings/virus_scanning_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/work_packages_settings_controller.rb b/app/controllers/admin/settings/work_packages_settings_controller.rb index 9522f2ccb15c..d2f1f369f00f 100644 --- a/app/controllers/admin/settings/work_packages_settings_controller.rb +++ b/app/controllers/admin/settings/work_packages_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings/working_days_and_hours_settings_controller.rb b/app/controllers/admin/settings/working_days_and_hours_settings_controller.rb index a695a52cb550..9f5de6e9c286 100644 --- a/app/controllers/admin/settings/working_days_and_hours_settings_controller.rb +++ b/app/controllers/admin/settings/working_days_and_hours_settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin/settings_controller.rb b/app/controllers/admin/settings_controller.rb index 2e6b34c16c34..8fcb49a5311f 100644 --- a/app/controllers/admin/settings_controller.rb +++ b/app/controllers/admin/settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index c00d303d522c..aabc59cdd8a9 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/angular_controller.rb b/app/controllers/angular_controller.rb index 40e623c9027d..15c0d4bcf29e 100644 --- a/app/controllers/angular_controller.rb +++ b/app/controllers/angular_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -29,7 +29,7 @@ class AngularController < ApplicationController before_action :require_login - no_authorization_required! :empty_layout, :notifications_layout + no_authorization_required! :empty_layout def empty_layout # Frontend will handle rendering @@ -37,12 +37,6 @@ def empty_layout render html: "", layout: "angular/angular" end - def notifications_layout - # Frontend will handle rendering - # but we will need to render with notification specific layout - render html: "", layout: "angular/notifications" - end - def login_back_url_params params.permit(:state) end diff --git a/app/controllers/api_docs_controller.rb b/app/controllers/api_docs_controller.rb index 3a78ca1c7a59..c4997ca68959 100644 --- a/app/controllers/api_docs_controller.rb +++ b/app/controllers/api_docs_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1b8498c4d018..276ef7d8cd0c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/attribute_help_texts_controller.rb b/app/controllers/attribute_help_texts_controller.rb index 50e759264db9..737002a40f77 100644 --- a/app/controllers/attribute_help_texts_controller.rb +++ b/app/controllers/attribute_help_texts_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb index 242abdc4b65a..b41f73c47598 100644 --- a/app/controllers/categories_controller.rb +++ b/app/controllers/categories_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/colors_controller.rb b/app/controllers/colors_controller.rb index 87c767506d9c..7b710cb494f3 100644 --- a/app/controllers/colors_controller.rb +++ b/app/controllers/colors_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/authentication_stages.rb b/app/controllers/concerns/accounts/authentication_stages.rb index 1d2dbb19b743..33e44249be4a 100644 --- a/app/controllers/concerns/accounts/authentication_stages.rb +++ b/app/controllers/concerns/accounts/authentication_stages.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/authorization.rb b/app/controllers/concerns/accounts/authorization.rb index 206e81e78c43..f99824e798d7 100644 --- a/app/controllers/concerns/accounts/authorization.rb +++ b/app/controllers/concerns/accounts/authorization.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/current_user.rb b/app/controllers/concerns/accounts/current_user.rb index a52a9ca84b4b..e6bf353a8df9 100644 --- a/app/controllers/concerns/accounts/current_user.rb +++ b/app/controllers/concerns/accounts/current_user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/omniauth_login.rb b/app/controllers/concerns/accounts/omniauth_login.rb index d858918736c7..93f36f80cc81 100644 --- a/app/controllers/concerns/accounts/omniauth_login.rb +++ b/app/controllers/concerns/accounts/omniauth_login.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/redirect_after_login.rb b/app/controllers/concerns/accounts/redirect_after_login.rb index e5bcc7e9a359..02a2244903c0 100644 --- a/app/controllers/concerns/accounts/redirect_after_login.rb +++ b/app/controllers/concerns/accounts/redirect_after_login.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/user_consent.rb b/app/controllers/concerns/accounts/user_consent.rb index e3beee7a7de0..c17d33a9069e 100644 --- a/app/controllers/concerns/accounts/user_consent.rb +++ b/app/controllers/concerns/accounts/user_consent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/user_limits.rb b/app/controllers/concerns/accounts/user_limits.rb index 18b2cd91056c..119ebd933f55 100644 --- a/app/controllers/concerns/accounts/user_limits.rb +++ b/app/controllers/concerns/accounts/user_limits.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/accounts/user_password_change.rb b/app/controllers/concerns/accounts/user_password_change.rb index 1ce7f02cbd4e..b6ea6e6db3e3 100644 --- a/app/controllers/concerns/accounts/user_password_change.rb +++ b/app/controllers/concerns/accounts/user_password_change.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/admin/settings/project_custom_fields/component_streams.rb b/app/controllers/concerns/admin/settings/project_custom_fields/component_streams.rb index 5073bdf20b23..b36b9b49c9e0 100644 --- a/app/controllers/concerns/admin/settings/project_custom_fields/component_streams.rb +++ b/app/controllers/concerns/admin/settings/project_custom_fields/component_streams.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/attachable_service_call.rb b/app/controllers/concerns/attachable_service_call.rb index aa878d44ce7c..ffeac473a782 100644 --- a/app/controllers/concerns/attachable_service_call.rb +++ b/app/controllers/concerns/attachable_service_call.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/custom_fields/shared_actions.rb b/app/controllers/concerns/custom_fields/shared_actions.rb index a2b54097a7c2..44928935ff06 100644 --- a/app/controllers/concerns/custom_fields/shared_actions.rb +++ b/app/controllers/concerns/custom_fields/shared_actions.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/layout.rb b/app/controllers/concerns/layout.rb index 47b8057307ca..d8e652511855 100644 --- a/app/controllers/concerns/layout.rb +++ b/app/controllers/concerns/layout.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/member_helper.rb b/app/controllers/concerns/member_helper.rb index 8eb65831fd92..ae824ca2acbb 100644 --- a/app/controllers/concerns/member_helper.rb +++ b/app/controllers/concerns/member_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/op_turbo/component_stream.rb b/app/controllers/concerns/op_turbo/component_stream.rb index 4c1836f9f4e8..88fbf6f9abde 100644 --- a/app/controllers/concerns/op_turbo/component_stream.rb +++ b/app/controllers/concerns/op_turbo/component_stream.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/op_turbo/dialog_stream_helper.rb b/app/controllers/concerns/op_turbo/dialog_stream_helper.rb index 429506530d35..0eec3f4f1eb6 100644 --- a/app/controllers/concerns/op_turbo/dialog_stream_helper.rb +++ b/app/controllers/concerns/op_turbo/dialog_stream_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/password_confirmation.rb b/app/controllers/concerns/password_confirmation.rb index 79ecc8e1446f..d3452efee401 100644 --- a/app/controllers/concerns/password_confirmation.rb +++ b/app/controllers/concerns/password_confirmation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/projects/settings/project_custom_fields/component_streams.rb b/app/controllers/concerns/projects/settings/project_custom_fields/component_streams.rb index 0b126e565c40..2042c4cf0d9c 100644 --- a/app/controllers/concerns/projects/settings/project_custom_fields/component_streams.rb +++ b/app/controllers/concerns/projects/settings/project_custom_fields/component_streams.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/security/default_url_options.rb b/app/controllers/concerns/security/default_url_options.rb index e648f54572d6..db1a6cbb4bb7 100644 --- a/app/controllers/concerns/security/default_url_options.rb +++ b/app/controllers/concerns/security/default_url_options.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/user_invitation.rb b/app/controllers/concerns/user_invitation.rb index 9d33dfaacdf6..98055acdf239 100644 --- a/app/controllers/concerns/user_invitation.rb +++ b/app/controllers/concerns/user_invitation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/concerns/work_packages/with_split_view.rb b/app/controllers/concerns/work_packages/with_split_view.rb new file mode 100644 index 000000000000..73df17bedf52 --- /dev/null +++ b/app/controllers/concerns/work_packages/with_split_view.rb @@ -0,0 +1,69 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +module WorkPackages + module WithSplitView + extend ActiveSupport::Concern + + included do + helper_method :split_view_base_route + end + + def split_view_work_package_id + params[:work_package_id].to_i + end + + def close_split_view + respond_to do |format| + format.turbo_stream do + render turbo_stream: [ + turbo_stream.remove("work-package-details-#{split_view_work_package_id}"), + turbo_stream.push_state(url: split_view_base_route), + turbo_stream.set_title(title: helpers.page_title(I18n.t("js.notifications.title"))) + ] + end + format.html do + redirect_to split_view_base_route + end + end + end + + def respond_to_with_split_view(&format_block) + respond_to do |format| + format.turbo_stream do + render turbo_stream: [ + turbo_stream.update("content-bodyRight", helpers.split_view_instance.render_in(view_context)), + turbo_stream.push_state(url: request.fullpath) + ] + end + + yield(format) if format_block + end + end + end +end diff --git a/app/controllers/custom_actions_controller.rb b/app/controllers/custom_actions_controller.rb index c55fa66ed1da..a7296b639590 100644 --- a/app/controllers/custom_actions_controller.rb +++ b/app/controllers/custom_actions_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb index 7b8c5bfa0d46..644a489ec762 100644 --- a/app/controllers/custom_fields_controller.rb +++ b/app/controllers/custom_fields_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rb index a8467ed35a77..884d8a87548f 100644 --- a/app/controllers/custom_styles_controller.rb +++ b/app/controllers/custom_styles_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb index 836b5896ba49..85bc3e8eb9c1 100644 --- a/app/controllers/enterprises_controller.rb +++ b/app/controllers/enterprises_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb index 10c43fc169da..e9dfc3587347 100644 --- a/app/controllers/enumerations_controller.rb +++ b/app/controllers/enumerations_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -113,16 +113,8 @@ def find_enumeration end ## - # Find an enumeration class with the given Name - # this should be fail save for nonsense names or names - # which are no enumerations to prevent remote code execution attacks. - # params: type (string) + # Find an enumeration class with the given name def enumeration_class(type) - klass = type.to_s.constantize - raise NameError unless klass.ancestors.include? Enumeration - - klass - rescue NameError - nil + Enumeration.registered_subclasses.detect { |cls| cls.name == type } end end diff --git a/app/controllers/favorites_controller.rb b/app/controllers/favorites_controller.rb index cdc157058e42..9a596898126f 100644 --- a/app/controllers/favorites_controller.rb +++ b/app/controllers/favorites_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index f28372d7d7fb..1def837243cc 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 7f929d28bb33..1694553a9fc3 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 6e16d01fcbd1..fb63a4b60fc8 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/highlighting_controller.rb b/app/controllers/highlighting_controller.rb index e859e429bb87..855a5c51bdad 100644 --- a/app/controllers/highlighting_controller.rb +++ b/app/controllers/highlighting_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/homescreen_controller.rb b/app/controllers/homescreen_controller.rb index 50dfe8195b6a..5f2b8810cb71 100644 --- a/app/controllers/homescreen_controller.rb +++ b/app/controllers/homescreen_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index 2482b17cfb88..e1b49530e785 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/ldap_auth_sources_controller.rb b/app/controllers/ldap_auth_sources_controller.rb index 08a71d7d8a22..17e46c044dab 100644 --- a/app/controllers/ldap_auth_sources_controller.rb +++ b/app/controllers/ldap_auth_sources_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/members/menus_controller.rb b/app/controllers/members/menus_controller.rb index edfaec250776..88fee6218585 100644 --- a/app/controllers/members/menus_controller.rb +++ b/app/controllers/members/menus_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index 7fbba42d4f5a..10c4cd9d00e5 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 980c69da2e8d..d9e44f4aa302 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 99c515bb6647..f0d6ccdba047 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -113,26 +113,10 @@ def delete_storage_token end # Configure user's in app notifications - def notifications - render html: "", - layout: "angular/angular", - locals: { - menu_name: :my_menu, - component: "opce-notification-settings", - page_title: [I18n.t(:label_my_account), I18n.t("js.notifications.settings.title")] - } - end + def notifications; end # Configure user's mail reminders - def reminders - render html: "", - layout: "angular/angular", - locals: { - menu_name: :my_menu, - component: "opce-reminder-settings", - page_title: [I18n.t(:label_my_account), I18n.t("js.reminders.settings.title")] - } - end + def reminders; end # Create a new feeds key def generate_rss_key diff --git a/app/controllers/news/comments_controller.rb b/app/controllers/news/comments_controller.rb index 7ed4205ec213..282f7f4410b5 100644 --- a/app/controllers/news/comments_controller.rb +++ b/app/controllers/news/comments_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 31dae3297a4a..1a36644447a0 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/notifications/menus_controller.rb b/app/controllers/notifications/menus_controller.rb index 18e4258956fd..b76a4e527741 100644 --- a/app/controllers/notifications/menus_controller.rb +++ b/app/controllers/notifications/menus_controller.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb new file mode 100644 index 000000000000..123c55e92940 --- /dev/null +++ b/app/controllers/notifications_controller.rb @@ -0,0 +1,92 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +class NotificationsController < ApplicationController + include WorkPackages::WithSplitView + + before_action :require_login + before_action :filtered_query, only: :mark_all_read + no_authorization_required! :index, :split_view, :update_counter, :close_split_view, :mark_all_read, :date_alerts, :share_upsale + + def index + render_notifications_layout + end + + def split_view + respond_to_with_split_view do |format| + format.html do + render :index, layout: "notifications" + end + end + end + + def mark_all_read + if filtered_query.valid? + filtered_query.results.update_all(read_ian: true, updated_at: Time.zone.now) + else + flash[:error] = filtered_query.errors.full_messages.join(", ") + end + + redirect_back fallback_location: notifications_path + end + + def date_alerts + render_notifications_layout + end + + def share_upsale + render_notifications_layout + end + + private + + def split_view_base_route = notifications_path + + def default_breadcrumb; end + + def render_notifications_layout + # Frontend will handle rendering + # but we will need to render with notification specific layout + render layout: "notifications" + end + + def filtered_query + query = Queries::Notifications::NotificationQuery.new(user: current_user) + query.where(:read_ian, "=", "f") + + case params[:filter] + when "project" + id = params[:name].to_i + query.where(:project_id, "=", [id]) + when "reason" + query.where(:reason, "=", [params[:name]]) + end + + @filtered_query = query + end +end diff --git a/app/controllers/oauth/applications_controller.rb b/app/controllers/oauth/applications_controller.rb index 35301d285bd1..e29720877e22 100644 --- a/app/controllers/oauth/applications_controller.rb +++ b/app/controllers/oauth/applications_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/oauth/auth_base_controller.rb b/app/controllers/oauth/auth_base_controller.rb index 8ec97a4ceba0..ad1b33889863 100644 --- a/app/controllers/oauth/auth_base_controller.rb +++ b/app/controllers/oauth/auth_base_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/oauth/grants_controller.rb b/app/controllers/oauth/grants_controller.rb index dc9206b1a48a..c7264e2348d9 100644 --- a/app/controllers/oauth/grants_controller.rb +++ b/app/controllers/oauth/grants_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/oauth_clients_controller.rb b/app/controllers/oauth_clients_controller.rb index 448059bb4c75..4329c8c0ebe4 100644 --- a/app/controllers/oauth_clients_controller.rb +++ b/app/controllers/oauth_clients_controller.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/onboarding_controller.rb b/app/controllers/onboarding_controller.rb index 59105b0a5437..5ac689d35c66 100644 --- a/app/controllers/onboarding_controller.rb +++ b/app/controllers/onboarding_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/placeholder_users/memberships_controller.rb b/app/controllers/placeholder_users/memberships_controller.rb index b75532b9a878..7b164709921f 100644 --- a/app/controllers/placeholder_users/memberships_controller.rb +++ b/app/controllers/placeholder_users/memberships_controller.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/controllers/placeholder_users_controller.rb b/app/controllers/placeholder_users_controller.rb index e60daf4047f5..82d6660e274c 100644 --- a/app/controllers/placeholder_users_controller.rb +++ b/app/controllers/placeholder_users_controller.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/controllers/projects/archive_controller.rb b/app/controllers/projects/archive_controller.rb index b18c6f86c44c..c2d7e2729675 100644 --- a/app/controllers/projects/archive_controller.rb +++ b/app/controllers/projects/archive_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/identifier_controller.rb b/app/controllers/projects/identifier_controller.rb index 5178dc0e94bf..57462a5a5314 100644 --- a/app/controllers/projects/identifier_controller.rb +++ b/app/controllers/projects/identifier_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/menus_controller.rb b/app/controllers/projects/menus_controller.rb index 2b6e5324349b..935a9536c87f 100644 --- a/app/controllers/projects/menus_controller.rb +++ b/app/controllers/projects/menus_controller.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/queries_controller.rb b/app/controllers/projects/queries_controller.rb index 31c8ca8d73c8..3b77ca9a3b20 100644 --- a/app/controllers/projects/queries_controller.rb +++ b/app/controllers/projects/queries_controller.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -29,12 +29,14 @@ class Projects::QueriesController < ApplicationController include Projects::QueryLoading include OpTurbo::ComponentStream + include OpTurbo::DialogStreamHelper # No need for a more specific authorization check. That is carried out in the contracts. - no_authorization_required! :show, :new, :create, :rename, :update, :toggle_public, :destroy - before_action :require_login - before_action :find_query, only: %i[show rename update destroy toggle_public] - before_action :build_query_or_deny_access, only: %i[new create] + no_authorization_required! :show, :new, :create, :rename, :update, :toggle_public, :destroy, :destroy_confirmation_modal, + :configure_view_modal + before_action :require_login, except: %i[configure_view_modal] + before_action :find_query, only: %i[show rename update destroy toggle_public destroy_confirmation_modal] + before_action :build_query_or_deny_access, only: %i[new create configure_view_modal] current_menu_item [:new, :rename, :create, :update] do :projects @@ -45,15 +47,37 @@ def show end def new - render template: "/projects/index", - layout: "global", - locals: { query: @query, state: :edit } + respond_to do |format| + format.html do + render template: "/projects/index", + layout: "global", + locals: { query: @query, state: :edit } + end + format.turbo_stream do + replace_via_turbo_stream( + component: Projects::IndexPageHeaderComponent.new(query: @query, current_user:, state: :edit, params:) + ) + + render turbo_stream: turbo_streams + end + end end def rename - render template: "/projects/index", - layout: "global", - locals: { query: @query, state: :rename } + respond_to do |format| + format.html do + render template: "/projects/index", + layout: "global", + locals: { query: @query, state: :rename } + end + format.turbo_stream do + replace_via_turbo_stream( + component: Projects::IndexPageHeaderComponent.new(query: @query, current_user:, state: :rename, params:) + ) + + render turbo_stream: turbo_streams + end + end end def create @@ -101,6 +125,14 @@ def destroy redirect_to projects_path end + def destroy_confirmation_modal + respond_with_dialog Projects::DeleteListModalComponent.new(query: @query) + end + + def configure_view_modal + respond_with_dialog Projects::ConfigureViewModalComponent.new(query: @query) + end + private def render_result(service_call, success_i18n_key:, error_i18n_key:) # rubocop:disable Metrics/AbcSize diff --git a/app/controllers/projects/query_loading.rb b/app/controllers/projects/query_loading.rb index c7679d9b9b8a..6555949a5a35 100644 --- a/app/controllers/projects/query_loading.rb +++ b/app/controllers/projects/query_loading.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/categories_controller.rb b/app/controllers/projects/settings/categories_controller.rb index 1929018ac415..688465d20420 100644 --- a/app/controllers/projects/settings/categories_controller.rb +++ b/app/controllers/projects/settings/categories_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/custom_fields_controller.rb b/app/controllers/projects/settings/custom_fields_controller.rb index 25cbac60b795..ffd9d0b6244d 100644 --- a/app/controllers/projects/settings/custom_fields_controller.rb +++ b/app/controllers/projects/settings/custom_fields_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/general_controller.rb b/app/controllers/projects/settings/general_controller.rb index 024869dc4bda..e485054f49c3 100644 --- a/app/controllers/projects/settings/general_controller.rb +++ b/app/controllers/projects/settings/general_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/modules_controller.rb b/app/controllers/projects/settings/modules_controller.rb index c7f3dc070e10..027b9b88bd8d 100644 --- a/app/controllers/projects/settings/modules_controller.rb +++ b/app/controllers/projects/settings/modules_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/project_custom_fields_controller.rb b/app/controllers/projects/settings/project_custom_fields_controller.rb index 9dbcb329fe5a..b8f458dd551e 100644 --- a/app/controllers/projects/settings/project_custom_fields_controller.rb +++ b/app/controllers/projects/settings/project_custom_fields_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/repository_controller.rb b/app/controllers/projects/settings/repository_controller.rb index 3bd1d50b160a..18c132916d4a 100644 --- a/app/controllers/projects/settings/repository_controller.rb +++ b/app/controllers/projects/settings/repository_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/storage_controller.rb b/app/controllers/projects/settings/storage_controller.rb index 45de66390e04..59df2513e2d0 100644 --- a/app/controllers/projects/settings/storage_controller.rb +++ b/app/controllers/projects/settings/storage_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/types_controller.rb b/app/controllers/projects/settings/types_controller.rb index 68c65ceaaa0b..7e706a2eede8 100644 --- a/app/controllers/projects/settings/types_controller.rb +++ b/app/controllers/projects/settings/types_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings/versions_controller.rb b/app/controllers/projects/settings/versions_controller.rb index 232b0638f07e..175963af1bce 100644 --- a/app/controllers/projects/settings/versions_controller.rb +++ b/app/controllers/projects/settings/versions_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/settings_controller.rb b/app/controllers/projects/settings_controller.rb index 67515829647e..2758b98bf33c 100644 --- a/app/controllers/projects/settings_controller.rb +++ b/app/controllers/projects/settings_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects/templated_controller.rb b/app/controllers/projects/templated_controller.rb index c59e7c033144..acec6583bc04 100644 --- a/app/controllers/projects/templated_controller.rb +++ b/app/controllers/projects/templated_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 60e78cf76b38..277bdfdb2984 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -27,22 +27,25 @@ #++ class ProjectsController < ApplicationController + include OpTurbo::ComponentStream + menu_item :overview menu_item :roadmap, only: :roadmap - before_action :find_project, except: %i[index new] - before_action :load_query_or_deny_access, only: %i[index] + before_action :find_project, except: %i[index new export_list_modal] + before_action :load_query_or_deny_access, only: %i[index export_list_modal] before_action :authorize, only: %i[copy deactivate_work_package_attachments] before_action :authorize_global, only: %i[new] before_action :require_admin, only: %i[destroy destroy_info] - no_authorization_required! :index + no_authorization_required! :index, :export_list_modal include SortHelper include PaginationHelper include QueriesHelper include ProjectsHelper include Projects::QueryLoading + include OpTurbo::DialogStreamHelper helper_method :has_managed_project_folders? @@ -50,7 +53,7 @@ class ProjectsController < ApplicationController :projects end - def index + def index # rubocop:disable Format/AbcSize respond_to do |format| format.html do flash.now[:error] = @query.errors.full_messages if @query.errors.any? @@ -61,6 +64,27 @@ def index format.any(*supported_export_formats) do export_list(@query, request.format.symbol) end + + format.turbo_stream do + replace_via_turbo_stream( + component: Projects::IndexPageHeaderComponent.new(query: @query, current_user:, state: :show, params:) + ) + update_via_turbo_stream( + component: Filter::FilterButtonComponent.new(query: @query, disable_buttons: false) + ) + replace_via_turbo_stream(component: Projects::TableComponent.new(query: @query, current_user:, params:)) + + current_url = url_for(params.permit(:conroller, :action, :query_id, :filters, :columns, :sortBy, :page, :per_page)) + turbo_streams << turbo_stream.push_state(current_url) + turbo_streams << turbo_stream.turbo_frame_set_src( + "projects_sidemenu", + projects_menu_url(query_id: @query.id, controller_path: "projects") + ) + + turbo_streams << turbo_stream.replace("flash-messages", helpers.render_flash_messages) + + render turbo_stream: turbo_streams + end end end @@ -105,6 +129,10 @@ def deactivate_work_package_attachments end end + def export_list_modal + respond_with_dialog Projects::ExportListModalComponent.new(query: @query) + end + private def has_managed_project_folders?(project) diff --git a/app/controllers/queries/params_parser.rb b/app/controllers/queries/params_parser.rb index 3968ce1d4e44..acc356e1f549 100644 --- a/app/controllers/queries/params_parser.rb +++ b/app/controllers/queries/params_parser.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/queries/params_parser/api_v3_filters_parser.rb b/app/controllers/queries/params_parser/api_v3_filters_parser.rb index 4bcf0d27b777..35802d9bcf76 100644 --- a/app/controllers/queries/params_parser/api_v3_filters_parser.rb +++ b/app/controllers/queries/params_parser/api_v3_filters_parser.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/queries/params_parser/filters_parser.rb b/app/controllers/queries/params_parser/filters_parser.rb index 8b6a7c377dd6..7f52e184b1f8 100644 --- a/app/controllers/queries/params_parser/filters_parser.rb +++ b/app/controllers/queries/params_parser/filters_parser.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 741493d32a1b..37682ac30dab 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index ecc09f416dac..8ef5d825ae5b 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index e29eeb94e44c..eae227306802 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/shares_controller.rb b/app/controllers/shares_controller.rb index 6abac9cca0a1..f020a2c9d5a2 100644 --- a/app/controllers/shares_controller.rb +++ b/app/controllers/shares_controller.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index ab61b83be135..2041400006d2 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/sys_controller.rb b/app/controllers/sys_controller.rb index 3d5b76cc7530..c2d0bd085e7d 100644 --- a/app/controllers/sys_controller.rb +++ b/app/controllers/sys_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/types_controller.rb b/app/controllers/types_controller.rb index 37b1a4c78a8a..31c8ad25cd7b 100644 --- a/app/controllers/types_controller.rb +++ b/app/controllers/types_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/users/memberships_controller.rb b/app/controllers/users/memberships_controller.rb index 2e02321d568c..681163c34742 100644 --- a/app/controllers/users/memberships_controller.rb +++ b/app/controllers/users/memberships_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4e31de0aa5a7..006335e2d3cc 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -219,7 +219,7 @@ def destroy end def deletion_info - render action: "deletion_info", layout: my_or_admin_layout + render action: "deletion_info", layout: my_or_admin_layout, locals: { layout: my_or_admin_layout } end private diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 9d4d4fd40ae1..87d25fe223d8 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index ee4e32938acd..395a9e4a6868 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index afbcb3eb10eb..4e97b53cb491 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/wiki_menu_items_controller.rb b/app/controllers/wiki_menu_items_controller.rb index 6ac9c2358cc6..1a035cc1da69 100644 --- a/app/controllers/wiki_menu_items_controller.rb +++ b/app/controllers/wiki_menu_items_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/auto_completes_controller.rb b/app/controllers/work_packages/auto_completes_controller.rb index 5a06d103d14a..0f2677a9cb23 100644 --- a/app/controllers/work_packages/auto_completes_controller.rb +++ b/app/controllers/work_packages/auto_completes_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/bulk_controller.rb b/app/controllers/work_packages/bulk_controller.rb index 0951fd72de31..8030b41f7ce5 100644 --- a/app/controllers/work_packages/bulk_controller.rb +++ b/app/controllers/work_packages/bulk_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/bulk_error_message.rb b/app/controllers/work_packages/bulk_error_message.rb index a0e5a9acf2ad..bdce01fa3cf1 100644 --- a/app/controllers/work_packages/bulk_error_message.rb +++ b/app/controllers/work_packages/bulk_error_message.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/menus_controller.rb b/app/controllers/work_packages/menus_controller.rb index f05a98d8160c..a4d8d3c570c8 100644 --- a/app/controllers/work_packages/menus_controller.rb +++ b/app/controllers/work_packages/menus_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/moves_controller.rb b/app/controllers/work_packages/moves_controller.rb index a9bbe6cd8e96..84fb506e34c6 100644 --- a/app/controllers/work_packages/moves_controller.rb +++ b/app/controllers/work_packages/moves_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/progress_controller.rb b/app/controllers/work_packages/progress_controller.rb index 96335b394d2a..3d1831c70f49 100644 --- a/app/controllers/work_packages/progress_controller.rb +++ b/app/controllers/work_packages/progress_controller.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -35,14 +35,13 @@ class WorkPackages::ProgressController < ApplicationController done_ratio].freeze layout false - before_action :set_work_package - before_action :extract_persisted_progress_attributes, only: %i[edit create update] authorization_checked! :new, :edit, :create, :update helper_method :modal_class def new - build_up_brand_new_work_package + make_fake_initial_work_package + set_progress_attributes_to_work_package render modal_class.new(@work_package, focused_field: params[:field], @@ -50,15 +49,18 @@ def new end def edit - build_up_work_package + find_work_package + set_progress_attributes_to_work_package render modal_class.new(@work_package, focused_field: params[:field], touched_field_map:) end + # rubocop:disable Metrics/AbcSize def create - service_call = build_up_brand_new_work_package + make_fake_initial_work_package + service_call = set_progress_attributes_to_work_package if service_call.errors .map(&:attribute) @@ -72,17 +74,24 @@ def create render :update, status: :unprocessable_entity end end - else + # following 3 lines to be removed in 15.0 with :percent_complete_edition feature flag removal + elsif !OpenProject::FeatureDecisions.percent_complete_edition_active? render json: { estimatedTime: formatted_duration(@work_package.estimated_hours), remainingTime: formatted_duration(@work_package.remaining_hours) } + else + render json: { estimatedTime: formatted_duration(@work_package.estimated_hours), + remainingTime: formatted_duration(@work_package.remaining_hours), + percentageDone: @work_package.done_ratio } end end + # rubocop:enable Metrics/AbcSize def update + find_work_package service_call = WorkPackages::UpdateService .new(user: current_user, model: @work_package) - .call(work_package_params) + .call(work_package_progress_params) if service_call.success? respond_to do |format| @@ -111,28 +120,29 @@ def modal_class end end - def set_work_package + def find_work_package @work_package = WorkPackage.visible.find(params[:work_package_id]) - rescue ActiveRecord::RecordNotFound - @work_package = WorkPackage.new + end + + def make_fake_initial_work_package + initial_params = params["work_package"]["initial"] + .slice(*%w[estimated_hours remaining_hours done_ratio status_id]) + .permit! + @work_package = WorkPackage.new(initial_params) + @work_package.clear_changes_information end def touched_field_map params.require(:work_package) .slice("estimated_hours_touched", "remaining_hours_touched", + "done_ratio_touched", "status_id_touched") .transform_values { _1 == "true" } .permit! end - def extract_persisted_progress_attributes - @persisted_progress_attributes = @work_package - .attributes - .slice("estimated_hours", "remaining_hours", "status_id") - end - - def work_package_params + def work_package_progress_params params.require(:work_package) .slice(*allowed_touched_params) .permit! @@ -145,8 +155,11 @@ def allowed_touched_params def allowed_params if WorkPackage.use_status_for_done_ratio? %i[estimated_hours status_id] - else + # two next lines to be removed in 15.0 with :percent_complete_edition feature flag removal + elsif !OpenProject::FeatureDecisions.percent_complete_edition_active? %i[estimated_hours remaining_hours] + else + %i[estimated_hours remaining_hours done_ratio] end end @@ -154,20 +167,12 @@ def touched?(field) touched_field_map[:"#{field}_touched"] end - def build_up_work_package - WorkPackages::SetAttributesService - .new(user: current_user, - model: @work_package, - contract_class: WorkPackages::CreateContract) - .call(work_package_params) - end - - def build_up_brand_new_work_package + def set_progress_attributes_to_work_package WorkPackages::SetAttributesService .new(user: current_user, model: @work_package, contract_class: WorkPackages::CreateContract) - .call(work_package_params) + .call(work_package_progress_params) end def formatted_duration(hours) diff --git a/app/controllers/work_packages/reports_controller.rb b/app/controllers/work_packages/reports_controller.rb index e1cb28000300..7507026789b2 100644 --- a/app/controllers/work_packages/reports_controller.rb +++ b/app/controllers/work_packages/reports_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/work_packages/split_view_controller.rb b/app/controllers/work_packages/split_view_controller.rb new file mode 100644 index 000000000000..4a5a9057d95a --- /dev/null +++ b/app/controllers/work_packages/split_view_controller.rb @@ -0,0 +1,55 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +require "rack/utils" + +class WorkPackages::SplitViewController < ApplicationController + # Authorization is checked in the find_work_package action + no_authorization_required! :update_counter + before_action :find_work_package, only: %i[update_counter] + + def update_counter + respond_to do |format| + format.turbo_stream do + render turbo_stream: [ + WorkPackages::Details::UpdateCounterComponent + .new(work_package: @work_package, menu_name: params[:counter]) + .render_as_turbo_stream(action: :replace, view_context:) + ] + end + end + end + + private + + def find_work_package + @work_package = WorkPackage.visible.find(params[:id]) + rescue ActiveRecord::RecordNotFound + render_404 message: I18n.t(:error_work_package_id_not_found) + end +end diff --git a/app/controllers/work_packages_controller.rb b/app/controllers/work_packages_controller.rb index 513d5d9e174e..b1236fe344c4 100644 --- a/app/controllers/work_packages_controller.rb +++ b/app/controllers/work_packages_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index e17d054420e5..aec51ef4790b 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb b/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb index f8a5f7562206..db2fa302c4d5 100644 --- a/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb +++ b/app/forms/custom_fields/inputs/base/autocomplete/multi_value_input.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb b/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb index d067a42478af..3a9bf73dd15d 100644 --- a/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb +++ b/app/forms/custom_fields/inputs/base/autocomplete/single_value_input.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/base/autocomplete/user_query_utils.rb b/app/forms/custom_fields/inputs/base/autocomplete/user_query_utils.rb index ad2460cf8c42..e2d17241aed6 100644 --- a/app/forms/custom_fields/inputs/base/autocomplete/user_query_utils.rb +++ b/app/forms/custom_fields/inputs/base/autocomplete/user_query_utils.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/base/input.rb b/app/forms/custom_fields/inputs/base/input.rb index 5f00afda9925..6e30709cc0f0 100644 --- a/app/forms/custom_fields/inputs/base/input.rb +++ b/app/forms/custom_fields/inputs/base/input.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/base/utils.rb b/app/forms/custom_fields/inputs/base/utils.rb index fe786cc07fdf..b6ee0ab0a2ed 100644 --- a/app/forms/custom_fields/inputs/base/utils.rb +++ b/app/forms/custom_fields/inputs/base/utils.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/bool.rb b/app/forms/custom_fields/inputs/bool.rb index 69ee007427fb..524ea846312a 100644 --- a/app/forms/custom_fields/inputs/bool.rb +++ b/app/forms/custom_fields/inputs/bool.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/date.rb b/app/forms/custom_fields/inputs/date.rb index 2834b3a8a60f..a2b90cb37b8a 100644 --- a/app/forms/custom_fields/inputs/date.rb +++ b/app/forms/custom_fields/inputs/date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/float.rb b/app/forms/custom_fields/inputs/float.rb index 62e45610b409..ccd79646d393 100644 --- a/app/forms/custom_fields/inputs/float.rb +++ b/app/forms/custom_fields/inputs/float.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/int.rb b/app/forms/custom_fields/inputs/int.rb index ab5fc29e50d9..833a543e44a8 100644 --- a/app/forms/custom_fields/inputs/int.rb +++ b/app/forms/custom_fields/inputs/int.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/multi_select_list.rb b/app/forms/custom_fields/inputs/multi_select_list.rb index f11f8cf5a396..832ddb524b49 100644 --- a/app/forms/custom_fields/inputs/multi_select_list.rb +++ b/app/forms/custom_fields/inputs/multi_select_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/multi_user_select_list.rb b/app/forms/custom_fields/inputs/multi_user_select_list.rb index 6dc05fe908e2..f086b8b8948e 100644 --- a/app/forms/custom_fields/inputs/multi_user_select_list.rb +++ b/app/forms/custom_fields/inputs/multi_user_select_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/multi_version_select_list.rb b/app/forms/custom_fields/inputs/multi_version_select_list.rb index 8092247ccb89..f03ce7672f6c 100644 --- a/app/forms/custom_fields/inputs/multi_version_select_list.rb +++ b/app/forms/custom_fields/inputs/multi_version_select_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/single_select_list.rb b/app/forms/custom_fields/inputs/single_select_list.rb index 907200cb95dd..6b86c9c3a614 100644 --- a/app/forms/custom_fields/inputs/single_select_list.rb +++ b/app/forms/custom_fields/inputs/single_select_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/single_user_select_list.rb b/app/forms/custom_fields/inputs/single_user_select_list.rb index 8203c534b491..0c763401a464 100644 --- a/app/forms/custom_fields/inputs/single_user_select_list.rb +++ b/app/forms/custom_fields/inputs/single_user_select_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/single_version_select_list.rb b/app/forms/custom_fields/inputs/single_version_select_list.rb index 19f832c916d6..870929858e7a 100644 --- a/app/forms/custom_fields/inputs/single_version_select_list.rb +++ b/app/forms/custom_fields/inputs/single_version_select_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/string.rb b/app/forms/custom_fields/inputs/string.rb index 8af06d84e6a8..e1bd770bacd2 100644 --- a/app/forms/custom_fields/inputs/string.rb +++ b/app/forms/custom_fields/inputs/string.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/custom_fields/inputs/text.rb b/app/forms/custom_fields/inputs/text.rb index adb224761a39..fc2feed8a144 100644 --- a/app/forms/custom_fields/inputs/text.rb +++ b/app/forms/custom_fields/inputs/text.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/project_custom_field_sections/name_form.rb b/app/forms/project_custom_field_sections/name_form.rb index caba64f6b8f0..78e830c1e3df 100644 --- a/app/forms/project_custom_field_sections/name_form.rb +++ b/app/forms/project_custom_field_sections/name_form.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/projects/custom_fields/custom_field_mapping_form.rb b/app/forms/projects/custom_fields/custom_field_mapping_form.rb index f49b4809cab0..cda7e1c10e42 100644 --- a/app/forms/projects/custom_fields/custom_field_mapping_form.rb +++ b/app/forms/projects/custom_fields/custom_field_mapping_form.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -38,6 +38,7 @@ class CustomFieldMappingForm < ApplicationForm visually_hide_label: true, validation_message: project_ids_error_message, autocomplete_options: { + with_search_icon: true, openDirectly: false, focusDirectly: false, multiple: true, diff --git a/app/forms/projects/custom_fields/form.rb b/app/forms/projects/custom_fields/form.rb index 46704f690826..23dd74316571 100644 --- a/app/forms/projects/custom_fields/form.rb +++ b/app/forms/projects/custom_fields/form.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/shares/invitee.rb b/app/forms/shares/invitee.rb index 61d5a3d41aba..e8eb8f8407d9 100644 --- a/app/forms/shares/invitee.rb +++ b/app/forms/shares/invitee.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/forms/work_packages/pre_14_4_progress_form.rb b/app/forms/work_packages/pre_14_4_progress_form.rb new file mode 100644 index 000000000000..2127f3fdb343 --- /dev/null +++ b/app/forms/work_packages/pre_14_4_progress_form.rb @@ -0,0 +1,213 @@ +# -- copyright +# OpenProject is an open source project management software. +# Copyright (C) 2010-2024 the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +# ++ + +# This file can be safely deleted once the feature flag :percent_complete_edition +# is removed, which should happen for OpenProject 15.0 release. +# +# Copied from commit 109b135b and modified to have the [work_package][initial] +# data needed by progress_controller +class WorkPackages::Pre144ProgressForm < ApplicationForm + ## + # Primer::Forms::BaseComponent or ApplicationForm will always autofocus the + # first input field with an error present on it. Despite this behavior being + # a11y-friendly, it breaks the modal's UX when an invalid input field + # is rendered. + # + # The reason for this is since we're implementing a "format on blur", when + # we make a request to the server that will set an input field in an invalid + # state and it is returned as such, any time we blur this autofocused field, + # we'll perform another request that will still have the input in an invalid + # state causing it to autofocus again and preventing us from leaving this + # "limbo state". + ## + def before_render + # no-op + end + + attr_reader :work_package, :mode + + def initialize(work_package:, + mode: :work_based, + focused_field: :remaining_hours, + touched_field_map: {}) + super() + + @work_package = work_package + @mode = mode + @focused_field = focused_field_by_selection(focused_field) + @touched_field_map = touched_field_map + ensure_only_one_error_for_remaining_work_exceeding_work + end + + form do |query_form| + query_form.group(layout: :horizontal) do |group| + if mode == :status_based + select_field_options = { name: :status_id, label: I18n.t(:label_percent_complete) }.tap do |options| + options.reverse_merge!(default_field_options(:status_id)) + options.merge!(disabled: @work_package.new_record?) + end + + group.select_list(**select_field_options) do |select_list| + WorkPackages::UpdateContract.new(@work_package, User.current) + .assignable_statuses + .find_each do |status| + select_list.option( + label: "#{status.name} (#{status.default_done_ratio}%)", + value: status.id + ) + end + end + + render_text_field(group, name: :estimated_hours, label: I18n.t(:label_work)) + render_readonly_text_field(group, name: :remaining_hours, label: I18n.t(:label_remaining_work)) + + # Add a hidden field in create forms as the select field is disabled and is otherwise not included in the form payload + group.hidden(name: :status_id) if @work_package.new_record? + + group.hidden(name: :status_id_touched, + value: @touched_field_map["status_id_touched"] || false, + data: { "work-packages--progress--touched-field-marker-target": "touchedFieldInput", + "referrer-field": "work_package[status_id]" }) + group.hidden(name: :estimated_hours_touched, + value: @touched_field_map["estimated_hours_touched"] || false, + data: { "work-packages--progress--touched-field-marker-target": "touchedFieldInput", + "referrer-field": "work_package[estimated_hours]" }) + else + render_text_field(group, name: :estimated_hours, label: I18n.t(:label_work)) + render_text_field(group, name: :remaining_hours, label: I18n.t(:label_remaining_work), + disabled: disabled_remaining_work_field?) + render_readonly_text_field(group, name: :done_ratio, label: I18n.t(:label_percent_complete)) + + group.hidden(name: :estimated_hours_touched, + value: @touched_field_map["estimated_hours_touched"] || false, + data: { "work-packages--progress--touched-field-marker-target": "touchedFieldInput", + "referrer-field": "work_package[estimated_hours]" }) + group.hidden(name: :remaining_hours_touched, + value: @touched_field_map["remaining_hours_touched"] || false, + data: { "work-packages--progress--touched-field-marker-target": "touchedFieldInput", + "referrer-field": "work_package[remaining_hours]" }) + end + group.fields_for(:initial) do |builder| + ::WorkPackages::ProgressForm::InitialValuesForm.new(builder, work_package:, mode:) + end + end + end + + private + + def ensure_only_one_error_for_remaining_work_exceeding_work + if work_package.errors.added?(:remaining_hours, :cant_exceed_work) && + work_package.errors.added?(:estimated_hours, :cant_be_inferior_to_remaining_work) + error_to_delete = + if @focused_field == :estimated_hours + :remaining_hours + else + :estimated_hours + end + work_package.errors.delete(error_to_delete) + end + end + + def focused_field_by_selection(field) + if field == :remaining_hours && disabled_remaining_work_field? + :estimated_hours + else + field + end + end + + def render_text_field(group, + name:, + label:, + disabled: false, + placeholder: nil) + text_field_options = { + name:, + value: field_value(name), + label:, + disabled:, + placeholder: + } + text_field_options.reverse_merge!(default_field_options(name)) + + group.text_field(**text_field_options) + end + + def render_readonly_text_field(group, + name:, + label:, + disabled: false, + placeholder: true) + text_field_options = { + name:, + value: field_value(name), + label:, + readonly: true, + disabled:, + classes: "input--readonly", + placeholder: ("-" if placeholder) + } + text_field_options.reverse_merge!(default_field_options(name)) + + group.text_field(**text_field_options) + end + + def field_value(name) + errors = @work_package.errors.where(name) + if (user_value = errors.map { |error| error.options[:value] }.find { !_1.nil? }) + user_value + elsif name == :done_ratio + format_to_smallest_fractional_part(@work_package.public_send(name)) + else + DurationConverter.output(@work_package.public_send(name)) + end + end + + def format_to_smallest_fractional_part(number) + return number if number.nil? + + number % 1 == 0 ? number.to_i : number + end + + def default_field_options(name) + data = { "work-packages--progress--preview-progress-target": "progressInput", + "work-packages--progress--touched-field-marker-target": "progressInput", + action: "input->work-packages--progress--touched-field-marker#markFieldAsTouched" } + + if @focused_field == name + data[:"work-packages--progress--focus-field-target"] = "fieldToFocus" + end + { data: } + end + + # Remaining work field is enabled when work is set, or when there are errors + # on fields so that they can be corrected. + def disabled_remaining_work_field? + @work_package.estimated_hours.nil? && @work_package.errors.empty? + end +end diff --git a/app/forms/work_packages/progress_form.rb b/app/forms/work_packages/progress_form.rb index 7399ef12a94f..58cad379767b 100644 --- a/app/forms/work_packages/progress_form.rb +++ b/app/forms/work_packages/progress_form.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -44,7 +44,7 @@ def before_render # no-op end - attr_reader :work_package + attr_reader :work_package, :mode def initialize(work_package:, mode: :work_based, @@ -61,11 +61,14 @@ def initialize(work_package:, form do |query_form| query_form.group(layout: :horizontal) do |group| - if @mode == :status_based - select_field_options = { name: :status_id, label: I18n.t(:label_percent_complete) }.tap do |options| - options.reverse_merge!(default_field_options(:status_id)) - options.merge!(disabled: @work_package.new_record?) - end + if mode == :status_based + select_field_options = + default_field_options(:status_id) + .merge( + name: :status_id, + label: I18n.t(:label_percent_complete), + disabled: @work_package.new_record? + ) group.select_list(**select_field_options) do |select_list| WorkPackages::UpdateContract.new(@work_package, User.current) @@ -94,9 +97,8 @@ def initialize(work_package:, "referrer-field": "work_package[estimated_hours]" }) else render_text_field(group, name: :estimated_hours, label: I18n.t(:label_work)) - render_text_field(group, name: :remaining_hours, label: I18n.t(:label_remaining_work), - disabled: disabled_remaining_work_field?) - render_readonly_text_field(group, name: :done_ratio, label: I18n.t(:label_percent_complete)) + render_text_field(group, name: :remaining_hours, label: I18n.t(:label_remaining_work)) + render_text_field(group, name: :done_ratio, label: I18n.t(:label_percent_complete)) group.hidden(name: :estimated_hours_touched, value: @touched_field_map["estimated_hours_touched"] || false, @@ -106,6 +108,13 @@ def initialize(work_package:, value: @touched_field_map["remaining_hours_touched"] || false, data: { "work-packages--progress--touched-field-marker-target": "touchedFieldInput", "referrer-field": "work_package[remaining_hours]" }) + group.hidden(name: :done_ratio_touched, + value: @touched_field_map["done_ratio_touched"] || false, + data: { "work-packages--progress--touched-field-marker-target": "touchedFieldInput", + "referrer-field": "work_package[done_ratio]" }) + end + group.fields_for(:initial) do |builder| + InitialValuesForm.new(builder, work_package:, mode:) end end end @@ -131,15 +140,11 @@ def focused_field_by_selection(field) def render_text_field(group, name:, - label:, - disabled: false, - placeholder: nil) + label:) text_field_options = { name:, value: field_value(name), - label:, - disabled:, - placeholder: + label: } text_field_options.reverse_merge!(default_field_options(name)) @@ -149,14 +154,12 @@ def render_text_field(group, def render_readonly_text_field(group, name:, label:, - disabled: false, placeholder: true) text_field_options = { name:, value: field_value(name), label:, readonly: true, - disabled:, classes: "input--readonly", placeholder: ("-" if placeholder) } @@ -170,16 +173,14 @@ def field_value(name) if (user_value = errors.map { |error| error.options[:value] }.find { !_1.nil? }) user_value elsif name == :done_ratio - format_to_smallest_fractional_part(@work_package.public_send(name)) + as_percent(@work_package.public_send(name)) else DurationConverter.output(@work_package.public_send(name)) end end - def format_to_smallest_fractional_part(number) - return number if number.nil? - - number % 1 == 0 ? number.to_i : number + def as_percent(value) + value ? "#{value}%" : nil end def default_field_options(name) @@ -192,10 +193,4 @@ def default_field_options(name) end { data: } end - - # Remaining work field is enabled when work is set, or when there are errors - # on fields so that they can be corrected. - def disabled_remaining_work_field? - @work_package.estimated_hours.nil? && @work_package.errors.empty? - end end diff --git a/app/forms/work_packages/progress_form/initial_values_form.rb b/app/forms/work_packages/progress_form/initial_values_form.rb new file mode 100644 index 000000000000..2c10cc81d8e6 --- /dev/null +++ b/app/forms/work_packages/progress_form/initial_values_form.rb @@ -0,0 +1,60 @@ +# -- copyright +# OpenProject is an open source project management software. +# Copyright (C) 2010-2024 the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +# ++ + +class WorkPackages::ProgressForm + class InitialValuesForm < ApplicationForm + attr_reader :work_package, :mode + + def initialize(work_package:, + mode: :work_based) + super() + + @work_package = work_package + @mode = mode + end + + form do |form| + if mode == :status_based + form.hidden(name: :status_id, + value: work_package.status_id_was) + form.hidden(name: :estimated_hours, + value: work_package.estimated_hours_was) + else + form.hidden(name: :estimated_hours, + value: work_package.estimated_hours_was) + form.hidden(name: :remaining_hours, + value: work_package.remaining_hours_was) + # next line to be removed in 15.0 with :percent_complete_edition feature flag removal + next unless OpenProject::FeatureDecisions.percent_complete_edition_active? + + form.hidden(name: :done_ratio, + value: work_package.done_ratio_was) + end + end + end +end diff --git a/app/helpers/accessibility_helper.rb b/app/helpers/accessibility_helper.rb index 155fd8269faa..c4854799522f 100644 --- a/app/helpers/accessibility_helper.rb +++ b/app/helpers/accessibility_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index d7578d9c5bb5..ed4d6f1bb105 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/angular_helper.rb b/app/helpers/angular_helper.rb index a287f2b40aa1..a71af0216ab2 100644 --- a/app/helpers/angular_helper.rb +++ b/app/helpers/angular_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/api_v3_helper.rb b/app/helpers/api_v3_helper.rb index 32f9e6343296..01af528c8448 100644 --- a/app/helpers/api_v3_helper.rb +++ b/app/helpers/api_v3_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ab0c29812abb..85cea8735937 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -172,9 +172,21 @@ def labeled_check_box_tags(name, collection, options = {}) end def html_hours(text) - text.gsub(%r{(\d+)\.(\d+)}, - '\1.\2') - .html_safe + html_safe_gsub(text, + %r{(\d+)\.(\d+)}, + '\1.\2') + end + + def html_safe_gsub(string, *gsub_args, &) + html_safe = string.html_safe? + string.gsub(*gsub_args, &) + + # We only mark the string as safe if the previous string was already safe + if html_safe + string.html_safe # rubocop:disable Rails/OutputSafety + else + string + end end def authoring(created, author, options = {}) @@ -252,19 +264,18 @@ def accesskey(s) # Same as Rails' simple_format helper without using paragraphs def simple_format_without_paragraph(text) - text.to_s - .gsub(/\r\n?/, "\n") # \r\n and \r -> \n - .gsub(/\n\n+/, "

") # 2+ newline -> 2 br - .gsub(/([^\n]\n)(?=[^\n])/, '\1
') # 1 newline -> br - .html_safe + html_safe_gsub(text.to_s, /\r\n?/, "\n") + .then { |res| html_safe_gsub(res, /\n\n+/, "

") } + .then { |res| html_safe_gsub(res, /([^\n]\n)(?=[^\n])/, '\1
') } end def lang_options_for_select(blank = true) - auto = if blank && (valid_languages - all_languages) == (all_languages - valid_languages) - [["(auto)", ""]] - else - [] - end + auto = + if blank && (valid_languages - all_languages) == (all_languages - valid_languages) + [["(auto)", ""]] + else + [] + end mapped_languages = valid_languages.map { |lang| translate_language(lang) } @@ -344,10 +355,10 @@ def current_layout # A hash containing the following keys: # * width: (default '100px') the css-width for the progress bar # * legend: (default: '') the text displayed alond with the progress bar - def progress_bar(pcts, options = {}) + def progress_bar(pcts, options = {}) # rubocop:disable Metrics/AbcSize pcts = Array(pcts).map(&:round) closed = pcts[0] - done = pcts[1] || 0 + done = pcts[1] || 0 width = options[:width] || "100px;" legend = options[:legend] || "" total_progress = options[:hide_total_progress] ? "" : t(:total_progress) @@ -356,7 +367,7 @@ def progress_bar(pcts, options = {}) content_tag :span do progress = content_tag :span, class: "progress-bar", style: "width: #{width}" do concat content_tag(:span, "", class: "inner-progress closed", style: "width: #{closed}%") - concat content_tag(:span, "", class: "inner-progress done", style: "width: #{done}%") + concat content_tag(:span, "", class: "inner-progress done", style: "width: #{done}%") end progress + content_tag(:span, "#{legend}#{percent_sign} #{total_progress}", class: "progress-bar-legend") end @@ -369,8 +380,10 @@ def checked_image(checked = true) end def calendar_for(*_args) - ActiveSupport::Deprecation.warn "calendar_for has been removed. Please use the op-basic-single-date-picker angular component instead", - caller + ActiveSupport::Deprecation.warn( + "calendar_for has been removed. Please use the opce-basic-single-date-picker angular component instead", + caller + ) end def locale_first_day_of_week @@ -435,7 +448,7 @@ def permitted_params def translate_language(lang_code) # rename in-context translation language name for the language select box if lang_code.to_sym == Redmine::I18n::IN_CONTEXT_TRANSLATION_CODE && - ::I18n.locale != Redmine::I18n::IN_CONTEXT_TRANSLATION_CODE + ::I18n.locale != Redmine::I18n::IN_CONTEXT_TRANSLATION_CODE [Redmine::I18n::IN_CONTEXT_TRANSLATION_NAME, lang_code.to_s] else [I18n.t("cldr.language_name", locale: lang_code), lang_code.to_s] diff --git a/app/helpers/archived_projects_helper.rb b/app/helpers/archived_projects_helper.rb index 20535782cba4..bd6256d8d7d7 100644 --- a/app/helpers/archived_projects_helper.rb +++ b/app/helpers/archived_projects_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb index f94ba25e46f5..f111406559cb 100644 --- a/app/helpers/attachments_helper.rb +++ b/app/helpers/attachments_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/attribute_help_texts_helper.rb b/app/helpers/attribute_help_texts_helper.rb index 7754edba2e07..ca9c5e4c884a 100644 --- a/app/helpers/attribute_help_texts_helper.rb +++ b/app/helpers/attribute_help_texts_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/augmenting_helper.rb b/app/helpers/augmenting_helper.rb index dd3f5ccf4b03..9e782ec33e17 100644 --- a/app/helpers/augmenting_helper.rb +++ b/app/helpers/augmenting_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/authentication_stage_path_helper.rb b/app/helpers/authentication_stage_path_helper.rb index f7ad862ea428..9253896bc50b 100644 --- a/app/helpers/authentication_stage_path_helper.rb +++ b/app/helpers/authentication_stage_path_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/backup_helper.rb b/app/helpers/backup_helper.rb index c29f2f6e7161..0245b9860250 100644 --- a/app/helpers/backup_helper.rb +++ b/app/helpers/backup_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb index 00d26419e3e3..39b3cf28b130 100644 --- a/app/helpers/breadcrumb_helper.rb +++ b/app/helpers/breadcrumb_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/calendars_helper.rb b/app/helpers/calendars_helper.rb index 8273fc5b3bff..be5615717c09 100644 --- a/app/helpers/calendars_helper.rb +++ b/app/helpers/calendars_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/colors_helper.rb b/app/helpers/colors_helper.rb index b22bc86b26e3..ac61eaa323ff 100644 --- a/app/helpers/colors_helper.rb +++ b/app/helpers/colors_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -139,9 +139,7 @@ def default_variables_dark end def default_variables_light - "--lightness-threshold: 0.453; - --border-threshold: 0.75; - --border-alpha: max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1));" + "--lightness-threshold: 0.453;" end def highlighted_background_dark @@ -158,7 +156,7 @@ def highlighted_background_light if mode == "light_high_contrast" style += "border: 1px solid hsla(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 75) * 1%), 1) !important;" else - style += "border: 1px solid hsla(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 25) * 1%), var(--border-alpha)) !important;" + style += "border: 1px solid hsl(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 15) * 1%)) !important;" end style diff --git a/app/helpers/confirmation_dialog_helper.rb b/app/helpers/confirmation_dialog_helper.rb index a0f7eed4a362..ddbd0ff0fc93 100644 --- a/app/helpers/confirmation_dialog_helper.rb +++ b/app/helpers/confirmation_dialog_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index 6d93fdb54271..e5c8951c2e2d 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -63,7 +63,7 @@ def custom_fields_tabs end # Return custom field html tag corresponding to its format - def custom_field_tag(name, custom_value) + def custom_field_tag(name, custom_value) # rubocop:disable Metrics/AbcSize,Metrics/PerceivedComplexity custom_field = custom_value.custom_field field_name = "#{name}[custom_field_values][#{custom_field.id}]" field_id = "#{name}_custom_field_values_#{custom_field.id}" @@ -72,7 +72,7 @@ def custom_field_tag(name, custom_value) tag = case field_format.try(:edit_as) when "date" - angular_component_tag "op-basic-single-date-picker", + angular_component_tag "opce-basic-single-date-picker", inputs: { required: custom_field.is_required, value: custom_value.value, @@ -143,14 +143,14 @@ def custom_field_tag_with_label(name, custom_value) custom_field_label_tag(name, custom_value) + custom_field_tag(name, custom_value) end - def custom_field_tag_for_bulk_edit(name, custom_field, project = nil) + def custom_field_tag_for_bulk_edit(name, custom_field, project = nil) # rubocop:disable Metrics/AbcSize field_name = "#{name}[custom_field_values][#{custom_field.id}]" field_id = "#{name}_custom_field_values_#{custom_field.id}" field_format = OpenProject::CustomFieldFormat.find_by_name(custom_field.field_format) case field_format.try(:edit_as) when "date" - angular_component_tag "op-modal-single-date-picker", + angular_component_tag "opce-modal-single-date-picker", inputs: { id: field_id, name: field_name diff --git a/app/helpers/custom_styles_helper.rb b/app/helpers/custom_styles_helper.rb index bfa9547b4961..3e5ed2446468 100644 --- a/app/helpers/custom_styles_helper.rb +++ b/app/helpers/custom_styles_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/error_message_helper.rb b/app/helpers/error_message_helper.rb index 1c435aafe894..0db5c3a59e2b 100644 --- a/app/helpers/error_message_helper.rb +++ b/app/helpers/error_message_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/errors_helper.rb b/app/helpers/errors_helper.rb index a7c389dfe810..ee22b9eddd83 100644 --- a/app/helpers/errors_helper.rb +++ b/app/helpers/errors_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/favorite_helper.rb b/app/helpers/favorite_helper.rb index e2a28188ae08..fb54ce000ef8 100644 --- a/app/helpers/favorite_helper.rb +++ b/app/helpers/favorite_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/flash_messages_helper.rb b/app/helpers/flash_messages_helper.rb index 36321e3ae4f7..d05d75608864 100644 --- a/app/helpers/flash_messages_helper.rb +++ b/app/helpers/flash_messages_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/flash_messages_output_safety_helper.rb b/app/helpers/flash_messages_output_safety_helper.rb index 563079419797..782aa009a411 100644 --- a/app/helpers/flash_messages_output_safety_helper.rb +++ b/app/helpers/flash_messages_output_safety_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/frontend_asset_helper.rb b/app/helpers/frontend_asset_helper.rb index 3d1d30b91765..f016772c4234 100644 --- a/app/helpers/frontend_asset_helper.rb +++ b/app/helpers/frontend_asset_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index f64b3ef16da7..55089af71845 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/hide_sections_helper.rb b/app/helpers/hide_sections_helper.rb index 94e15d5316b1..814dec4acbb3 100644 --- a/app/helpers/hide_sections_helper.rb +++ b/app/helpers/hide_sections_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/homescreen_helper.rb b/app/helpers/homescreen_helper.rb index e0c624877b78..c828f5a6623d 100644 --- a/app/helpers/homescreen_helper.rb +++ b/app/helpers/homescreen_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index b9b6db8386ab..7d5db8d48736 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/individual_principal_hooks_helper.rb b/app/helpers/individual_principal_hooks_helper.rb index 07080e5681a8..740d96c66c4c 100644 --- a/app/helpers/individual_principal_hooks_helper.rb +++ b/app/helpers/individual_principal_hooks_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index 1fcd32af5b64..85217057380e 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/mail_digest_helper.rb b/app/helpers/mail_digest_helper.rb index a449114a15a1..67a1951250e4 100644 --- a/app/helpers/mail_digest_helper.rb +++ b/app/helpers/mail_digest_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -27,6 +27,8 @@ #++ module MailDigestHelper + include Redmine::I18n + def digest_summary_text(notification_count, mentioned_count) mentioned = mentioned_count > 1 ? "plural" : "singular" notifications = notification_count > 1 ? "plural" : "singular" @@ -75,9 +77,7 @@ def timestamp_text(user, journal) sanitize( I18n.t(:"mail.work_packages.#{value}_at", user:, - timestamp: journal.created_at.strftime( - "#{I18n.t(:"date.formats.default")}, #{I18n.t(:"time.formats.time")}" - )) + timestamp: format_time(journal.created_at)) ) end diff --git a/app/helpers/mail_layout_helper.rb b/app/helpers/mail_layout_helper.rb index 911fe514f0d1..287a5506e9c2 100644 --- a/app/helpers/mail_layout_helper.rb +++ b/app/helpers/mail_layout_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -23,7 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -# See docs/COPYRIGHT.rdoc for more details. +# See COPYRIGHT and LICENSE files for more details. #++ module MailLayoutHelper diff --git a/app/helpers/mail_notification_helper.rb b/app/helpers/mail_notification_helper.rb index 6adcbea006ef..7219b8b3507c 100644 --- a/app/helpers/mail_notification_helper.rb +++ b/app/helpers/mail_notification_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -23,7 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -# See docs/COPYRIGHT.rdoc for more details. +# See COPYRIGHT and LICENSE files for more details. #++ module MailNotificationHelper @@ -35,10 +35,6 @@ def unique_reasons_of_notifications(notifications) .uniq end - def notifications_path(id) - notifications_center_url(["details", id, "activity"]) - end - def type_color(type, default_fallback) color_id = selected_color(type) if color_id diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb index 464e87e9f315..83adce4f65d3 100644 --- a/app/helpers/members_helper.rb +++ b/app/helpers/members_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/menus/notifications.rb b/app/helpers/menus/notifications.rb new file mode 100644 index 000000000000..fcba2962fa23 --- /dev/null +++ b/app/helpers/menus/notifications.rb @@ -0,0 +1,116 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +module Menus + class Notifications + ENTERPRISE_REASONS = %w[shared date_alert].freeze + + include Rails.application.routes.url_helpers + + attr_reader :controller_path, :params, :current_user, + :query, :unread_by_reason, :unread_by_project + + def initialize(controller_path:, params:, current_user:) + # rubocop:disable Rails/HelperInstanceVariable + @controller_path = controller_path + @params = params + @current_user = current_user + @unread_by_reason = filter_unread_by_reason + @unread_by_project = filter_unread_by_project + # rubocop:enable Rails/HelperInstanceVariable + end + + def first_level_menu_items + [ + OpenProject::Menu::MenuGroup.new(header: nil, + children: [inbox_menu]), + OpenProject::Menu::MenuGroup.new(header: I18n.t("notifications.menu.by_reason"), + children: reason_filters), + OpenProject::Menu::MenuGroup.new(header: I18n.t("notifications.menu.by_project"), + children: project_filters) + ] + end + + private + + def filter_unread_by_reason + query = Queries::Notifications::NotificationQuery.new(user: current_user) + query.where(:read_ian, "=", "f") + query.group(:reason) + query.group_values + end + + def filter_unread_by_project + query = Queries::Notifications::NotificationQuery.new(user: current_user) + query.where(:read_ian, "=", "f") + query.group(:project) + query.group_values + end + + def inbox_menu + OpenProject::Menu::MenuItem.new(title: I18n.t("notifications.menu.inbox"), + icon: :inbox, + href: notifications_path, + selected: !(params[:name] && params[:filter])) + end + + def selected?(filter, name) + params[:filter] == filter && params[:name] == name + end + + def reason_filters + %w[mentioned assigned responsible watched date_alert shared].map do |reason| + count = unread_by_reason[reason] + OpenProject::Menu::MenuItem.new(title: I18n.t("mail.work_packages.reason.#{reason}"), + icon: icon_map.fetch(reason, reason), + href: notifications_path(filter: "reason", name: reason), + count: count == 0 ? nil : count, + selected: selected?("reason", reason)) + end + end + + def project_filters + unread_by_project.map do |project, count| + OpenProject::Menu::MenuItem.new(title: project.name, + href: notifications_path(filter: "project", name: project.id), + count:, + selected: selected?("project", project.id)) + end + end + + def icon_map + { + "mentioned" => :mention, + "responsible" => :accountable, + "watched" => :watching, + "shared" => :share, + "date_alert" => :"date-alert" + } + end + end +end diff --git a/app/helpers/messages_helper.rb b/app/helpers/messages_helper.rb index 9634f21d30b3..4a370396b10c 100644 --- a/app/helpers/messages_helper.rb +++ b/app/helpers/messages_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/meta_tags_helper.rb b/app/helpers/meta_tags_helper.rb index 480d244e13bd..957c1fda074c 100644 --- a/app/helpers/meta_tags_helper.rb +++ b/app/helpers/meta_tags_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -30,10 +30,11 @@ module MetaTagsHelper ## # Use meta-tags to output title and site name def output_title_and_meta_tags - display_meta_tags site: Setting.app_title, - title: html_title_parts, - separator: " | ", # Update the TitleService when changing this! - reverse: true + display_meta_tags title: page_title(*html_title_parts) + end + + def page_title(*parts) + (parts.reverse + [Setting.app_title]).join(" | ") end def initializer_meta_tag diff --git a/app/helpers/no_results_helper.rb b/app/helpers/no_results_helper.rb index 1e4e7f25a4b1..4b3c4d9b936f 100644 --- a/app/helpers/no_results_helper.rb +++ b/app/helpers/no_results_helper.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/oauth_helper.rb b/app/helpers/oauth_helper.rb index 52b85a0a25fe..a98b0ffe03da 100644 --- a/app/helpers/oauth_helper.rb +++ b/app/helpers/oauth_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/omniauth_helper.rb b/app/helpers/omniauth_helper.rb index 94ff583fd7a5..f716e973de81 100644 --- a/app/helpers/omniauth_helper.rb +++ b/app/helpers/omniauth_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index 84ec198863b1..7792aca72f6d 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -198,16 +198,29 @@ def next_page def previous_or_next_page(page, text, class_suffix) if page tag(:li, - link(text, page, { class: "op-pagination--item-link op-pagination--item-link_" + class_suffix }), - class: "op-pagination--item op-pagination--item_" + class_suffix) + link(text, page, { class: "op-pagination--item-link op-pagination--item-link_#{class_suffix}" }), + class: "op-pagination--item op-pagination--item_#{class_suffix}") else "" end end + private + + def link(text, target, attributes) + new_attributes = attributes.dup + new_attributes["data-turbo-stream"] = true if turbo? + + super(text, target, new_attributes) + end + def allowed_params @options[:allowed_params] # rubocop:disable Rails/HelperInstanceVariable end + + def turbo? + @options[:turbo] # rubocop:disable Rails/HelperInstanceVariable + end end private diff --git a/app/helpers/password_helper.rb b/app/helpers/password_helper.rb index fb2f3cf47366..8f4419a583c5 100644 --- a/app/helpers/password_helper.rb +++ b/app/helpers/password_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/placeholder_users_helper.rb b/app/helpers/placeholder_users_helper.rb index 020b924a0c67..4945781c30d8 100644 --- a/app/helpers/placeholder_users_helper.rb +++ b/app/helpers/placeholder_users_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/project_status_helper.rb b/app/helpers/project_status_helper.rb index c919bb61c825..1c054521cd0e 100644 --- a/app/helpers/project_status_helper.rb +++ b/app/helpers/project_status_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 862942cf2620..c9d8f2d0de39 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index 0593c74f6f9e..ea8097bbc2e4 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/relations_helper.rb b/app/helpers/relations_helper.rb index 875f990de741..9a39c5dff4dc 100644 --- a/app/helpers/relations_helper.rb +++ b/app/helpers/relations_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/removed_js_helpers_helper.rb b/app/helpers/removed_js_helpers_helper.rb index 1d0b68095e3a..6ea7af9304d8 100644 --- a/app/helpers/removed_js_helpers_helper.rb +++ b/app/helpers/removed_js_helpers_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/reorder_links_helper.rb b/app/helpers/reorder_links_helper.rb index 85e48232cbda..3265e09ec0df 100644 --- a/app/helpers/reorder_links_helper.rb +++ b/app/helpers/reorder_links_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/reports_helper.rb b/app/helpers/reports_helper.rb index 13f30ad0b890..cf9ff1495786 100644 --- a/app/helpers/reports_helper.rb +++ b/app/helpers/reports_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 0fd7366f5804..1eaaa41d3649 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/roles_helper.rb b/app/helpers/roles_helper.rb index f6edba5511a1..3899c67a0aad 100644 --- a/app/helpers/roles_helper.rb +++ b/app/helpers/roles_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index fb9c7f17e2a6..5abcabc4a499 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/security_badge_helper.rb b/app/helpers/security_badge_helper.rb index 63a75de8f46d..780d1e4a1e06 100644 --- a/app/helpers/security_badge_helper.rb +++ b/app/helpers/security_badge_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index 2b20df902825..d34f4aab9b42 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index b578490095d4..a5ec937ccafc 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -319,11 +319,12 @@ def sort_header_tag(column, allowed_params: nil, **options) default_order = options.delete(:default_order) || "asc" lang = options.delete(:lang) || nil param = options.delete(:param) || :sort + data = options.delete(:data) || {} options[:title] = sort_header_title(column, caption, options) within_sort_header_tag_hierarchy(options, sort_class(column)) do - sort_link(column, caption, default_order, allowed_params:, param:, lang:, title: options[:title]) + sort_link(column, caption, default_order, allowed_params:, param:, lang:, title: options[:title], data:) end end diff --git a/app/helpers/static_links_helper.rb b/app/helpers/static_links_helper.rb index 42a5352b74b9..8587114c66a0 100644 --- a/app/helpers/static_links_helper.rb +++ b/app/helpers/static_links_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/stimulus_helper.rb b/app/helpers/stimulus_helper.rb index 04a6268ce64f..adb0c3b0e3ab 100644 --- a/app/helpers/stimulus_helper.rb +++ b/app/helpers/stimulus_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/tabs_helper.rb b/app/helpers/tabs_helper.rb index 1b0779a622d2..6305516475ac 100644 --- a/app/helpers/tabs_helper.rb +++ b/app/helpers/tabs_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/text_formatting_helper.rb b/app/helpers/text_formatting_helper.rb index b2dc6b8dcc6d..16fc2d953a17 100644 --- a/app/helpers/text_formatting_helper.rb +++ b/app/helpers/text_formatting_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/tooltip_helper.rb b/app/helpers/tooltip_helper.rb index bb81bdd0d59b..71ad52410706 100644 --- a/app/helpers/tooltip_helper.rb +++ b/app/helpers/tooltip_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/types_helper.rb b/app/helpers/types_helper.rb index dd28b3e603db..fcac23fc709a 100644 --- a/app/helpers/types_helper.rb +++ b/app/helpers/types_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/user_consent_helper.rb b/app/helpers/user_consent_helper.rb index b4ca59ecc3ed..2e31d1978b66 100644 --- a/app/helpers/user_consent_helper.rb +++ b/app/helpers/user_consent_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index e833fbea77e8..bb7f0cfa86ea 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb index 5019d024631f..7a66bd1653d2 100644 --- a/app/helpers/versions_helper.rb +++ b/app/helpers/versions_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/warning_bar_helper.rb b/app/helpers/warning_bar_helper.rb index 2152b505df5a..c7f15b602848 100644 --- a/app/helpers/warning_bar_helper.rb +++ b/app/helpers/warning_bar_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index 286e352ae4b3..22e7fb2743be 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb index ee894ddfd828..8be019496d02 100644 --- a/app/helpers/wiki_helper.rb +++ b/app/helpers/wiki_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/wiki_pages/at_version.rb b/app/helpers/wiki_pages/at_version.rb index 00cfd4ce8e5a..aaeec457ad3c 100644 --- a/app/helpers/wiki_pages/at_version.rb +++ b/app/helpers/wiki_pages/at_version.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/work_packages/split_view_helper.rb b/app/helpers/work_packages/split_view_helper.rb new file mode 100644 index 000000000000..4f2d12e138d4 --- /dev/null +++ b/app/helpers/work_packages/split_view_helper.rb @@ -0,0 +1,15 @@ +module WorkPackages::SplitViewHelper + def optional_work_package_split_view + return unless params[:work_package_split_view] + + content_for :content_body_right do + render split_view_instance + end + end + + def split_view_instance + WorkPackages::SplitViewComponent.new(id: params[:work_package_id], + tab: params[:tab], + base_route: params[:base_route] || work_packages_path) + end +end diff --git a/app/helpers/work_packages_controller_helper.rb b/app/helpers/work_packages_controller_helper.rb index 9ba2df4975fd..55d9f019bc88 100644 --- a/app/helpers/work_packages_controller_helper.rb +++ b/app/helpers/work_packages_controller_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/work_packages_filter_helper.rb b/app/helpers/work_packages_filter_helper.rb index c9a867edcff1..b3af10ace5dc 100644 --- a/app/helpers/work_packages_filter_helper.rb +++ b/app/helpers/work_packages_filter_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/helpers/work_packages_helper.rb b/app/helpers/work_packages_helper.rb index 9af478812c96..8e237f03638b 100644 --- a/app/helpers/work_packages_helper.rb +++ b/app/helpers/work_packages_helper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/announcement_mailer.rb b/app/mailers/announcement_mailer.rb index 9bd24c380a38..5a66df5162cc 100644 --- a/app/mailers/announcement_mailer.rb +++ b/app/mailers/announcement_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index e8b14ceb9529..58ce970fe75b 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/digest_mailer.rb b/app/mailers/digest_mailer.rb index f0b51bc28cf3..797941d6e120 100644 --- a/app/mailers/digest_mailer.rb +++ b/app/mailers/digest_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/member_mailer.rb b/app/mailers/member_mailer.rb index e6eca04f94db..b83e0102ccba 100644 --- a/app/mailers/member_mailer.rb +++ b/app/mailers/member_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/project_mailer.rb b/app/mailers/project_mailer.rb index 4ca7351a9433..bb4e9ac2f0aa 100644 --- a/app/mailers/project_mailer.rb +++ b/app/mailers/project_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/sharing_mailer.rb b/app/mailers/sharing_mailer.rb index db6e63fa2978..418bd0ba6393 100644 --- a/app/mailers/sharing_mailer.rb +++ b/app/mailers/sharing_mailer.rb @@ -15,7 +15,7 @@ def shared_work_package(sharer, membership, group = nil) @role_rights = derive_role_rights(role) @allowed_work_package_actions = derive_allowed_work_package_actions(role) @url = optionally_activated_url(work_package_url(@work_package.id), @invitation_token) - @notification_url = optionally_activated_url(notifications_path(@work_package.id), @invitation_token) + @notification_url = optionally_activated_url(details_notifications_url(@work_package.id), @invitation_token) set_open_project_headers(@work_package) message_id(membership, sharer) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 3838cecfdcfb..ea6bcf6d4b10 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/mailers/work_package_mailer.rb b/app/mailers/work_package_mailer.rb index 151506314e75..e96b30a6c446 100644 --- a/app/mailers/work_package_mailer.rb +++ b/app/mailers/work_package_mailer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/menus/members/menu.rb b/app/menus/members/menu.rb index cd1a252d4f5c..c339780c47d0 100644 --- a/app/menus/members/menu.rb +++ b/app/menus/members/menu.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/menus/notifications/menu.rb b/app/menus/notifications/menu.rb index 02a2cfe973b9..5488c610d329 100644 --- a/app/menus/notifications/menu.rb +++ b/app/menus/notifications/menu.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -108,7 +108,7 @@ def query_params(filter, name) end def selected?(query_params) - params[:filter] == query_params[:filter] && params[:name] == query_params[:name] + params[:filter] == query_params[:filter] && params[:name] == query_params[:name].to_s end def query_path(query_params) diff --git a/app/menus/projects/menu.rb b/app/menus/projects/menu.rb index 9e1f946beda9..9617ccea87be 100644 --- a/app/menus/projects/menu.rb +++ b/app/menus/projects/menu.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/menus/submenu.rb b/app/menus/submenu.rb index cabbd04e12f1..ef3a9a7ee24f 100644 --- a/app/menus/submenu.rb +++ b/app/menus/submenu.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/menus/work_packages/menu.rb b/app/menus/work_packages/menu.rb index 06cd44c96fb3..e2415fa4fc92 100644 --- a/app/menus/work_packages/menu.rb +++ b/app/menus/work_packages/menu.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/action.rb b/app/models/action.rb index 8e69476666bd..0ae3927bf26d 100644 --- a/app/models/action.rb +++ b/app/models/action.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/actions/scopes/default.rb b/app/models/actions/scopes/default.rb index 18eeea9417bb..dd1be87feac8 100644 --- a/app/models/actions/scopes/default.rb +++ b/app/models/actions/scopes/default.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/base_activity_provider.rb b/app/models/activities/base_activity_provider.rb index 9c7e90fac571..1c9e5f2906df 100644 --- a/app/models/activities/base_activity_provider.rb +++ b/app/models/activities/base_activity_provider.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/changeset_activity_provider.rb b/app/models/activities/changeset_activity_provider.rb index 395e5b89e5c4..61cb1e168a14 100644 --- a/app/models/activities/changeset_activity_provider.rb +++ b/app/models/activities/changeset_activity_provider.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/event.rb b/app/models/activities/event.rb index c36540cd454f..078988d8757b 100644 --- a/app/models/activities/event.rb +++ b/app/models/activities/event.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/event_mapper.rb b/app/models/activities/event_mapper.rb index d8b4e78d0473..9c0b19907519 100644 --- a/app/models/activities/event_mapper.rb +++ b/app/models/activities/event_mapper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/fetcher.rb b/app/models/activities/fetcher.rb index 2422359bb521..8eddb163198b 100644 --- a/app/models/activities/fetcher.rb +++ b/app/models/activities/fetcher.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/message_activity_provider.rb b/app/models/activities/message_activity_provider.rb index 5b5189d40e0b..500b69730a54 100644 --- a/app/models/activities/message_activity_provider.rb +++ b/app/models/activities/message_activity_provider.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/news_activity_provider.rb b/app/models/activities/news_activity_provider.rb index ee8f9ae6297d..599848a62135 100644 --- a/app/models/activities/news_activity_provider.rb +++ b/app/models/activities/news_activity_provider.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/project_activity_provider.rb b/app/models/activities/project_activity_provider.rb index 3ca1eb6f0c64..990850a22a60 100644 --- a/app/models/activities/project_activity_provider.rb +++ b/app/models/activities/project_activity_provider.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/wiki_page_activity_provider.rb b/app/models/activities/wiki_page_activity_provider.rb index 3913de39db65..6144b9d5596e 100644 --- a/app/models/activities/wiki_page_activity_provider.rb +++ b/app/models/activities/wiki_page_activity_provider.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/activities/work_package_activity_provider.rb b/app/models/activities/work_package_activity_provider.rb index 32d9c6444efc..7817fa4e5055 100644 --- a/app/models/activities/work_package_activity_provider.rb +++ b/app/models/activities/work_package_activity_provider.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/anonymous_user.rb b/app/models/anonymous_user.rb index 441bd8e39ec6..27e4514d6563 100644 --- a/app/models/anonymous_user.rb +++ b/app/models/anonymous_user.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/models/associations/groupable.rb b/app/models/associations/groupable.rb index 396fcd677d81..14f01c3871da 100644 --- a/app/models/associations/groupable.rb +++ b/app/models/associations/groupable.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 874d4dca4a18..b1d7ae1942c3 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/attribute_help_text.rb b/app/models/attribute_help_text.rb index 342d0774eccb..558991547ad0 100644 --- a/app/models/attribute_help_text.rb +++ b/app/models/attribute_help_text.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/attribute_help_text/project.rb b/app/models/attribute_help_text/project.rb index c17dc9fd8a6f..24a7d45054e6 100644 --- a/app/models/attribute_help_text/project.rb +++ b/app/models/attribute_help_text/project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/attribute_help_text/work_package.rb b/app/models/attribute_help_text/work_package.rb index 37dff8e30ded..8ba82dd5b678 100644 --- a/app/models/attribute_help_text/work_package.rb +++ b/app/models/attribute_help_text/work_package.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/auth_provider.rb b/app/models/auth_provider.rb new file mode 100644 index 000000000000..69d724c0faed --- /dev/null +++ b/app/models/auth_provider.rb @@ -0,0 +1,47 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +class AuthProvider < ApplicationRecord + belongs_to :creator, class_name: "User" + + validates :display_name, presence: true + validates :display_name, uniqueness: true + + def self.slug_fragment + raise NotImplementedError + end + + def auth_url + root_url = OpenProject::StaticRouting::StaticUrlHelpers.new.root_url + URI.join(root_url, "auth/#{slug}/").to_s + end + + def callback_url + URI.join(auth_url, "callback").to_s + end +end diff --git a/app/models/capabilities/scopes/default.rb b/app/models/capabilities/scopes/default.rb index 756647227a8f..67832ad2ff38 100644 --- a/app/models/capabilities/scopes/default.rb +++ b/app/models/capabilities/scopes/default.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/capability.rb b/app/models/capability.rb index 457f93e6cb57..1d7c9729835e 100644 --- a/app/models/capability.rb +++ b/app/models/capability.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/category.rb b/app/models/category.rb index cd53e8468ce3..cd635929c8ca 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/change.rb b/app/models/change.rb index 416cd420c7cd..a23ca0cf013e 100644 --- a/app/models/change.rb +++ b/app/models/change.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 1aaeaf51c782..6c8309923e0b 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/color.rb b/app/models/color.rb index c9152ce4ad34..9a47108bb0ce 100644 --- a/app/models/color.rb +++ b/app/models/color.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/comment.rb b/app/models/comment.rb index b69674f62731..76f44982481f 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/concerns/has_members.rb b/app/models/concerns/has_members.rb index d5f050350532..cb690996d509 100644 --- a/app/models/concerns/has_members.rb +++ b/app/models/concerns/has_members.rb @@ -1,6 +1,6 @@ # --copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/concerns/inexistent_model.rb b/app/models/concerns/inexistent_model.rb index cceba9103f3e..b097ef2e0a09 100644 --- a/app/models/concerns/inexistent_model.rb +++ b/app/models/concerns/inexistent_model.rb @@ -1,6 +1,6 @@ # --copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/concerns/subclass_registry.rb b/app/models/concerns/subclass_registry.rb new file mode 100644 index 000000000000..37159680d387 --- /dev/null +++ b/app/models/concerns/subclass_registry.rb @@ -0,0 +1,45 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +module SubclassRegistry + extend ActiveSupport::Concern + + included do + class_attribute :registered_subclasses, default: [] + end + + class_methods do + def register_subclass(subclass) + raise ArgumentError, "#{subclass} needs to inherit from #{self}" unless subclass < self + + unless registered_subclasses.include?(subclass) + registered_subclasses << subclass + end + end + end +end diff --git a/app/models/concerns/tableless.rb b/app/models/concerns/tableless.rb index 976fb1c5917d..70224951bac9 100644 --- a/app/models/concerns/tableless.rb +++ b/app/models/concerns/tableless.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/concerns/virtual_attribute.rb b/app/models/concerns/virtual_attribute.rb index 55558d41e308..8796bf831070 100644 --- a/app/models/concerns/virtual_attribute.rb +++ b/app/models/concerns/virtual_attribute.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_action.rb b/app/models/custom_action.rb index 0d3f1f70c544..95194da83f90 100644 --- a/app/models/custom_action.rb +++ b/app/models/custom_action.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/assigned_to.rb b/app/models/custom_actions/actions/assigned_to.rb index cb07040dab17..1aee8d1f99de 100644 --- a/app/models/custom_actions/actions/assigned_to.rb +++ b/app/models/custom_actions/actions/assigned_to.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/base.rb b/app/models/custom_actions/actions/base.rb index 46de397c5eb5..8b64662449b5 100644 --- a/app/models/custom_actions/actions/base.rb +++ b/app/models/custom_actions/actions/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/custom_field.rb b/app/models/custom_actions/actions/custom_field.rb index f46bb53467f1..c1b0a82eba89 100644 --- a/app/models/custom_actions/actions/custom_field.rb +++ b/app/models/custom_actions/actions/custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/date.rb b/app/models/custom_actions/actions/date.rb index 5b853c391af4..49eb1a64e878 100644 --- a/app/models/custom_actions/actions/date.rb +++ b/app/models/custom_actions/actions/date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/done_ratio.rb b/app/models/custom_actions/actions/done_ratio.rb index 4843e43f547a..894b22d0ee53 100644 --- a/app/models/custom_actions/actions/done_ratio.rb +++ b/app/models/custom_actions/actions/done_ratio.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/due_date.rb b/app/models/custom_actions/actions/due_date.rb index 0376f1044c23..6e9e331588e9 100644 --- a/app/models/custom_actions/actions/due_date.rb +++ b/app/models/custom_actions/actions/due_date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/estimated_hours.rb b/app/models/custom_actions/actions/estimated_hours.rb index 299ed03f87cf..fce9bed4be67 100644 --- a/app/models/custom_actions/actions/estimated_hours.rb +++ b/app/models/custom_actions/actions/estimated_hours.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/inexistent.rb b/app/models/custom_actions/actions/inexistent.rb index f5574f85e0d3..0f83b9f1bad8 100644 --- a/app/models/custom_actions/actions/inexistent.rb +++ b/app/models/custom_actions/actions/inexistent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/notify.rb b/app/models/custom_actions/actions/notify.rb index ab750301e659..a21e51f04ff3 100644 --- a/app/models/custom_actions/actions/notify.rb +++ b/app/models/custom_actions/actions/notify.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/priority.rb b/app/models/custom_actions/actions/priority.rb index ff7bd4e235c9..1efeb9764a41 100644 --- a/app/models/custom_actions/actions/priority.rb +++ b/app/models/custom_actions/actions/priority.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/project.rb b/app/models/custom_actions/actions/project.rb index 45f304eb8ec3..d4d42bf6f025 100644 --- a/app/models/custom_actions/actions/project.rb +++ b/app/models/custom_actions/actions/project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/responsible.rb b/app/models/custom_actions/actions/responsible.rb index 521135ec3f98..862a0e069e32 100644 --- a/app/models/custom_actions/actions/responsible.rb +++ b/app/models/custom_actions/actions/responsible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/serializer.rb b/app/models/custom_actions/actions/serializer.rb index d4d3ea0744ad..6f9377a1e9ae 100644 --- a/app/models/custom_actions/actions/serializer.rb +++ b/app/models/custom_actions/actions/serializer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/start_date.rb b/app/models/custom_actions/actions/start_date.rb index c0f7387d6a84..fe3dd49aaf7c 100644 --- a/app/models/custom_actions/actions/start_date.rb +++ b/app/models/custom_actions/actions/start_date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/status.rb b/app/models/custom_actions/actions/status.rb index cfc04fe93642..7a0bbbf2c64f 100644 --- a/app/models/custom_actions/actions/status.rb +++ b/app/models/custom_actions/actions/status.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/associated.rb b/app/models/custom_actions/actions/strategies/associated.rb index 83401b99de49..e257ab55f7f3 100644 --- a/app/models/custom_actions/actions/strategies/associated.rb +++ b/app/models/custom_actions/actions/strategies/associated.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/associated_custom_field.rb b/app/models/custom_actions/actions/strategies/associated_custom_field.rb index 5f806a2c5a11..fd2709b71214 100644 --- a/app/models/custom_actions/actions/strategies/associated_custom_field.rb +++ b/app/models/custom_actions/actions/strategies/associated_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/custom_field.rb b/app/models/custom_actions/actions/strategies/custom_field.rb index 8b7bfac60495..6949a58f6b24 100644 --- a/app/models/custom_actions/actions/strategies/custom_field.rb +++ b/app/models/custom_actions/actions/strategies/custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/date.rb b/app/models/custom_actions/actions/strategies/date.rb index 7193ce36ad5b..b92f524663f9 100644 --- a/app/models/custom_actions/actions/strategies/date.rb +++ b/app/models/custom_actions/actions/strategies/date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/date_property.rb b/app/models/custom_actions/actions/strategies/date_property.rb index ab51c0153ffc..25d977519773 100644 --- a/app/models/custom_actions/actions/strategies/date_property.rb +++ b/app/models/custom_actions/actions/strategies/date_property.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/float.rb b/app/models/custom_actions/actions/strategies/float.rb index f6ea441cccf4..b42b949cc2c2 100644 --- a/app/models/custom_actions/actions/strategies/float.rb +++ b/app/models/custom_actions/actions/strategies/float.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/integer.rb b/app/models/custom_actions/actions/strategies/integer.rb index 45377c884983..60c9b580fa3b 100644 --- a/app/models/custom_actions/actions/strategies/integer.rb +++ b/app/models/custom_actions/actions/strategies/integer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/link.rb b/app/models/custom_actions/actions/strategies/link.rb index 46abcb719717..85bde80177fb 100644 --- a/app/models/custom_actions/actions/strategies/link.rb +++ b/app/models/custom_actions/actions/strategies/link.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/me_associated.rb b/app/models/custom_actions/actions/strategies/me_associated.rb index 7ae0a30c42d1..ba73d23f0f32 100644 --- a/app/models/custom_actions/actions/strategies/me_associated.rb +++ b/app/models/custom_actions/actions/strategies/me_associated.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/string.rb b/app/models/custom_actions/actions/strategies/string.rb index 10ee4cc98604..c483ecf64ef4 100644 --- a/app/models/custom_actions/actions/strategies/string.rb +++ b/app/models/custom_actions/actions/strategies/string.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/text.rb b/app/models/custom_actions/actions/strategies/text.rb index b3deb53d8bac..d4720d14920b 100644 --- a/app/models/custom_actions/actions/strategies/text.rb +++ b/app/models/custom_actions/actions/strategies/text.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/user_custom_field.rb b/app/models/custom_actions/actions/strategies/user_custom_field.rb index feac280bb46e..3b0bc41e3c99 100644 --- a/app/models/custom_actions/actions/strategies/user_custom_field.rb +++ b/app/models/custom_actions/actions/strategies/user_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/validate_in_range.rb b/app/models/custom_actions/actions/strategies/validate_in_range.rb index 14ac3a9c1552..b802b2388d49 100644 --- a/app/models/custom_actions/actions/strategies/validate_in_range.rb +++ b/app/models/custom_actions/actions/strategies/validate_in_range.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/strategies/values_to_string.rb b/app/models/custom_actions/actions/strategies/values_to_string.rb index e7f839ce8a44..23e9e814f799 100644 --- a/app/models/custom_actions/actions/strategies/values_to_string.rb +++ b/app/models/custom_actions/actions/strategies/values_to_string.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/actions/type.rb b/app/models/custom_actions/actions/type.rb index c0104383b533..43241b7cad09 100644 --- a/app/models/custom_actions/actions/type.rb +++ b/app/models/custom_actions/actions/type.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/conditions/base.rb b/app/models/custom_actions/conditions/base.rb index bc63a7abc9de..93828f8d3880 100644 --- a/app/models/custom_actions/conditions/base.rb +++ b/app/models/custom_actions/conditions/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/conditions/inexistent.rb b/app/models/custom_actions/conditions/inexistent.rb index f0080c2e4ecd..399f88eddfd8 100644 --- a/app/models/custom_actions/conditions/inexistent.rb +++ b/app/models/custom_actions/conditions/inexistent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/conditions/project.rb b/app/models/custom_actions/conditions/project.rb index a13596839c19..5c8015a0f29b 100644 --- a/app/models/custom_actions/conditions/project.rb +++ b/app/models/custom_actions/conditions/project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/conditions/role.rb b/app/models/custom_actions/conditions/role.rb index f978a67251f9..d6c7756b03f1 100644 --- a/app/models/custom_actions/conditions/role.rb +++ b/app/models/custom_actions/conditions/role.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/conditions/status.rb b/app/models/custom_actions/conditions/status.rb index 801fa7587fa4..4f2c3feb2eac 100644 --- a/app/models/custom_actions/conditions/status.rb +++ b/app/models/custom_actions/conditions/status.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/conditions/type.rb b/app/models/custom_actions/conditions/type.rb index 4b16c3b21da3..f56f69acb256 100644 --- a/app/models/custom_actions/conditions/type.rb +++ b/app/models/custom_actions/conditions/type.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/register.rb b/app/models/custom_actions/register.rb index 1d999642d7ac..76084cb57f21 100644 --- a/app/models/custom_actions/register.rb +++ b/app/models/custom_actions/register.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_actions/values_to_integer.rb b/app/models/custom_actions/values_to_integer.rb index 34869def4626..0270c2144681 100644 --- a/app/models/custom_actions/values_to_integer.rb +++ b/app/models/custom_actions/values_to_integer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 59f6289257fc..e8ba5ecaa3cd 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_field/order_statements.rb b/app/models/custom_field/order_statements.rb index 3c96ec5cf178..c5463cf147c8 100644 --- a/app/models/custom_field/order_statements.rb +++ b/app/models/custom_field/order_statements.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_field_section.rb b/app/models/custom_field_section.rb index 8ca5ae147a02..e6b800be66a7 100644 --- a/app/models/custom_field_section.rb +++ b/app/models/custom_field_section.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_fields_project.rb b/app/models/custom_fields_project.rb index 7be8bef4502a..402c7c584059 100644 --- a/app/models/custom_fields_project.rb +++ b/app/models/custom_fields_project.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_option.rb b/app/models/custom_option.rb index c32b738908f8..210da4d58fbb 100644 --- a/app/models/custom_option.rb +++ b/app/models/custom_option.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value.rb b/app/models/custom_value.rb index d3b55b63bb00..5208e36cc605 100644 --- a/app/models/custom_value.rb +++ b/app/models/custom_value.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -42,7 +42,7 @@ class CustomValue < ApplicationRecord to: :strategy delegate :editable?, - :visible?, + :admin_only?, :required?, :max_length, :min_length, diff --git a/app/models/custom_value/ar_object_strategy.rb b/app/models/custom_value/ar_object_strategy.rb index 0e4f35e7f01c..8037e6bec0b2 100644 --- a/app/models/custom_value/ar_object_strategy.rb +++ b/app/models/custom_value/ar_object_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/bool_strategy.rb b/app/models/custom_value/bool_strategy.rb index 57311a4246a4..54b12051c8f3 100644 --- a/app/models/custom_value/bool_strategy.rb +++ b/app/models/custom_value/bool_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/date_strategy.rb b/app/models/custom_value/date_strategy.rb index 6dd1095a4032..d355b0187db6 100644 --- a/app/models/custom_value/date_strategy.rb +++ b/app/models/custom_value/date_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/empty_strategy.rb b/app/models/custom_value/empty_strategy.rb index cddf7c7ae21b..0cac71a7684c 100644 --- a/app/models/custom_value/empty_strategy.rb +++ b/app/models/custom_value/empty_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/float_strategy.rb b/app/models/custom_value/float_strategy.rb index 3b13c0aa2c9a..658bf294fcf7 100644 --- a/app/models/custom_value/float_strategy.rb +++ b/app/models/custom_value/float_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/format_strategy.rb b/app/models/custom_value/format_strategy.rb index e473970f5b52..917dbef51340 100644 --- a/app/models/custom_value/format_strategy.rb +++ b/app/models/custom_value/format_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/formattable_strategy.rb b/app/models/custom_value/formattable_strategy.rb index 884c9346d1dc..87401986330b 100644 --- a/app/models/custom_value/formattable_strategy.rb +++ b/app/models/custom_value/formattable_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/int_strategy.rb b/app/models/custom_value/int_strategy.rb index 93423c566692..e4ed1c7b8dcc 100644 --- a/app/models/custom_value/int_strategy.rb +++ b/app/models/custom_value/int_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/link_strategy.rb b/app/models/custom_value/link_strategy.rb index 04975fb25fb7..3e6951d6dec7 100644 --- a/app/models/custom_value/link_strategy.rb +++ b/app/models/custom_value/link_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/list_strategy.rb b/app/models/custom_value/list_strategy.rb index 381e74d52895..a65c9de837b0 100644 --- a/app/models/custom_value/list_strategy.rb +++ b/app/models/custom_value/list_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/string_strategy.rb b/app/models/custom_value/string_strategy.rb index b7622af0e3b2..91a594397ab3 100644 --- a/app/models/custom_value/string_strategy.rb +++ b/app/models/custom_value/string_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/user_strategy.rb b/app/models/custom_value/user_strategy.rb index f219f51e046e..c93522e04cf4 100644 --- a/app/models/custom_value/user_strategy.rb +++ b/app/models/custom_value/user_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/custom_value/version_strategy.rb b/app/models/custom_value/version_strategy.rb index 128a88e803ab..4f2d2db3a990 100644 --- a/app/models/custom_value/version_strategy.rb +++ b/app/models/custom_value/version_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/day.rb b/app/models/day.rb index 8e4874682f38..6c006389c79a 100644 --- a/app/models/day.rb +++ b/app/models/day.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/deleted_user.rb b/app/models/deleted_user.rb index 3685dbe3a9f1..ae65cfb4af70 100644 --- a/app/models/deleted_user.rb +++ b/app/models/deleted_user.rb @@ -11,19 +11,13 @@ def self.first end # Overrides a few properties - def logged?; false end - - def builtin?; true end - - def admin; false end - - def name(*_args); I18n.t("user.deleted") end - - def mail; nil end - - def time_zone; nil end - - def rss_key; nil end - - def destroy; false end + def available_custom_fields = [] + def logged? = false + def builtin? = true + def admin = false + def name(*_args) = I18n.t("user.deleted") + def mail = nil + def time_zone = nil + def rss_key = nil + def destroy = false end diff --git a/app/models/design_color.rb b/app/models/design_color.rb index e649011ed7d9..9c0a0161a69f 100644 --- a/app/models/design_color.rb +++ b/app/models/design_color.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/enabled_module.rb b/app/models/enabled_module.rb index 3fab8e33157c..0cda62a046e0 100644 --- a/app/models/enabled_module.rb +++ b/app/models/enabled_module.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/enterprise_token.rb b/app/models/enterprise_token.rb index 06f510a2d21b..1e064f48c2c0 100644 --- a/app/models/enterprise_token.rb +++ b/app/models/enterprise_token.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index b6e1f6f4b65c..da80df871462 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -27,6 +27,8 @@ #++ class Enumeration < ApplicationRecord + include SubclassRegistry + default_scope { order("#{Enumeration.table_name}.position ASC") } belongs_to :project, optional: true diff --git a/app/models/exports/concerns/csv.rb b/app/models/exports/concerns/csv.rb index d8229338021f..cc1c7b59e542 100644 --- a/app/models/exports/concerns/csv.rb +++ b/app/models/exports/concerns/csv.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/exports/export_error.rb b/app/models/exports/export_error.rb index 56285b89c844..541bfa209eb5 100644 --- a/app/models/exports/export_error.rb +++ b/app/models/exports/export_error.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/exports/exporter.rb b/app/models/exports/exporter.rb index b06f614c2446..195c9237e432 100644 --- a/app/models/exports/exporter.rb +++ b/app/models/exports/exporter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/exports/register.rb b/app/models/exports/register.rb index 4e51c0179845..b1bd4d46ab9a 100644 --- a/app/models/exports/register.rb +++ b/app/models/exports/register.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/exports/result.rb b/app/models/exports/result.rb index 083eabf1336f..26e66c2cc12b 100644 --- a/app/models/exports/result.rb +++ b/app/models/exports/result.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/favorite.rb b/app/models/favorite.rb index 99907152df77..bbf19596d0ce 100644 --- a/app/models/favorite.rb +++ b/app/models/favorite.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/forum.rb b/app/models/forum.rb index f59d608c6959..8ec7377bee12 100644 --- a/app/models/forum.rb +++ b/app/models/forum.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/global_role.rb b/app/models/global_role.rb index d829da2edd4c..5600bfd1e0dd 100644 --- a/app/models/global_role.rb +++ b/app/models/global_role.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/group.rb b/app/models/group.rb index b15997ae0c3d..277f6871d710 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/group_custom_field.rb b/app/models/group_custom_field.rb index 225be7d60eb5..cec58c141ef3 100644 --- a/app/models/group_custom_field.rb +++ b/app/models/group_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/group_user.rb b/app/models/group_user.rb index 5237147d225e..1372dddd4468 100644 --- a/app/models/group_user.rb +++ b/app/models/group_user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/groups/scopes/visible.rb b/app/models/groups/scopes/visible.rb index 69bd8a7121dd..7436d14eb59d 100644 --- a/app/models/groups/scopes/visible.rb +++ b/app/models/groups/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb index a159030f6007..340dbf52203d 100644 --- a/app/models/issue_priority.rb +++ b/app/models/issue_priority.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journable/historic_active_record_relation.rb b/app/models/journable/historic_active_record_relation.rb index 2282061bfab3..1a1a3d986ca1 100644 --- a/app/models/journable/historic_active_record_relation.rb +++ b/app/models/journable/historic_active_record_relation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journable/timestamps.rb b/app/models/journable/timestamps.rb index b38fdb175908..2f49da5e546f 100644 --- a/app/models/journable/timestamps.rb +++ b/app/models/journable/timestamps.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journable/with_historic_attributes.rb b/app/models/journable/with_historic_attributes.rb index c9e92ce6e45b..2a1d3482b859 100644 --- a/app/models/journable/with_historic_attributes.rb +++ b/app/models/journable/with_historic_attributes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journable/with_historic_attributes/loader.rb b/app/models/journable/with_historic_attributes/loader.rb index 1749bbcc4d9a..ff36d790a9f3 100644 --- a/app/models/journable/with_historic_attributes/loader.rb +++ b/app/models/journable/with_historic_attributes/loader.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal.rb b/app/models/journal.rb index bf71c0b9646f..d393198b9132 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/associated_journal.rb b/app/models/journal/associated_journal.rb index 706ddfd39ce3..9de071a0e576 100644 --- a/app/models/journal/associated_journal.rb +++ b/app/models/journal/associated_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/attachable_journal.rb b/app/models/journal/attachable_journal.rb index 43a721b8b210..e756aeef8477 100644 --- a/app/models/journal/attachable_journal.rb +++ b/app/models/journal/attachable_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/attachment_journal.rb b/app/models/journal/attachment_journal.rb index 9f2e6f42a9e0..82a968eaf583 100644 --- a/app/models/journal/attachment_journal.rb +++ b/app/models/journal/attachment_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/base_journal.rb b/app/models/journal/base_journal.rb index 8f7f28041d81..ea9cd0fa0941 100644 --- a/app/models/journal/base_journal.rb +++ b/app/models/journal/base_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_progress_mode_changed_to_status_based.rb b/app/models/journal/caused_by_progress_mode_changed_to_status_based.rb index 84a78eb674de..f5d56d8362d5 100644 --- a/app/models/journal/caused_by_progress_mode_changed_to_status_based.rb +++ b/app/models/journal/caused_by_progress_mode_changed_to_status_based.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_status_changed.rb b/app/models/journal/caused_by_status_changed.rb index 4e28458fbc75..d4eb73294642 100644 --- a/app/models/journal/caused_by_status_changed.rb +++ b/app/models/journal/caused_by_status_changed.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_system_update.rb b/app/models/journal/caused_by_system_update.rb index a3634fd4eb14..b21b745daf75 100644 --- a/app/models/journal/caused_by_system_update.rb +++ b/app/models/journal/caused_by_system_update.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_work_package_child_change.rb b/app/models/journal/caused_by_work_package_child_change.rb index 0389aa4da3d5..e9949e94fdb1 100644 --- a/app/models/journal/caused_by_work_package_child_change.rb +++ b/app/models/journal/caused_by_work_package_child_change.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_work_package_parent_change.rb b/app/models/journal/caused_by_work_package_parent_change.rb index f76a8566284f..662e5a61d190 100644 --- a/app/models/journal/caused_by_work_package_parent_change.rb +++ b/app/models/journal/caused_by_work_package_parent_change.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_work_package_predecessor_change.rb b/app/models/journal/caused_by_work_package_predecessor_change.rb index 7eada4e8c0bd..b18d2ac74bed 100644 --- a/app/models/journal/caused_by_work_package_predecessor_change.rb +++ b/app/models/journal/caused_by_work_package_predecessor_change.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_work_package_related_change.rb b/app/models/journal/caused_by_work_package_related_change.rb index afa6257679d7..3253c117ded2 100644 --- a/app/models/journal/caused_by_work_package_related_change.rb +++ b/app/models/journal/caused_by_work_package_related_change.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/caused_by_working_day_changes.rb b/app/models/journal/caused_by_working_day_changes.rb index 98a4752eaab0..97c0cfc0afad 100644 --- a/app/models/journal/caused_by_working_day_changes.rb +++ b/app/models/journal/caused_by_working_day_changes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/changeset_journal.rb b/app/models/journal/changeset_journal.rb index 6413c97b1e43..d324b98d19e4 100644 --- a/app/models/journal/changeset_journal.rb +++ b/app/models/journal/changeset_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/customizable_journal.rb b/app/models/journal/customizable_journal.rb index 49a5179625a7..eaa09ef30f9d 100644 --- a/app/models/journal/customizable_journal.rb +++ b/app/models/journal/customizable_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/message_journal.rb b/app/models/journal/message_journal.rb index eb764928a8e1..bc75b161b45a 100644 --- a/app/models/journal/message_journal.rb +++ b/app/models/journal/message_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/news_journal.rb b/app/models/journal/news_journal.rb index 1c0d62f29690..cb784c5c3986 100644 --- a/app/models/journal/news_journal.rb +++ b/app/models/journal/news_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/notification_configuration.rb b/app/models/journal/notification_configuration.rb index f8732f20b303..c5fa1c7bcb52 100644 --- a/app/models/journal/notification_configuration.rb +++ b/app/models/journal/notification_configuration.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/project_journal.rb b/app/models/journal/project_journal.rb index 3b3212505f50..17ef40976cff 100644 --- a/app/models/journal/project_journal.rb +++ b/app/models/journal/project_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/storable_journal.rb b/app/models/journal/storable_journal.rb index 94d7524fb07a..8b026f9828b6 100644 --- a/app/models/journal/storable_journal.rb +++ b/app/models/journal/storable_journal.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/timestamps.rb b/app/models/journal/timestamps.rb index 50f3aa85e39e..ecc732949da7 100644 --- a/app/models/journal/timestamps.rb +++ b/app/models/journal/timestamps.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/wiki_page_journal.rb b/app/models/journal/wiki_page_journal.rb index 45cf69c63fc6..ce40d02b8c95 100644 --- a/app/models/journal/wiki_page_journal.rb +++ b/app/models/journal/wiki_page_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/journal/work_package_journal.rb b/app/models/journal/work_package_journal.rb index bc4b0f9bccf0..40941aa14bb6 100644 --- a/app/models/journal/work_package_journal.rb +++ b/app/models/journal/work_package_journal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/ldap_auth_source.rb b/app/models/ldap_auth_source.rb index a2a4920b6ac9..d6cd746c2ace 100644 --- a/app/models/ldap_auth_source.rb +++ b/app/models/ldap_auth_source.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 24b2c9948491..c404f5d4e238 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/mail_handler/user_creator.rb b/app/models/mail_handler/user_creator.rb index b6952828b758..7a50f5068367 100644 --- a/app/models/mail_handler/user_creator.rb +++ b/app/models/mail_handler/user_creator.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/member.rb b/app/models/member.rb index 0419e68cb3f4..837ab5d053fb 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/member_role.rb b/app/models/member_role.rb index 5ced0d30985a..c204d24cdb94 100644 --- a/app/models/member_role.rb +++ b/app/models/member_role.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/roles_diff.rb b/app/models/members/roles_diff.rb index 53b53e6c7445..9fe82cb083fb 100644 --- a/app/models/members/roles_diff.rb +++ b/app/models/members/roles_diff.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/assignable.rb b/app/models/members/scopes/assignable.rb index eecdec9fd7a8..47dc8a084e42 100644 --- a/app/models/members/scopes/assignable.rb +++ b/app/models/members/scopes/assignable.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/global.rb b/app/models/members/scopes/global.rb index 08a9031a164d..dd7402347c7d 100644 --- a/app/models/members/scopes/global.rb +++ b/app/models/members/scopes/global.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/not_locked.rb b/app/models/members/scopes/not_locked.rb index 7eaa2ad215e0..a32b961ba7cc 100644 --- a/app/models/members/scopes/not_locked.rb +++ b/app/models/members/scopes/not_locked.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_any_entity.rb b/app/models/members/scopes/of_any_entity.rb index 11c4e5823933..3ea86390a4a2 100644 --- a/app/models/members/scopes/of_any_entity.rb +++ b/app/models/members/scopes/of_any_entity.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_any_project.rb b/app/models/members/scopes/of_any_project.rb index b3086825347b..06569ec1cd3f 100644 --- a/app/models/members/scopes/of_any_project.rb +++ b/app/models/members/scopes/of_any_project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_any_work_package.rb b/app/models/members/scopes/of_any_work_package.rb index b7beb0be5ed9..c069083ec317 100644 --- a/app/models/members/scopes/of_any_work_package.rb +++ b/app/models/members/scopes/of_any_work_package.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_anything_in_project.rb b/app/models/members/scopes/of_anything_in_project.rb index 2e7b5892d039..9ef032545353 100644 --- a/app/models/members/scopes/of_anything_in_project.rb +++ b/app/models/members/scopes/of_anything_in_project.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_entity.rb b/app/models/members/scopes/of_entity.rb index 4ebf97108f6b..69842225abe3 100644 --- a/app/models/members/scopes/of_entity.rb +++ b/app/models/members/scopes/of_entity.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_project.rb b/app/models/members/scopes/of_project.rb index 1ee85bacd217..2b82311b4893 100644 --- a/app/models/members/scopes/of_project.rb +++ b/app/models/members/scopes/of_project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/of_work_package.rb b/app/models/members/scopes/of_work_package.rb index ba4a9b896e7e..88ebe74a75be 100644 --- a/app/models/members/scopes/of_work_package.rb +++ b/app/models/members/scopes/of_work_package.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/visible.rb b/app/models/members/scopes/visible.rb index b9857d740a9b..9d9c7316068c 100644 --- a/app/models/members/scopes/visible.rb +++ b/app/models/members/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/with_shared_work_packages_info.rb b/app/models/members/scopes/with_shared_work_packages_info.rb index d205914cef31..4a9422036635 100644 --- a/app/models/members/scopes/with_shared_work_packages_info.rb +++ b/app/models/members/scopes/with_shared_work_packages_info.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/members/scopes/without_inherited_roles.rb b/app/models/members/scopes/without_inherited_roles.rb index 4b99a90216ca..e93363bcc0e5 100644 --- a/app/models/members/scopes/without_inherited_roles.rb +++ b/app/models/members/scopes/without_inherited_roles.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/menu_item.rb b/app/models/menu_item.rb index 6ca7377944c3..957cec47fb86 100644 --- a/app/models/menu_item.rb +++ b/app/models/menu_item.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/menu_items/wiki_menu_item.rb b/app/models/menu_items/wiki_menu_item.rb index 14a84a89bd81..495bfd98be3a 100644 --- a/app/models/menu_items/wiki_menu_item.rb +++ b/app/models/menu_items/wiki_menu_item.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/message.rb b/app/models/message.rb index c6551361e031..cfc378fcc0ad 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/news.rb b/app/models/news.rb index eced61e2b18d..46218c37f7ff 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notification.rb b/app/models/notification.rb index 64034e9b445c..65dff4c23ab5 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notification_settings/scopes/applicable.rb b/app/models/notification_settings/scopes/applicable.rb index 40d3693fed80..3485f76f4474 100644 --- a/app/models/notification_settings/scopes/applicable.rb +++ b/app/models/notification_settings/scopes/applicable.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notifications/scopes/mail_alert_unsent.rb b/app/models/notifications/scopes/mail_alert_unsent.rb index 7c889e524e5a..2cdf3788aa67 100644 --- a/app/models/notifications/scopes/mail_alert_unsent.rb +++ b/app/models/notifications/scopes/mail_alert_unsent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notifications/scopes/mail_reminder_unsent.rb b/app/models/notifications/scopes/mail_reminder_unsent.rb index 2da88c6d7b33..854566c69c7c 100644 --- a/app/models/notifications/scopes/mail_reminder_unsent.rb +++ b/app/models/notifications/scopes/mail_reminder_unsent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notifications/scopes/recipient.rb b/app/models/notifications/scopes/recipient.rb index 3e85ce3f057c..4c8611d5c326 100644 --- a/app/models/notifications/scopes/recipient.rb +++ b/app/models/notifications/scopes/recipient.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notifications/scopes/unsent_reminders_before.rb b/app/models/notifications/scopes/unsent_reminders_before.rb index 4434f0b5032a..92b089ff18fd 100644 --- a/app/models/notifications/scopes/unsent_reminders_before.rb +++ b/app/models/notifications/scopes/unsent_reminders_before.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/notifications/scopes/visible.rb b/app/models/notifications/scopes/visible.rb index 53b5393b99cc..8c284fbf6ccb 100644 --- a/app/models/notifications/scopes/visible.rb +++ b/app/models/notifications/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/oauth_client.rb b/app/models/oauth_client.rb index 80aceb10bc47..3b25763d6b07 100644 --- a/app/models/oauth_client.rb +++ b/app/models/oauth_client.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/oauth_client_token.rb b/app/models/oauth_client_token.rb index de72c6730bbb..a1baede51003 100644 --- a/app/models/oauth_client_token.rb +++ b/app/models/oauth_client_token.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/ordered_work_package.rb b/app/models/ordered_work_package.rb index 1726effee0f5..af5d92ea5bbb 100644 --- a/app/models/ordered_work_package.rb +++ b/app/models/ordered_work_package.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/permitted_params.rb b/app/models/permitted_params.rb index fd947aef170d..6507f0ae91dc 100644 --- a/app/models/permitted_params.rb +++ b/app/models/permitted_params.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -472,7 +472,7 @@ def self.permitted_attributes :possible_values, :regexp, :searchable, - :visible, + :admin_only, :default_value, :possible_values, :multi_value, diff --git a/app/models/placeholder_user.rb b/app/models/placeholder_user.rb index fc5c68585663..61b3a826cbc8 100644 --- a/app/models/placeholder_user.rb +++ b/app/models/placeholder_user.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/models/placeholder_users/scopes/visible.rb b/app/models/placeholder_users/scopes/visible.rb index 0a60b641f29d..728c14e4af22 100644 --- a/app/models/placeholder_users/scopes/visible.rb +++ b/app/models/placeholder_users/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principal.rb b/app/models/principal.rb index 5e6b4bb3bedb..20a0b51e10a8 100644 --- a/app/models/principal.rb +++ b/app/models/principal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/having_entity_membership.rb b/app/models/principals/scopes/having_entity_membership.rb index 449403181f71..defe67df6976 100644 --- a/app/models/principals/scopes/having_entity_membership.rb +++ b/app/models/principals/scopes/having_entity_membership.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/human.rb b/app/models/principals/scopes/human.rb index a94d9f294fed..c4eb3e949c36 100644 --- a/app/models/principals/scopes/human.rb +++ b/app/models/principals/scopes/human.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/like.rb b/app/models/principals/scopes/like.rb index c194ec51050d..ea8064cab837 100644 --- a/app/models/principals/scopes/like.rb +++ b/app/models/principals/scopes/like.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/not_builtin.rb b/app/models/principals/scopes/not_builtin.rb index 17de232478e2..2585c06b984e 100644 --- a/app/models/principals/scopes/not_builtin.rb +++ b/app/models/principals/scopes/not_builtin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/ordered_by_name.rb b/app/models/principals/scopes/ordered_by_name.rb index c72bab93d725..39f8f004c5e0 100644 --- a/app/models/principals/scopes/ordered_by_name.rb +++ b/app/models/principals/scopes/ordered_by_name.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/possible_assignee.rb b/app/models/principals/scopes/possible_assignee.rb index 2f19ddd21b3d..dfb5f0a382b3 100644 --- a/app/models/principals/scopes/possible_assignee.rb +++ b/app/models/principals/scopes/possible_assignee.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/possible_member.rb b/app/models/principals/scopes/possible_member.rb index eef5ff35e87b..64e42fd30b6e 100644 --- a/app/models/principals/scopes/possible_member.rb +++ b/app/models/principals/scopes/possible_member.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/status.rb b/app/models/principals/scopes/status.rb index c04a360c985f..17ab459f8ab8 100644 --- a/app/models/principals/scopes/status.rb +++ b/app/models/principals/scopes/status.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/user.rb b/app/models/principals/scopes/user.rb index 114e8f544c79..affe880e5f7b 100644 --- a/app/models/principals/scopes/user.rb +++ b/app/models/principals/scopes/user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/principals/scopes/visible.rb b/app/models/principals/scopes/visible.rb index 077f425373c0..177bb1aa43e9 100644 --- a/app/models/principals/scopes/visible.rb +++ b/app/models/principals/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/priority/inexistent_priority.rb b/app/models/priority/inexistent_priority.rb index 5c35da2680ed..649b83496285 100644 --- a/app/models/priority/inexistent_priority.rb +++ b/app/models/priority/inexistent_priority.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/project.rb b/app/models/project.rb index 000467a7c35a..cb377c6b5ad2 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -44,7 +44,7 @@ class Project < ApplicationRecord IDENTIFIER_MAX_LENGTH = 100 # reserved identifiers - RESERVED_IDENTIFIERS = %w[new menu queries].freeze + RESERVED_IDENTIFIERS = %w[new menu queries export_list_modal].freeze has_many :members, -> { # TODO: check whether this should diff --git a/app/models/project_custom_field.rb b/app/models/project_custom_field.rb index aedf7809e813..df4c67428ff1 100644 --- a/app/models/project_custom_field.rb +++ b/app/models/project_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -43,9 +43,9 @@ def visible(user = User.current, project: nil) if user.admin? all elsif user.allowed_in_any_project?(:select_project_custom_fields) || user.allowed_globally?(:add_project) - where(visible: true) + where(admin_only: false) else - where(visible: true).where(mappings_with_view_project_attributes_permission(user, project).exists) + where(admin_only: false).where(mappings_with_view_project_attributes_permission(user, project).exists) end end diff --git a/app/models/project_custom_field_project_mapping.rb b/app/models/project_custom_field_project_mapping.rb index f2832d96a6df..4836280fb956 100644 --- a/app/models/project_custom_field_project_mapping.rb +++ b/app/models/project_custom_field_project_mapping.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/project_custom_field_section.rb b/app/models/project_custom_field_section.rb index 589de4ed3ba4..06e3f113a16a 100644 --- a/app/models/project_custom_field_section.rb +++ b/app/models/project_custom_field_section.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/project_queries/scopes/allowed_to.rb b/app/models/project_queries/scopes/allowed_to.rb index 91629e53bc4d..48801acabe9f 100644 --- a/app/models/project_queries/scopes/allowed_to.rb +++ b/app/models/project_queries/scopes/allowed_to.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/project_query.rb b/app/models/project_query.rb index f7bb92f27f9c..69a5e337a256 100644 --- a/app/models/project_query.rb +++ b/app/models/project_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/project_query_role.rb b/app/models/project_query_role.rb index dc29a9905b18..aacb99b36c74 100644 --- a/app/models/project_query_role.rb +++ b/app/models/project_query_role.rb @@ -3,7 +3,7 @@ # #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/project_role.rb b/app/models/project_role.rb index ce7cf3eb9853..f8a69e76fff1 100644 --- a/app/models/project_role.rb +++ b/app/models/project_role.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/activity.rb b/app/models/projects/activity.rb index e0b5f64c3014..c550464e103e 100644 --- a/app/models/projects/activity.rb +++ b/app/models/projects/activity.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/ancestors_from_root.rb b/app/models/projects/ancestors_from_root.rb index e75bddb8ac93..061a60f11b68 100644 --- a/app/models/projects/ancestors_from_root.rb +++ b/app/models/projects/ancestors_from_root.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/custom_fields.rb b/app/models/projects/custom_fields.rb index f53e0f8ba0d8..5dfaa963a004 100644 --- a/app/models/projects/custom_fields.rb +++ b/app/models/projects/custom_fields.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/exports/csv.rb b/app/models/projects/exports/csv.rb index 4a841119a169..18e0786f8d9f 100644 --- a/app/models/projects/exports/csv.rb +++ b/app/models/projects/exports/csv.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/exports/formatters/active.rb b/app/models/projects/exports/formatters/active.rb index 93a78add3542..a54a2e44d3a9 100644 --- a/app/models/projects/exports/formatters/active.rb +++ b/app/models/projects/exports/formatters/active.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/exports/formatters/description.rb b/app/models/projects/exports/formatters/description.rb index d07fadb55c91..45e87d214ffe 100644 --- a/app/models/projects/exports/formatters/description.rb +++ b/app/models/projects/exports/formatters/description.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/exports/formatters/public.rb b/app/models/projects/exports/formatters/public.rb index deb4deb03011..e475d63a42b8 100644 --- a/app/models/projects/exports/formatters/public.rb +++ b/app/models/projects/exports/formatters/public.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/exports/formatters/status.rb b/app/models/projects/exports/formatters/status.rb index b138306b3bed..f7e8d1708565 100644 --- a/app/models/projects/exports/formatters/status.rb +++ b/app/models/projects/exports/formatters/status.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/exports/query_exporter.rb b/app/models/projects/exports/query_exporter.rb index 35a236a82a90..a26d2ec7e69e 100644 --- a/app/models/projects/exports/query_exporter.rb +++ b/app/models/projects/exports/query_exporter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/hierarchy.rb b/app/models/projects/hierarchy.rb index aaa262bc0f30..5f7fe739973e 100644 --- a/app/models/projects/hierarchy.rb +++ b/app/models/projects/hierarchy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/scopes/activated_in_storage.rb b/app/models/projects/scopes/activated_in_storage.rb index f6fb6f96ba48..80800d7849e0 100644 --- a/app/models/projects/scopes/activated_in_storage.rb +++ b/app/models/projects/scopes/activated_in_storage.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/scopes/allowed_to.rb b/app/models/projects/scopes/allowed_to.rb index e1596abe33eb..80691e4e2455 100644 --- a/app/models/projects/scopes/allowed_to.rb +++ b/app/models/projects/scopes/allowed_to.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/scopes/available_custom_fields.rb b/app/models/projects/scopes/available_custom_fields.rb index 7a4834884fc0..8d5860250afb 100644 --- a/app/models/projects/scopes/available_custom_fields.rb +++ b/app/models/projects/scopes/available_custom_fields.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/scopes/visible.rb b/app/models/projects/scopes/visible.rb index fa2810fdd76d..51cfbd27ec38 100644 --- a/app/models/projects/scopes/visible.rb +++ b/app/models/projects/scopes/visible.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/storage.rb b/app/models/projects/storage.rb index 40d70e8c195f..de39e35cd530 100644 --- a/app/models/projects/storage.rb +++ b/app/models/projects/storage.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/types.rb b/app/models/projects/types.rb index 0f0f7e429f57..8a5fe58d26c2 100644 --- a/app/models/projects/types.rb +++ b/app/models/projects/types.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/versions.rb b/app/models/projects/versions.rb index 31be3b3594b4..b271f8d6852c 100644 --- a/app/models/projects/versions.rb +++ b/app/models/projects/versions.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/projects/work_package_custom_fields.rb b/app/models/projects/work_package_custom_fields.rb index 9df42bbe268a..be08573c2ae8 100644 --- a/app/models/projects/work_package_custom_fields.rb +++ b/app/models/projects/work_package_custom_fields.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/actions.rb b/app/models/queries/actions.rb index c3eebe5e7518..8d6a951ef73b 100644 --- a/app/models/queries/actions.rb +++ b/app/models/queries/actions.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/actions/action_query.rb b/app/models/queries/actions/action_query.rb index d00b821998d6..8990574100fc 100644 --- a/app/models/queries/actions/action_query.rb +++ b/app/models/queries/actions/action_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/actions/filters/action_filter.rb b/app/models/queries/actions/filters/action_filter.rb index 970b7dfb9c46..d46d2c226b4e 100644 --- a/app/models/queries/actions/filters/action_filter.rb +++ b/app/models/queries/actions/filters/action_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/actions/filters/id_filter.rb b/app/models/queries/actions/filters/id_filter.rb index 37f658e87242..93079ff43bf0 100644 --- a/app/models/queries/actions/filters/id_filter.rb +++ b/app/models/queries/actions/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/base_query.rb b/app/models/queries/base_query.rb index bcb74ac05a3c..dc3e9df1d152 100644 --- a/app/models/queries/base_query.rb +++ b/app/models/queries/base_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities.rb b/app/models/queries/capabilities.rb index 68f63b79a05a..722b55cebaca 100644 --- a/app/models/queries/capabilities.rb +++ b/app/models/queries/capabilities.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/capability_query.rb b/app/models/queries/capabilities/capability_query.rb index deeefb56151f..e6ec2100c8fc 100644 --- a/app/models/queries/capabilities/capability_query.rb +++ b/app/models/queries/capabilities/capability_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/filters/action_filter.rb b/app/models/queries/capabilities/filters/action_filter.rb index 54d7e5329a54..39c2140c0208 100644 --- a/app/models/queries/capabilities/filters/action_filter.rb +++ b/app/models/queries/capabilities/filters/action_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/filters/capability_filter.rb b/app/models/queries/capabilities/filters/capability_filter.rb index ee8a200699c0..d979619ffdbf 100644 --- a/app/models/queries/capabilities/filters/capability_filter.rb +++ b/app/models/queries/capabilities/filters/capability_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/filters/context_filter.rb b/app/models/queries/capabilities/filters/context_filter.rb index 8b90562ac485..130e9eae3f63 100644 --- a/app/models/queries/capabilities/filters/context_filter.rb +++ b/app/models/queries/capabilities/filters/context_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/filters/id_filter.rb b/app/models/queries/capabilities/filters/id_filter.rb index c6a674f73bac..75334459c9ef 100644 --- a/app/models/queries/capabilities/filters/id_filter.rb +++ b/app/models/queries/capabilities/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/filters/principal_id_filter.rb b/app/models/queries/capabilities/filters/principal_id_filter.rb index b6737b0d2bfd..439032307f95 100644 --- a/app/models/queries/capabilities/filters/principal_id_filter.rb +++ b/app/models/queries/capabilities/filters/principal_id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/capabilities/orders/id_order.rb b/app/models/queries/capabilities/orders/id_order.rb index 419f346175ad..2d855e2cc603 100644 --- a/app/models/queries/capabilities/orders/id_order.rb +++ b/app/models/queries/capabilities/orders/id_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/days.rb b/app/models/queries/days.rb index 8da349e95f6c..6dfee67303a5 100644 --- a/app/models/queries/days.rb +++ b/app/models/queries/days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/days/day_query.rb b/app/models/queries/days/day_query.rb index c1a185c9b86b..38db47af4171 100644 --- a/app/models/queries/days/day_query.rb +++ b/app/models/queries/days/day_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/days/filters/dates_interval_filter.rb b/app/models/queries/days/filters/dates_interval_filter.rb index 303e79128a78..54ea13a022b9 100644 --- a/app/models/queries/days/filters/dates_interval_filter.rb +++ b/app/models/queries/days/filters/dates_interval_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/days/filters/day_filter.rb b/app/models/queries/days/filters/day_filter.rb index ed5593487f11..267f3d5cd609 100644 --- a/app/models/queries/days/filters/day_filter.rb +++ b/app/models/queries/days/filters/day_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/days/filters/working_filter.rb b/app/models/queries/days/filters/working_filter.rb index 22d69f3a2196..919f6e7b4303 100644 --- a/app/models/queries/days/filters/working_filter.rb +++ b/app/models/queries/days/filters/working_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters.rb b/app/models/queries/filters.rb index 4f5fbf38d980..293f2469f206 100644 --- a/app/models/queries/filters.rb +++ b/app/models/queries/filters.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/available_filters.rb b/app/models/queries/filters/available_filters.rb index 4e6fe76d8f8b..e8fd71589e14 100644 --- a/app/models/queries/filters/available_filters.rb +++ b/app/models/queries/filters/available_filters.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/base.rb b/app/models/queries/filters/base.rb index 633837aef96f..257419183373 100644 --- a/app/models/queries/filters/base.rb +++ b/app/models/queries/filters/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/empty_filter.rb b/app/models/queries/filters/empty_filter.rb index b6c509972aa5..8a7adaef918f 100644 --- a/app/models/queries/filters/empty_filter.rb +++ b/app/models/queries/filters/empty_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/me_value.rb b/app/models/queries/filters/me_value.rb index bc6492ab824e..bc31a371b118 100644 --- a/app/models/queries/filters/me_value.rb +++ b/app/models/queries/filters/me_value.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/not_existing_filter.rb b/app/models/queries/filters/not_existing_filter.rb index 43ea54e45f7b..8bacd5b3581d 100644 --- a/app/models/queries/filters/not_existing_filter.rb +++ b/app/models/queries/filters/not_existing_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/serializable.rb b/app/models/queries/filters/serializable.rb index df1e85354412..77e8acffbd8b 100644 --- a/app/models/queries/filters/serializable.rb +++ b/app/models/queries/filters/serializable.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/any_user_name_attribute_filter.rb b/app/models/queries/filters/shared/any_user_name_attribute_filter.rb index 02fc3ba6ec8c..498466a67f9c 100644 --- a/app/models/queries/filters/shared/any_user_name_attribute_filter.rb +++ b/app/models/queries/filters/shared/any_user_name_attribute_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/boolean_filter.rb b/app/models/queries/filters/shared/boolean_filter.rb index 6ba3c3e42438..e2788fd16881 100644 --- a/app/models/queries/filters/shared/boolean_filter.rb +++ b/app/models/queries/filters/shared/boolean_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/custom_field_filter.rb b/app/models/queries/filters/shared/custom_field_filter.rb index 92f657747289..1e3cea7c7d58 100644 --- a/app/models/queries/filters/shared/custom_field_filter.rb +++ b/app/models/queries/filters/shared/custom_field_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/custom_fields/base.rb b/app/models/queries/filters/shared/custom_fields/base.rb index 3128557f134a..1a6bc559cf71 100644 --- a/app/models/queries/filters/shared/custom_fields/base.rb +++ b/app/models/queries/filters/shared/custom_fields/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/custom_fields/bool.rb b/app/models/queries/filters/shared/custom_fields/bool.rb index 78ee68e955f4..f8ecd690cd16 100644 --- a/app/models/queries/filters/shared/custom_fields/bool.rb +++ b/app/models/queries/filters/shared/custom_fields/bool.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/custom_fields/list_optional.rb b/app/models/queries/filters/shared/custom_fields/list_optional.rb index da8e2b8be56b..9cd7176678b7 100644 --- a/app/models/queries/filters/shared/custom_fields/list_optional.rb +++ b/app/models/queries/filters/shared/custom_fields/list_optional.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/custom_fields/user.rb b/app/models/queries/filters/shared/custom_fields/user.rb index a928b051ea49..af6b480ce0ce 100644 --- a/app/models/queries/filters/shared/custom_fields/user.rb +++ b/app/models/queries/filters/shared/custom_fields/user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/group_filter.rb b/app/models/queries/filters/shared/group_filter.rb index 5356e842ddb5..f7c3401c58eb 100644 --- a/app/models/queries/filters/shared/group_filter.rb +++ b/app/models/queries/filters/shared/group_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/me_value_filter.rb b/app/models/queries/filters/shared/me_value_filter.rb index 4ed3200ce187..8f64be629672 100644 --- a/app/models/queries/filters/shared/me_value_filter.rb +++ b/app/models/queries/filters/shared/me_value_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/parsed_filter.rb b/app/models/queries/filters/shared/parsed_filter.rb index afa913405dd5..f2de8c896b70 100644 --- a/app/models/queries/filters/shared/parsed_filter.rb +++ b/app/models/queries/filters/shared/parsed_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/project_filter/optional.rb b/app/models/queries/filters/shared/project_filter/optional.rb index 670e39b9679a..dcc59d209527 100644 --- a/app/models/queries/filters/shared/project_filter/optional.rb +++ b/app/models/queries/filters/shared/project_filter/optional.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/project_filter/required.rb b/app/models/queries/filters/shared/project_filter/required.rb index 3fc882f7208d..12682a6a507f 100644 --- a/app/models/queries/filters/shared/project_filter/required.rb +++ b/app/models/queries/filters/shared/project_filter/required.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/user_blocked_filter.rb b/app/models/queries/filters/shared/user_blocked_filter.rb index e073adcd96d9..98597375ff18 100644 --- a/app/models/queries/filters/shared/user_blocked_filter.rb +++ b/app/models/queries/filters/shared/user_blocked_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/user_name_filter.rb b/app/models/queries/filters/shared/user_name_filter.rb index 74a3f976512f..2de87015a130 100644 --- a/app/models/queries/filters/shared/user_name_filter.rb +++ b/app/models/queries/filters/shared/user_name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/shared/user_status_filter.rb b/app/models/queries/filters/shared/user_status_filter.rb index 1ef5664c7380..84b5427f267f 100644 --- a/app/models/queries/filters/shared/user_status_filter.rb +++ b/app/models/queries/filters/shared/user_status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies.rb b/app/models/queries/filters/strategies.rb index 35b58fda706a..0e3df80bf357 100644 --- a/app/models/queries/filters/strategies.rb +++ b/app/models/queries/filters/strategies.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/base_strategy.rb b/app/models/queries/filters/strategies/base_strategy.rb index 5782ebe1fa8c..a877dd5247d8 100644 --- a/app/models/queries/filters/strategies/base_strategy.rb +++ b/app/models/queries/filters/strategies/base_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/boolean_list.rb b/app/models/queries/filters/strategies/boolean_list.rb index f9fba17b42ad..133107415931 100644 --- a/app/models/queries/filters/strategies/boolean_list.rb +++ b/app/models/queries/filters/strategies/boolean_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/boolean_list_strict.rb b/app/models/queries/filters/strategies/boolean_list_strict.rb index f3d093c63a99..cdbd2da4beb5 100644 --- a/app/models/queries/filters/strategies/boolean_list_strict.rb +++ b/app/models/queries/filters/strategies/boolean_list_strict.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/cf_float.rb b/app/models/queries/filters/strategies/cf_float.rb index c29a3d13e5ee..a35be01a72ba 100644 --- a/app/models/queries/filters/strategies/cf_float.rb +++ b/app/models/queries/filters/strategies/cf_float.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/cf_integer.rb b/app/models/queries/filters/strategies/cf_integer.rb index dae02f668f2a..8bd94b3e5e05 100644 --- a/app/models/queries/filters/strategies/cf_integer.rb +++ b/app/models/queries/filters/strategies/cf_integer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/cf_list_optional.rb b/app/models/queries/filters/strategies/cf_list_optional.rb index f6c5e4e1ca3b..4df6beee392c 100644 --- a/app/models/queries/filters/strategies/cf_list_optional.rb +++ b/app/models/queries/filters/strategies/cf_list_optional.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/cf_numeric.rb b/app/models/queries/filters/strategies/cf_numeric.rb index 818dfab9b6e2..dd23c119a003 100644 --- a/app/models/queries/filters/strategies/cf_numeric.rb +++ b/app/models/queries/filters/strategies/cf_numeric.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/date.rb b/app/models/queries/filters/strategies/date.rb index 422b26946e82..afa7b660a866 100644 --- a/app/models/queries/filters/strategies/date.rb +++ b/app/models/queries/filters/strategies/date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/date_interval.rb b/app/models/queries/filters/strategies/date_interval.rb index 307e9d1b7864..1087a9dafa26 100644 --- a/app/models/queries/filters/strategies/date_interval.rb +++ b/app/models/queries/filters/strategies/date_interval.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/date_time_past.rb b/app/models/queries/filters/strategies/date_time_past.rb index f7e666874baa..b06f0455183f 100644 --- a/app/models/queries/filters/strategies/date_time_past.rb +++ b/app/models/queries/filters/strategies/date_time_past.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/empty_value.rb b/app/models/queries/filters/strategies/empty_value.rb index 86f808a222e1..544d2f39b312 100644 --- a/app/models/queries/filters/strategies/empty_value.rb +++ b/app/models/queries/filters/strategies/empty_value.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/float.rb b/app/models/queries/filters/strategies/float.rb index 443cc9c203e1..ce4cefcf3cb9 100644 --- a/app/models/queries/filters/strategies/float.rb +++ b/app/models/queries/filters/strategies/float.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/float_numeric.rb b/app/models/queries/filters/strategies/float_numeric.rb index 3f638d9cd196..2058a58b254b 100644 --- a/app/models/queries/filters/strategies/float_numeric.rb +++ b/app/models/queries/filters/strategies/float_numeric.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/huge_list.rb b/app/models/queries/filters/strategies/huge_list.rb index 64407468a965..83ab9ac173b0 100644 --- a/app/models/queries/filters/strategies/huge_list.rb +++ b/app/models/queries/filters/strategies/huge_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/inexistent.rb b/app/models/queries/filters/strategies/inexistent.rb index 4e509cad7199..e3f9f9a55dbe 100644 --- a/app/models/queries/filters/strategies/inexistent.rb +++ b/app/models/queries/filters/strategies/inexistent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/integer.rb b/app/models/queries/filters/strategies/integer.rb index 629ad3441df0..663b33036634 100644 --- a/app/models/queries/filters/strategies/integer.rb +++ b/app/models/queries/filters/strategies/integer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/integer_list.rb b/app/models/queries/filters/strategies/integer_list.rb index f00103456a6b..21a52d42ea47 100644 --- a/app/models/queries/filters/strategies/integer_list.rb +++ b/app/models/queries/filters/strategies/integer_list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/integer_list_optional.rb b/app/models/queries/filters/strategies/integer_list_optional.rb index 708d03b25988..df55d434c6c3 100644 --- a/app/models/queries/filters/strategies/integer_list_optional.rb +++ b/app/models/queries/filters/strategies/integer_list_optional.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/integer_numeric.rb b/app/models/queries/filters/strategies/integer_numeric.rb index f66d926b70d5..224e47ca1baa 100644 --- a/app/models/queries/filters/strategies/integer_numeric.rb +++ b/app/models/queries/filters/strategies/integer_numeric.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/list.rb b/app/models/queries/filters/strategies/list.rb index e02720cdc174..6476b0984fe4 100644 --- a/app/models/queries/filters/strategies/list.rb +++ b/app/models/queries/filters/strategies/list.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/list_all.rb b/app/models/queries/filters/strategies/list_all.rb index 61da8689e67e..7b9c13a0173e 100644 --- a/app/models/queries/filters/strategies/list_all.rb +++ b/app/models/queries/filters/strategies/list_all.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/list_optional.rb b/app/models/queries/filters/strategies/list_optional.rb index 3e4f59d3c086..ff13c17f5c2f 100644 --- a/app/models/queries/filters/strategies/list_optional.rb +++ b/app/models/queries/filters/strategies/list_optional.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/numeric.rb b/app/models/queries/filters/strategies/numeric.rb index bf4814397f12..802c5f582327 100644 --- a/app/models/queries/filters/strategies/numeric.rb +++ b/app/models/queries/filters/strategies/numeric.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/relation.rb b/app/models/queries/filters/strategies/relation.rb index a17ea247cc80..236390d3294a 100644 --- a/app/models/queries/filters/strategies/relation.rb +++ b/app/models/queries/filters/strategies/relation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/search.rb b/app/models/queries/filters/strategies/search.rb index 7fb9a07970c7..a541a048ca21 100644 --- a/app/models/queries/filters/strategies/search.rb +++ b/app/models/queries/filters/strategies/search.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/string.rb b/app/models/queries/filters/strategies/string.rb index f5e063ec58d7..7998342d797d 100644 --- a/app/models/queries/filters/strategies/string.rb +++ b/app/models/queries/filters/strategies/string.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/text.rb b/app/models/queries/filters/strategies/text.rb index 057ab43c2d47..27fec37d84de 100644 --- a/app/models/queries/filters/strategies/text.rb +++ b/app/models/queries/filters/strategies/text.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/validations.rb b/app/models/queries/filters/strategies/validations.rb index 8c9623270fbc..bd17a263a057 100644 --- a/app/models/queries/filters/strategies/validations.rb +++ b/app/models/queries/filters/strategies/validations.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/strategies/work_packages/shared_with_user/list_optional.rb b/app/models/queries/filters/strategies/work_packages/shared_with_user/list_optional.rb index 1bae91005a19..93e69b4c28cf 100644 --- a/app/models/queries/filters/strategies/work_packages/shared_with_user/list_optional.rb +++ b/app/models/queries/filters/strategies/work_packages/shared_with_user/list_optional.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/filters/templated_value.rb b/app/models/queries/filters/templated_value.rb index fc17c3b62c74..648ad803c517 100644 --- a/app/models/queries/filters/templated_value.rb +++ b/app/models/queries/filters/templated_value.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/group_bys/available_group_bys.rb b/app/models/queries/group_bys/available_group_bys.rb index e933e61bd85b..93620f5a1878 100644 --- a/app/models/queries/group_bys/available_group_bys.rb +++ b/app/models/queries/group_bys/available_group_bys.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/group_bys/base.rb b/app/models/queries/group_bys/base.rb index b4038a4d07b2..5d4a3c3a8e52 100644 --- a/app/models/queries/group_bys/base.rb +++ b/app/models/queries/group_bys/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/group_bys/not_existing_group_by.rb b/app/models/queries/group_bys/not_existing_group_by.rb index cf2dffebfc67..3e9cd550333c 100644 --- a/app/models/queries/group_bys/not_existing_group_by.rb +++ b/app/models/queries/group_bys/not_existing_group_by.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/groups.rb b/app/models/queries/groups.rb index 85d7c789bf43..1e7069e80380 100644 --- a/app/models/queries/groups.rb +++ b/app/models/queries/groups.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/groups/group_query.rb b/app/models/queries/groups/group_query.rb index e691edfe4911..e94cf7e2c1b3 100644 --- a/app/models/queries/groups/group_query.rb +++ b/app/models/queries/groups/group_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/groups/orders/default_order.rb b/app/models/queries/groups/orders/default_order.rb index 6829895453d3..2a1863551054 100644 --- a/app/models/queries/groups/orders/default_order.rb +++ b/app/models/queries/groups/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/individual_principals/orders/group_order.rb b/app/models/queries/individual_principals/orders/group_order.rb index a6ab10f0c973..2b937c816a0a 100644 --- a/app/models/queries/individual_principals/orders/group_order.rb +++ b/app/models/queries/individual_principals/orders/group_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/individual_principals/orders/name_order.rb b/app/models/queries/individual_principals/orders/name_order.rb index 658d5ca59f0f..d175e5c8348e 100644 --- a/app/models/queries/individual_principals/orders/name_order.rb +++ b/app/models/queries/individual_principals/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members.rb b/app/models/queries/members.rb index e1b56bfe2c6e..cf00d8fd04fd 100644 --- a/app/models/queries/members.rb +++ b/app/models/queries/members.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/also_project_member_filter.rb b/app/models/queries/members/filters/also_project_member_filter.rb index 74b411f80a24..8f09811be277 100644 --- a/app/models/queries/members/filters/also_project_member_filter.rb +++ b/app/models/queries/members/filters/also_project_member_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/any_name_attribute_filter.rb b/app/models/queries/members/filters/any_name_attribute_filter.rb index 424705911164..ff278d33a809 100644 --- a/app/models/queries/members/filters/any_name_attribute_filter.rb +++ b/app/models/queries/members/filters/any_name_attribute_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/blocked_filter.rb b/app/models/queries/members/filters/blocked_filter.rb index f393a83ca905..ea71a3f97ad5 100644 --- a/app/models/queries/members/filters/blocked_filter.rb +++ b/app/models/queries/members/filters/blocked_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/created_at_filter.rb b/app/models/queries/members/filters/created_at_filter.rb index 17979bac4db3..44a71bcc7ee1 100644 --- a/app/models/queries/members/filters/created_at_filter.rb +++ b/app/models/queries/members/filters/created_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/entity_id_filter.rb b/app/models/queries/members/filters/entity_id_filter.rb index b5c39bc9e463..e5c60271c093 100644 --- a/app/models/queries/members/filters/entity_id_filter.rb +++ b/app/models/queries/members/filters/entity_id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/entity_type_filter.rb b/app/models/queries/members/filters/entity_type_filter.rb index 60f3be86a865..3c539db0c723 100644 --- a/app/models/queries/members/filters/entity_type_filter.rb +++ b/app/models/queries/members/filters/entity_type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/group_filter.rb b/app/models/queries/members/filters/group_filter.rb index f9377152c73a..a62f825bde8e 100644 --- a/app/models/queries/members/filters/group_filter.rb +++ b/app/models/queries/members/filters/group_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/member_filter.rb b/app/models/queries/members/filters/member_filter.rb index a977b19837f2..f4edabb61c0d 100644 --- a/app/models/queries/members/filters/member_filter.rb +++ b/app/models/queries/members/filters/member_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/name_filter.rb b/app/models/queries/members/filters/name_filter.rb index b07c7b3fbffa..300a954d62a8 100644 --- a/app/models/queries/members/filters/name_filter.rb +++ b/app/models/queries/members/filters/name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/only_project_member_filter.rb b/app/models/queries/members/filters/only_project_member_filter.rb index 5064881d677a..a7842f66c620 100644 --- a/app/models/queries/members/filters/only_project_member_filter.rb +++ b/app/models/queries/members/filters/only_project_member_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/principal_filter.rb b/app/models/queries/members/filters/principal_filter.rb index ac5c8bc912c9..e5ab2edcd0db 100644 --- a/app/models/queries/members/filters/principal_filter.rb +++ b/app/models/queries/members/filters/principal_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/principal_type_filter.rb b/app/models/queries/members/filters/principal_type_filter.rb index 68a72c4e614e..cf7e62ab51de 100644 --- a/app/models/queries/members/filters/principal_type_filter.rb +++ b/app/models/queries/members/filters/principal_type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/project_filter.rb b/app/models/queries/members/filters/project_filter.rb index 41a0e3e0d3bf..80f867b75a9b 100644 --- a/app/models/queries/members/filters/project_filter.rb +++ b/app/models/queries/members/filters/project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/role_filter.rb b/app/models/queries/members/filters/role_filter.rb index f25ea2442960..0629760e8d0e 100644 --- a/app/models/queries/members/filters/role_filter.rb +++ b/app/models/queries/members/filters/role_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/status_filter.rb b/app/models/queries/members/filters/status_filter.rb index 7a7b2dec0e5d..4245996fb9e0 100644 --- a/app/models/queries/members/filters/status_filter.rb +++ b/app/models/queries/members/filters/status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/filters/updated_at_filter.rb b/app/models/queries/members/filters/updated_at_filter.rb index 9e952b95982a..639d4ccb5019 100644 --- a/app/models/queries/members/filters/updated_at_filter.rb +++ b/app/models/queries/members/filters/updated_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/member_query.rb b/app/models/queries/members/member_query.rb index 2dd2b1e6ff8c..94fb72a81927 100644 --- a/app/models/queries/members/member_query.rb +++ b/app/models/queries/members/member_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/non_inherited_member_query.rb b/app/models/queries/members/non_inherited_member_query.rb index 87349f0d1f85..b67461815ffd 100644 --- a/app/models/queries/members/non_inherited_member_query.rb +++ b/app/models/queries/members/non_inherited_member_query.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/orders/default_order.rb b/app/models/queries/members/orders/default_order.rb index 7694ba9a4119..163a2cb1d524 100644 --- a/app/models/queries/members/orders/default_order.rb +++ b/app/models/queries/members/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/orders/email_order.rb b/app/models/queries/members/orders/email_order.rb index 506b8fab12c8..6a94c8c32bc9 100644 --- a/app/models/queries/members/orders/email_order.rb +++ b/app/models/queries/members/orders/email_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/orders/name_order.rb b/app/models/queries/members/orders/name_order.rb index 21c71844dd30..e292a420a560 100644 --- a/app/models/queries/members/orders/name_order.rb +++ b/app/models/queries/members/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/members/orders/status_order.rb b/app/models/queries/members/orders/status_order.rb index 94cc431f8f3f..739baac86fa9 100644 --- a/app/models/queries/members/orders/status_order.rb +++ b/app/models/queries/members/orders/status_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/news.rb b/app/models/queries/news.rb index c726cb0a0517..a349d1030e3b 100644 --- a/app/models/queries/news.rb +++ b/app/models/queries/news.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/news/filters/news_filter.rb b/app/models/queries/news/filters/news_filter.rb index 30c41d133647..0e243021067d 100644 --- a/app/models/queries/news/filters/news_filter.rb +++ b/app/models/queries/news/filters/news_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/news/filters/project_filter.rb b/app/models/queries/news/filters/project_filter.rb index b44978d13c10..3ab6091cc083 100644 --- a/app/models/queries/news/filters/project_filter.rb +++ b/app/models/queries/news/filters/project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/news/news_query.rb b/app/models/queries/news/news_query.rb index b9e84cb5bd48..feb4ae749d42 100644 --- a/app/models/queries/news/news_query.rb +++ b/app/models/queries/news/news_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/news/orders/default_order.rb b/app/models/queries/news/orders/default_order.rb index f6dd79beb654..beb0ffe9840b 100644 --- a/app/models/queries/news/orders/default_order.rb +++ b/app/models/queries/news/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/non_working_days.rb b/app/models/queries/non_working_days.rb index ab218f4ee171..a26bfdb397f6 100644 --- a/app/models/queries/non_working_days.rb +++ b/app/models/queries/non_working_days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/non_working_days/filters/dates_interval_filter.rb b/app/models/queries/non_working_days/filters/dates_interval_filter.rb index dff733da37ac..a473914cce1d 100644 --- a/app/models/queries/non_working_days/filters/dates_interval_filter.rb +++ b/app/models/queries/non_working_days/filters/dates_interval_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/non_working_days/filters/non_working_day_filter.rb b/app/models/queries/non_working_days/filters/non_working_day_filter.rb index 3e6df852872a..e230031a4116 100644 --- a/app/models/queries/non_working_days/filters/non_working_day_filter.rb +++ b/app/models/queries/non_working_days/filters/non_working_day_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/non_working_days/non_working_day_query.rb b/app/models/queries/non_working_days/non_working_day_query.rb index ba9378e856b8..d1b9eb9fe76e 100644 --- a/app/models/queries/non_working_days/non_working_day_query.rb +++ b/app/models/queries/non_working_days/non_working_day_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications.rb b/app/models/queries/notifications.rb index 5a94bff3b571..538d3987194c 100644 --- a/app/models/queries/notifications.rb +++ b/app/models/queries/notifications.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/models/queries/notifications/filters/id_filter.rb b/app/models/queries/notifications/filters/id_filter.rb index b5b9934c92a5..d85b9fac38be 100644 --- a/app/models/queries/notifications/filters/id_filter.rb +++ b/app/models/queries/notifications/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/filters/notification_filter.rb b/app/models/queries/notifications/filters/notification_filter.rb index 1240eb00fe69..bd0d6d04a953 100644 --- a/app/models/queries/notifications/filters/notification_filter.rb +++ b/app/models/queries/notifications/filters/notification_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/filters/project_filter.rb b/app/models/queries/notifications/filters/project_filter.rb index 22792161b882..c1f1a844aacf 100644 --- a/app/models/queries/notifications/filters/project_filter.rb +++ b/app/models/queries/notifications/filters/project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/filters/read_ian_filter.rb b/app/models/queries/notifications/filters/read_ian_filter.rb index 5241eed59ee4..35b1ed496085 100644 --- a/app/models/queries/notifications/filters/read_ian_filter.rb +++ b/app/models/queries/notifications/filters/read_ian_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/filters/reason_filter.rb b/app/models/queries/notifications/filters/reason_filter.rb index 3bfb23c3d16e..fe76399187c6 100644 --- a/app/models/queries/notifications/filters/reason_filter.rb +++ b/app/models/queries/notifications/filters/reason_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/filters/resource_id_filter.rb b/app/models/queries/notifications/filters/resource_id_filter.rb index 41d28ed554da..10ef33adab4c 100644 --- a/app/models/queries/notifications/filters/resource_id_filter.rb +++ b/app/models/queries/notifications/filters/resource_id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/filters/resource_type_filter.rb b/app/models/queries/notifications/filters/resource_type_filter.rb index 03fe4017b868..4974982cb35a 100644 --- a/app/models/queries/notifications/filters/resource_type_filter.rb +++ b/app/models/queries/notifications/filters/resource_type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/group_bys/group_by_project.rb b/app/models/queries/notifications/group_bys/group_by_project.rb index 19eaba9f1857..e2b583463586 100644 --- a/app/models/queries/notifications/group_bys/group_by_project.rb +++ b/app/models/queries/notifications/group_bys/group_by_project.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/group_bys/group_by_reason.rb b/app/models/queries/notifications/group_bys/group_by_reason.rb index be48f9f11bd8..2c51e01fb3d7 100644 --- a/app/models/queries/notifications/group_bys/group_by_reason.rb +++ b/app/models/queries/notifications/group_bys/group_by_reason.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/notification_query.rb b/app/models/queries/notifications/notification_query.rb index 2fd7587a4b97..2bb91ec02b68 100644 --- a/app/models/queries/notifications/notification_query.rb +++ b/app/models/queries/notifications/notification_query.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/models/queries/notifications/orders/default_order.rb b/app/models/queries/notifications/orders/default_order.rb index 73babdbcc28e..c4ed27a84111 100644 --- a/app/models/queries/notifications/orders/default_order.rb +++ b/app/models/queries/notifications/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/orders/project_order.rb b/app/models/queries/notifications/orders/project_order.rb index 460bd12182a7..31cc82702d51 100644 --- a/app/models/queries/notifications/orders/project_order.rb +++ b/app/models/queries/notifications/orders/project_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/orders/read_ian_order.rb b/app/models/queries/notifications/orders/read_ian_order.rb index a498a695a00d..6968b70a39de 100644 --- a/app/models/queries/notifications/orders/read_ian_order.rb +++ b/app/models/queries/notifications/orders/read_ian_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/notifications/orders/reason_order.rb b/app/models/queries/notifications/orders/reason_order.rb index 8f84a2ab7c67..ddfe50fa6f3c 100644 --- a/app/models/queries/notifications/orders/reason_order.rb +++ b/app/models/queries/notifications/orders/reason_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators.rb b/app/models/queries/operators.rb index 6a125c2fcc59..7581f53237b3 100644 --- a/app/models/queries/operators.rb +++ b/app/models/queries/operators.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/ago.rb b/app/models/queries/operators/ago.rb index 5101a2a4cefb..0ad737920c50 100644 --- a/app/models/queries/operators/ago.rb +++ b/app/models/queries/operators/ago.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/all.rb b/app/models/queries/operators/all.rb index 2f56ac12f101..60b288d236e0 100644 --- a/app/models/queries/operators/all.rb +++ b/app/models/queries/operators/all.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/all_and_non_blank.rb b/app/models/queries/operators/all_and_non_blank.rb index 157e17739abf..46b2183427cc 100644 --- a/app/models/queries/operators/all_and_non_blank.rb +++ b/app/models/queries/operators/all_and_non_blank.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/base.rb b/app/models/queries/operators/base.rb index eb638992ab2d..59a7487a5d44 100644 --- a/app/models/queries/operators/base.rb +++ b/app/models/queries/operators/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/between_date.rb b/app/models/queries/operators/between_date.rb index 9e9256db3da5..0f9351668851 100644 --- a/app/models/queries/operators/between_date.rb +++ b/app/models/queries/operators/between_date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/between_date_time.rb b/app/models/queries/operators/between_date_time.rb index 8fe2a297124c..62ff8b47401e 100644 --- a/app/models/queries/operators/between_date_time.rb +++ b/app/models/queries/operators/between_date_time.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/blocked.rb b/app/models/queries/operators/blocked.rb index e3f0f3f1194e..70bc12324766 100644 --- a/app/models/queries/operators/blocked.rb +++ b/app/models/queries/operators/blocked.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/blocks.rb b/app/models/queries/operators/blocks.rb index 9939cba1b612..0312f3e7f479 100644 --- a/app/models/queries/operators/blocks.rb +++ b/app/models/queries/operators/blocks.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/boolean_equals.rb b/app/models/queries/operators/boolean_equals.rb index 0f609a0069e9..bb04b31eb26d 100644 --- a/app/models/queries/operators/boolean_equals.rb +++ b/app/models/queries/operators/boolean_equals.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/boolean_equals_strict.rb b/app/models/queries/operators/boolean_equals_strict.rb index c8c88b5ba45e..75d64407c5b6 100644 --- a/app/models/queries/operators/boolean_equals_strict.rb +++ b/app/models/queries/operators/boolean_equals_strict.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/boolean_not_equals.rb b/app/models/queries/operators/boolean_not_equals.rb index 780118c69696..11f693d80f09 100644 --- a/app/models/queries/operators/boolean_not_equals.rb +++ b/app/models/queries/operators/boolean_not_equals.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/casted_greater_or_equal.rb b/app/models/queries/operators/casted_greater_or_equal.rb index f3998780db41..a365f5cc62c7 100644 --- a/app/models/queries/operators/casted_greater_or_equal.rb +++ b/app/models/queries/operators/casted_greater_or_equal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/casted_less_or_equal.rb b/app/models/queries/operators/casted_less_or_equal.rb index bc23fd9a145e..75c83abd818a 100644 --- a/app/models/queries/operators/casted_less_or_equal.rb +++ b/app/models/queries/operators/casted_less_or_equal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/child.rb b/app/models/queries/operators/child.rb index 522edb7164b3..8bb8bd205179 100644 --- a/app/models/queries/operators/child.rb +++ b/app/models/queries/operators/child.rb @@ -1,6 +1,6 @@ # --copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/children.rb b/app/models/queries/operators/children.rb index 5df6761409ab..a87dc584535a 100644 --- a/app/models/queries/operators/children.rb +++ b/app/models/queries/operators/children.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/closed_work_packages.rb b/app/models/queries/operators/closed_work_packages.rb index 7f2a05c2dbf9..050941d713b8 100644 --- a/app/models/queries/operators/closed_work_packages.rb +++ b/app/models/queries/operators/closed_work_packages.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/concerns/contains_all_values.rb b/app/models/queries/operators/concerns/contains_all_values.rb index d766baa7443c..42913b8f488c 100644 --- a/app/models/queries/operators/concerns/contains_all_values.rb +++ b/app/models/queries/operators/concerns/contains_all_values.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/contains.rb b/app/models/queries/operators/contains.rb index a27a8ca65a08..907df3ad4be9 100644 --- a/app/models/queries/operators/contains.rb +++ b/app/models/queries/operators/contains.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/custom_fields/equals_all.rb b/app/models/queries/operators/custom_fields/equals_all.rb index 507dc0585dc8..ccaeb0b0b8af 100644 --- a/app/models/queries/operators/custom_fields/equals_all.rb +++ b/app/models/queries/operators/custom_fields/equals_all.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/custom_fields/not_equals_all.rb b/app/models/queries/operators/custom_fields/not_equals_all.rb index 159fda5c7536..a3cbf8d87420 100644 --- a/app/models/queries/operators/custom_fields/not_equals_all.rb +++ b/app/models/queries/operators/custom_fields/not_equals_all.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/date_range_clauses.rb b/app/models/queries/operators/date_range_clauses.rb index 158c3a185529..3b41a14105f3 100644 --- a/app/models/queries/operators/date_range_clauses.rb +++ b/app/models/queries/operators/date_range_clauses.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/datetime_range_clauses.rb b/app/models/queries/operators/datetime_range_clauses.rb index f3326c0f8f53..c40c33cc48ed 100644 --- a/app/models/queries/operators/datetime_range_clauses.rb +++ b/app/models/queries/operators/datetime_range_clauses.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/duplicated.rb b/app/models/queries/operators/duplicated.rb index 7fd0d6058a5f..c7e04a47e0e9 100644 --- a/app/models/queries/operators/duplicated.rb +++ b/app/models/queries/operators/duplicated.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/duplicates.rb b/app/models/queries/operators/duplicates.rb index 45025a1b0ebd..d0c01e067791 100644 --- a/app/models/queries/operators/duplicates.rb +++ b/app/models/queries/operators/duplicates.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/equals.rb b/app/models/queries/operators/equals.rb index 38555acb54b7..cb5550f6eec8 100644 --- a/app/models/queries/operators/equals.rb +++ b/app/models/queries/operators/equals.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/equals_all.rb b/app/models/queries/operators/equals_all.rb index 31c4b8fe1d1b..bfdcd670417a 100644 --- a/app/models/queries/operators/equals_all.rb +++ b/app/models/queries/operators/equals_all.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/equals_or.rb b/app/models/queries/operators/equals_or.rb index dae581198716..ad036044b033 100644 --- a/app/models/queries/operators/equals_or.rb +++ b/app/models/queries/operators/equals_or.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/everywhere.rb b/app/models/queries/operators/everywhere.rb index 52152bde4315..2c1358160f41 100644 --- a/app/models/queries/operators/everywhere.rb +++ b/app/models/queries/operators/everywhere.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/follows.rb b/app/models/queries/operators/follows.rb index 53cb5c6f2072..5d913afdac03 100644 --- a/app/models/queries/operators/follows.rb +++ b/app/models/queries/operators/follows.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/greater_or_equal.rb b/app/models/queries/operators/greater_or_equal.rb index 075eb190b34c..22818d45001e 100644 --- a/app/models/queries/operators/greater_or_equal.rb +++ b/app/models/queries/operators/greater_or_equal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/in.rb b/app/models/queries/operators/in.rb index bf27ff0662d8..3151bf37c8e9 100644 --- a/app/models/queries/operators/in.rb +++ b/app/models/queries/operators/in.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/in_less_than.rb b/app/models/queries/operators/in_less_than.rb index b9ee542a48d2..b803f54fb84b 100644 --- a/app/models/queries/operators/in_less_than.rb +++ b/app/models/queries/operators/in_less_than.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/in_more_than.rb b/app/models/queries/operators/in_more_than.rb index 3b789f52801d..22717dc20672 100644 --- a/app/models/queries/operators/in_more_than.rb +++ b/app/models/queries/operators/in_more_than.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/includes.rb b/app/models/queries/operators/includes.rb index fa073d90e4bf..fad03d261b3f 100644 --- a/app/models/queries/operators/includes.rb +++ b/app/models/queries/operators/includes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/less_or_equal.rb b/app/models/queries/operators/less_or_equal.rb index f90656a05192..12c4a52aa86d 100644 --- a/app/models/queries/operators/less_or_equal.rb +++ b/app/models/queries/operators/less_or_equal.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/less_than_ago.rb b/app/models/queries/operators/less_than_ago.rb index 44335cd8ac83..c27619714259 100644 --- a/app/models/queries/operators/less_than_ago.rb +++ b/app/models/queries/operators/less_than_ago.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/more_than_ago.rb b/app/models/queries/operators/more_than_ago.rb index b157e8fc5f43..bd8f836de768 100644 --- a/app/models/queries/operators/more_than_ago.rb +++ b/app/models/queries/operators/more_than_ago.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/none.rb b/app/models/queries/operators/none.rb index 6021c430cfee..6ac7a1d2d90b 100644 --- a/app/models/queries/operators/none.rb +++ b/app/models/queries/operators/none.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/none_or_blank.rb b/app/models/queries/operators/none_or_blank.rb index f89b93aeab73..09b1e929ee1d 100644 --- a/app/models/queries/operators/none_or_blank.rb +++ b/app/models/queries/operators/none_or_blank.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/not_contains.rb b/app/models/queries/operators/not_contains.rb index 9635ab9427ca..09c399ea60aa 100644 --- a/app/models/queries/operators/not_contains.rb +++ b/app/models/queries/operators/not_contains.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/not_equals.rb b/app/models/queries/operators/not_equals.rb index 37748bdec1f0..4e2387a0cdfa 100644 --- a/app/models/queries/operators/not_equals.rb +++ b/app/models/queries/operators/not_equals.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/on_date.rb b/app/models/queries/operators/on_date.rb index e8479e7f9e7e..4987c3dfa205 100644 --- a/app/models/queries/operators/on_date.rb +++ b/app/models/queries/operators/on_date.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/on_date_time.rb b/app/models/queries/operators/on_date_time.rb index 3dca0ea7539f..b4f034298e31 100644 --- a/app/models/queries/operators/on_date_time.rb +++ b/app/models/queries/operators/on_date_time.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/open_work_packages.rb b/app/models/queries/operators/open_work_packages.rb index 4fea1ddc95c8..f197cb037ce0 100644 --- a/app/models/queries/operators/open_work_packages.rb +++ b/app/models/queries/operators/open_work_packages.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/ordered_work_packages.rb b/app/models/queries/operators/ordered_work_packages.rb index 211a84ccf75d..58344e7ad3f5 100644 --- a/app/models/queries/operators/ordered_work_packages.rb +++ b/app/models/queries/operators/ordered_work_packages.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/parent.rb b/app/models/queries/operators/parent.rb index a16b694a70c6..e76ea68f5bde 100644 --- a/app/models/queries/operators/parent.rb +++ b/app/models/queries/operators/parent.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/part_of.rb b/app/models/queries/operators/part_of.rb index 768dc7c0ce51..c321d499c070 100644 --- a/app/models/queries/operators/part_of.rb +++ b/app/models/queries/operators/part_of.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/precedes.rb b/app/models/queries/operators/precedes.rb index ad2e16516743..6a5f59ad70f9 100644 --- a/app/models/queries/operators/precedes.rb +++ b/app/models/queries/operators/precedes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/relates.rb b/app/models/queries/operators/relates.rb index 4aee30551e1a..391fef4e43a0 100644 --- a/app/models/queries/operators/relates.rb +++ b/app/models/queries/operators/relates.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/required.rb b/app/models/queries/operators/required.rb index 2e5f06992fbd..c514322478bf 100644 --- a/app/models/queries/operators/required.rb +++ b/app/models/queries/operators/required.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/requires.rb b/app/models/queries/operators/requires.rb index 6ae66bb2f443..0cb203730b85 100644 --- a/app/models/queries/operators/requires.rb +++ b/app/models/queries/operators/requires.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/this_week.rb b/app/models/queries/operators/this_week.rb index b8dbcae3cc83..1d5af0993f5c 100644 --- a/app/models/queries/operators/this_week.rb +++ b/app/models/queries/operators/this_week.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/today.rb b/app/models/queries/operators/today.rb index ebed001804c1..cdb67928a57b 100644 --- a/app/models/queries/operators/today.rb +++ b/app/models/queries/operators/today.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/operators/work_packages/shared_with_user/any.rb b/app/models/queries/operators/work_packages/shared_with_user/any.rb index 0d0e06c76cf9..f576765836e9 100644 --- a/app/models/queries/operators/work_packages/shared_with_user/any.rb +++ b/app/models/queries/operators/work_packages/shared_with_user/any.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/orders/available_orders.rb b/app/models/queries/orders/available_orders.rb index 9528a533dbb8..acd1963a94c1 100644 --- a/app/models/queries/orders/available_orders.rb +++ b/app/models/queries/orders/available_orders.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/orders/base.rb b/app/models/queries/orders/base.rb index 53f3f4b69f46..9cda8338ab39 100644 --- a/app/models/queries/orders/base.rb +++ b/app/models/queries/orders/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/orders/not_existing_order.rb b/app/models/queries/orders/not_existing_order.rb index 07bba0c6917e..c39d2c5d496b 100644 --- a/app/models/queries/orders/not_existing_order.rb +++ b/app/models/queries/orders/not_existing_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users.rb b/app/models/queries/placeholder_users.rb index d17dbfc0e06f..c2dabcf62664 100644 --- a/app/models/queries/placeholder_users.rb +++ b/app/models/queries/placeholder_users.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/models/queries/placeholder_users/filters/any_name_attribute_filter.rb b/app/models/queries/placeholder_users/filters/any_name_attribute_filter.rb index ba4ee046e694..347d35bdb809 100644 --- a/app/models/queries/placeholder_users/filters/any_name_attribute_filter.rb +++ b/app/models/queries/placeholder_users/filters/any_name_attribute_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/filters/group_filter.rb b/app/models/queries/placeholder_users/filters/group_filter.rb index 7624aede19d2..2b897c0cf8b9 100644 --- a/app/models/queries/placeholder_users/filters/group_filter.rb +++ b/app/models/queries/placeholder_users/filters/group_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/filters/name_filter.rb b/app/models/queries/placeholder_users/filters/name_filter.rb index 7bbd92357646..e674d4a05cc4 100644 --- a/app/models/queries/placeholder_users/filters/name_filter.rb +++ b/app/models/queries/placeholder_users/filters/name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/filters/placeholder_user_filter.rb b/app/models/queries/placeholder_users/filters/placeholder_user_filter.rb index 5a5af308c014..237f5befff97 100644 --- a/app/models/queries/placeholder_users/filters/placeholder_user_filter.rb +++ b/app/models/queries/placeholder_users/filters/placeholder_user_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/filters/status_filter.rb b/app/models/queries/placeholder_users/filters/status_filter.rb index 72d5f5b554f7..eab7994cbe16 100644 --- a/app/models/queries/placeholder_users/filters/status_filter.rb +++ b/app/models/queries/placeholder_users/filters/status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/orders/default_order.rb b/app/models/queries/placeholder_users/orders/default_order.rb index b0715e84e008..a56743a21d04 100644 --- a/app/models/queries/placeholder_users/orders/default_order.rb +++ b/app/models/queries/placeholder_users/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/orders/group_order.rb b/app/models/queries/placeholder_users/orders/group_order.rb index aa3f5543d6e6..bd3b281848dc 100644 --- a/app/models/queries/placeholder_users/orders/group_order.rb +++ b/app/models/queries/placeholder_users/orders/group_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/orders/name_order.rb b/app/models/queries/placeholder_users/orders/name_order.rb index caa0170e5c97..ba7ba8cbb021 100644 --- a/app/models/queries/placeholder_users/orders/name_order.rb +++ b/app/models/queries/placeholder_users/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/placeholder_users/placeholder_user_query.rb b/app/models/queries/placeholder_users/placeholder_user_query.rb index d167ad155789..ee592f7b7d9f 100644 --- a/app/models/queries/placeholder_users/placeholder_user_query.rb +++ b/app/models/queries/placeholder_users/placeholder_user_query.rb @@ -1,12 +1,12 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: -# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program is free software; you can redistribute it and/or diff --git a/app/models/queries/principals.rb b/app/models/queries/principals.rb index 79f415112b90..378f53019ef4 100644 --- a/app/models/queries/principals.rb +++ b/app/models/queries/principals.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/access_to_anything_in_project_filter.rb b/app/models/queries/principals/filters/access_to_anything_in_project_filter.rb index 66c3c3cfa276..3cc25a6612a2 100644 --- a/app/models/queries/principals/filters/access_to_anything_in_project_filter.rb +++ b/app/models/queries/principals/filters/access_to_anything_in_project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/any_name_attribute_filter.rb b/app/models/queries/principals/filters/any_name_attribute_filter.rb index cb534f7f97df..9e6c470666be 100644 --- a/app/models/queries/principals/filters/any_name_attribute_filter.rb +++ b/app/models/queries/principals/filters/any_name_attribute_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/id_filter.rb b/app/models/queries/principals/filters/id_filter.rb index 51005c7198ac..0c8267ecce0d 100644 --- a/app/models/queries/principals/filters/id_filter.rb +++ b/app/models/queries/principals/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/member_filter.rb b/app/models/queries/principals/filters/member_filter.rb index bda7af54f09c..f3391e4d1c9d 100644 --- a/app/models/queries/principals/filters/member_filter.rb +++ b/app/models/queries/principals/filters/member_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/mentionable_on_work_package_filter.rb b/app/models/queries/principals/filters/mentionable_on_work_package_filter.rb index 11bde23035ee..2b1bab0a0462 100644 --- a/app/models/queries/principals/filters/mentionable_on_work_package_filter.rb +++ b/app/models/queries/principals/filters/mentionable_on_work_package_filter.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/name_filter.rb b/app/models/queries/principals/filters/name_filter.rb index 8e5fb6a54de6..ab80395656ea 100644 --- a/app/models/queries/principals/filters/name_filter.rb +++ b/app/models/queries/principals/filters/name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/principal_filter.rb b/app/models/queries/principals/filters/principal_filter.rb index 340943324ff9..4cef141f83ea 100644 --- a/app/models/queries/principals/filters/principal_filter.rb +++ b/app/models/queries/principals/filters/principal_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/status_filter.rb b/app/models/queries/principals/filters/status_filter.rb index 3372d2f0529d..c0cfccb93a5c 100644 --- a/app/models/queries/principals/filters/status_filter.rb +++ b/app/models/queries/principals/filters/status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/type_filter.rb b/app/models/queries/principals/filters/type_filter.rb index 7e75536e4baa..7b6dd0970e80 100644 --- a/app/models/queries/principals/filters/type_filter.rb +++ b/app/models/queries/principals/filters/type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/filters/typeahead_filter.rb b/app/models/queries/principals/filters/typeahead_filter.rb index a4cf453dbbb5..374f3a5ca110 100644 --- a/app/models/queries/principals/filters/typeahead_filter.rb +++ b/app/models/queries/principals/filters/typeahead_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/orders/name_order.rb b/app/models/queries/principals/orders/name_order.rb index 3ac301107375..a8706bb15fac 100644 --- a/app/models/queries/principals/orders/name_order.rb +++ b/app/models/queries/principals/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/principals/principal_query.rb b/app/models/queries/principals/principal_query.rb index d97c21c9cfef..0d561949629b 100644 --- a/app/models/queries/principals/principal_query.rb +++ b/app/models/queries/principals/principal_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects.rb b/app/models/queries/projects.rb index 8b0bf9296871..f1dc49b0b1ca 100644 --- a/app/models/queries/projects.rb +++ b/app/models/queries/projects.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/factory.rb b/app/models/queries/projects/factory.rb index b4ead080663a..854d8c049382 100644 --- a/app/models/queries/projects/factory.rb +++ b/app/models/queries/projects/factory.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/active_filter.rb b/app/models/queries/projects/filters/active_filter.rb index 6d4b676240f8..d3bcacc1eac5 100644 --- a/app/models/queries/projects/filters/active_filter.rb +++ b/app/models/queries/projects/filters/active_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/ancestor_filter.rb b/app/models/queries/projects/filters/ancestor_filter.rb index e919f346676b..41e75b8a52a8 100644 --- a/app/models/queries/projects/filters/ancestor_filter.rb +++ b/app/models/queries/projects/filters/ancestor_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/available_project_attributes_filter.rb b/app/models/queries/projects/filters/available_project_attributes_filter.rb index 643d3860aa1b..0fe1ca825261 100644 --- a/app/models/queries/projects/filters/available_project_attributes_filter.rb +++ b/app/models/queries/projects/filters/available_project_attributes_filter.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/base.rb b/app/models/queries/projects/filters/base.rb index 198fc0759e0f..78b07973f41c 100644 --- a/app/models/queries/projects/filters/base.rb +++ b/app/models/queries/projects/filters/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/created_at_filter.rb b/app/models/queries/projects/filters/created_at_filter.rb index d09de15365eb..6c4aed794837 100644 --- a/app/models/queries/projects/filters/created_at_filter.rb +++ b/app/models/queries/projects/filters/created_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/custom_field_context.rb b/app/models/queries/projects/filters/custom_field_context.rb index f93f86deab51..d3989b284e2d 100644 --- a/app/models/queries/projects/filters/custom_field_context.rb +++ b/app/models/queries/projects/filters/custom_field_context.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/custom_field_filter.rb b/app/models/queries/projects/filters/custom_field_filter.rb index eae533018b4a..8d9f7498282e 100644 --- a/app/models/queries/projects/filters/custom_field_filter.rb +++ b/app/models/queries/projects/filters/custom_field_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/favored_filter.rb b/app/models/queries/projects/filters/favored_filter.rb index 9654eaf6158c..7f6c61f7953c 100644 --- a/app/models/queries/projects/filters/favored_filter.rb +++ b/app/models/queries/projects/filters/favored_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/id_filter.rb b/app/models/queries/projects/filters/id_filter.rb index 1324bf7b8836..cec8c8440c87 100644 --- a/app/models/queries/projects/filters/id_filter.rb +++ b/app/models/queries/projects/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/latest_activity_at_filter.rb b/app/models/queries/projects/filters/latest_activity_at_filter.rb index 81b809139498..619d296b2256 100644 --- a/app/models/queries/projects/filters/latest_activity_at_filter.rb +++ b/app/models/queries/projects/filters/latest_activity_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/member_of_filter.rb b/app/models/queries/projects/filters/member_of_filter.rb index 5b08a5c4dbff..b68e39f1b262 100644 --- a/app/models/queries/projects/filters/member_of_filter.rb +++ b/app/models/queries/projects/filters/member_of_filter.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/name_and_identifier_filter.rb b/app/models/queries/projects/filters/name_and_identifier_filter.rb index 3535573e4778..184ed49879eb 100644 --- a/app/models/queries/projects/filters/name_and_identifier_filter.rb +++ b/app/models/queries/projects/filters/name_and_identifier_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/name_filter.rb b/app/models/queries/projects/filters/name_filter.rb index ffc9ce6c5e1f..59357cbf39fe 100644 --- a/app/models/queries/projects/filters/name_filter.rb +++ b/app/models/queries/projects/filters/name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/parent_filter.rb b/app/models/queries/projects/filters/parent_filter.rb index 507d1f102d75..4330c9f5dd66 100644 --- a/app/models/queries/projects/filters/parent_filter.rb +++ b/app/models/queries/projects/filters/parent_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/principal_filter.rb b/app/models/queries/projects/filters/principal_filter.rb index f8ff9518cdc9..b91a0e31a613 100644 --- a/app/models/queries/projects/filters/principal_filter.rb +++ b/app/models/queries/projects/filters/principal_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/project_status_filter.rb b/app/models/queries/projects/filters/project_status_filter.rb index 62df7e56fbe5..f32109577ed9 100644 --- a/app/models/queries/projects/filters/project_status_filter.rb +++ b/app/models/queries/projects/filters/project_status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/public_filter.rb b/app/models/queries/projects/filters/public_filter.rb index 7c2ca086a140..d22fe8bf921a 100644 --- a/app/models/queries/projects/filters/public_filter.rb +++ b/app/models/queries/projects/filters/public_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/templated_filter.rb b/app/models/queries/projects/filters/templated_filter.rb index b708f572ce80..9892587a0dbf 100644 --- a/app/models/queries/projects/filters/templated_filter.rb +++ b/app/models/queries/projects/filters/templated_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/type_filter.rb b/app/models/queries/projects/filters/type_filter.rb index a5cb9d3978f0..43662b4ee5a7 100644 --- a/app/models/queries/projects/filters/type_filter.rb +++ b/app/models/queries/projects/filters/type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/typeahead_filter.rb b/app/models/queries/projects/filters/typeahead_filter.rb index 9635055a1902..7b490617c6ce 100644 --- a/app/models/queries/projects/filters/typeahead_filter.rb +++ b/app/models/queries/projects/filters/typeahead_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/user_action_filter.rb b/app/models/queries/projects/filters/user_action_filter.rb index 2ec56e3c7ebe..fa1c2929102c 100644 --- a/app/models/queries/projects/filters/user_action_filter.rb +++ b/app/models/queries/projects/filters/user_action_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/filters/visible_filter.rb b/app/models/queries/projects/filters/visible_filter.rb index 952665de5226..75313e207445 100644 --- a/app/models/queries/projects/filters/visible_filter.rb +++ b/app/models/queries/projects/filters/visible_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/orders/custom_field_order.rb b/app/models/queries/projects/orders/custom_field_order.rb index dca4ab3f3e6c..02b7bac6a928 100644 --- a/app/models/queries/projects/orders/custom_field_order.rb +++ b/app/models/queries/projects/orders/custom_field_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/orders/default_order.rb b/app/models/queries/projects/orders/default_order.rb index 746d900c89eb..e612807171e3 100644 --- a/app/models/queries/projects/orders/default_order.rb +++ b/app/models/queries/projects/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/orders/latest_activity_at_order.rb b/app/models/queries/projects/orders/latest_activity_at_order.rb index d2a9ca05a859..37432e168dbd 100644 --- a/app/models/queries/projects/orders/latest_activity_at_order.rb +++ b/app/models/queries/projects/orders/latest_activity_at_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/orders/name_order.rb b/app/models/queries/projects/orders/name_order.rb index 617623e5eecb..dd2e583b6863 100644 --- a/app/models/queries/projects/orders/name_order.rb +++ b/app/models/queries/projects/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/orders/project_status_order.rb b/app/models/queries/projects/orders/project_status_order.rb index 44125a5f1901..7922a19f3800 100644 --- a/app/models/queries/projects/orders/project_status_order.rb +++ b/app/models/queries/projects/orders/project_status_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -37,7 +37,7 @@ def self.key def order(scope) with_raise_on_invalid do - scope.order(Arel.sql("status_code").send(direction)) + scope.order(status_code: direction) end end end diff --git a/app/models/queries/projects/orders/required_disk_space_order.rb b/app/models/queries/projects/orders/required_disk_space_order.rb index 648dbd4544f3..cfdc32c684ea 100644 --- a/app/models/queries/projects/orders/required_disk_space_order.rb +++ b/app/models/queries/projects/orders/required_disk_space_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/orders/typeahead_order.rb b/app/models/queries/projects/orders/typeahead_order.rb index 7c739ff1a2a1..e05a7b543524 100644 --- a/app/models/queries/projects/orders/typeahead_order.rb +++ b/app/models/queries/projects/orders/typeahead_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/selects/created_at.rb b/app/models/queries/projects/selects/created_at.rb index db06809ffd78..fa6ed0e66bb8 100644 --- a/app/models/queries/projects/selects/created_at.rb +++ b/app/models/queries/projects/selects/created_at.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/selects/custom_field.rb b/app/models/queries/projects/selects/custom_field.rb index c1b54dc70b52..b1b19f29ee28 100644 --- a/app/models/queries/projects/selects/custom_field.rb +++ b/app/models/queries/projects/selects/custom_field.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -33,10 +33,6 @@ def self.key /cf_(\d+)/ end - def self.available? - EnterpriseToken.allows_to?(:custom_fields_in_projects_list) - end - def self.all_available return [] unless available? diff --git a/app/models/queries/projects/selects/default.rb b/app/models/queries/projects/selects/default.rb index 5b1fa8ced5d7..59cb279f11c7 100644 --- a/app/models/queries/projects/selects/default.rb +++ b/app/models/queries/projects/selects/default.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/selects/favored.rb b/app/models/queries/projects/selects/favored.rb index c71446e49a64..2240fdcd6f21 100644 --- a/app/models/queries/projects/selects/favored.rb +++ b/app/models/queries/projects/selects/favored.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/selects/latest_activity_at.rb b/app/models/queries/projects/selects/latest_activity_at.rb index e82fdd4c133d..91fb972dbe5c 100644 --- a/app/models/queries/projects/selects/latest_activity_at.rb +++ b/app/models/queries/projects/selects/latest_activity_at.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/selects/required_disk_space.rb b/app/models/queries/projects/selects/required_disk_space.rb index bc433247af03..6c99bcfc9850 100644 --- a/app/models/queries/projects/selects/required_disk_space.rb +++ b/app/models/queries/projects/selects/required_disk_space.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/projects/selects/status.rb b/app/models/queries/projects/selects/status.rb index 328ded86f6d2..bfb5704e2c7f 100644 --- a/app/models/queries/projects/selects/status.rb +++ b/app/models/queries/projects/selects/status.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries.rb b/app/models/queries/queries.rb index 79544a64cdc0..111aab74c18a 100644 --- a/app/models/queries/queries.rb +++ b/app/models/queries/queries.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries/filters/id_filter.rb b/app/models/queries/queries/filters/id_filter.rb index 9dd0c55ac1b9..a4ca8530fb58 100644 --- a/app/models/queries/queries/filters/id_filter.rb +++ b/app/models/queries/queries/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries/filters/project_filter.rb b/app/models/queries/queries/filters/project_filter.rb index 043398b972b3..80ef336f7530 100644 --- a/app/models/queries/queries/filters/project_filter.rb +++ b/app/models/queries/queries/filters/project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries/filters/project_identifier_filter.rb b/app/models/queries/queries/filters/project_identifier_filter.rb index 8403cc79c15a..a6e6f4dc462d 100644 --- a/app/models/queries/queries/filters/project_identifier_filter.rb +++ b/app/models/queries/queries/filters/project_identifier_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries/filters/query_filter.rb b/app/models/queries/queries/filters/query_filter.rb index 04e9e6166b8c..f0a3febf372a 100644 --- a/app/models/queries/queries/filters/query_filter.rb +++ b/app/models/queries/queries/filters/query_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries/filters/updated_at_filter.rb b/app/models/queries/queries/filters/updated_at_filter.rb index 7ef52994bf52..34df06d5cff0 100644 --- a/app/models/queries/queries/filters/updated_at_filter.rb +++ b/app/models/queries/queries/filters/updated_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/queries/query_query.rb b/app/models/queries/queries/query_query.rb index f79d8e691b5b..152520233e27 100644 --- a/app/models/queries/queries/query_query.rb +++ b/app/models/queries/queries/query_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/register.rb b/app/models/queries/register.rb index fa1d16e075b8..0f9dc6466161 100644 --- a/app/models/queries/register.rb +++ b/app/models/queries/register.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations.rb b/app/models/queries/relations.rb index 9086335fbbf3..777f3f092c30 100644 --- a/app/models/queries/relations.rb +++ b/app/models/queries/relations.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/from_filter.rb b/app/models/queries/relations/filters/from_filter.rb index e83818cefd08..7a856778b62f 100644 --- a/app/models/queries/relations/filters/from_filter.rb +++ b/app/models/queries/relations/filters/from_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/id_filter.rb b/app/models/queries/relations/filters/id_filter.rb index b36c58ccef92..8b8f53864392 100644 --- a/app/models/queries/relations/filters/id_filter.rb +++ b/app/models/queries/relations/filters/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/involved_filter.rb b/app/models/queries/relations/filters/involved_filter.rb index 95ddee87e5fe..d999dd8cdea5 100644 --- a/app/models/queries/relations/filters/involved_filter.rb +++ b/app/models/queries/relations/filters/involved_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/relation_filter.rb b/app/models/queries/relations/filters/relation_filter.rb index fb8dd07fc592..7bf57f7ef9bf 100644 --- a/app/models/queries/relations/filters/relation_filter.rb +++ b/app/models/queries/relations/filters/relation_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/to_filter.rb b/app/models/queries/relations/filters/to_filter.rb index a857154b586d..179b6007ae6f 100644 --- a/app/models/queries/relations/filters/to_filter.rb +++ b/app/models/queries/relations/filters/to_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/type_filter.rb b/app/models/queries/relations/filters/type_filter.rb index 37bc296fdb2c..bad12cba099c 100644 --- a/app/models/queries/relations/filters/type_filter.rb +++ b/app/models/queries/relations/filters/type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/filters/visibility_checking.rb b/app/models/queries/relations/filters/visibility_checking.rb index 1fee2304c4a4..4560b8833989 100644 --- a/app/models/queries/relations/filters/visibility_checking.rb +++ b/app/models/queries/relations/filters/visibility_checking.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/orders/default_order.rb b/app/models/queries/relations/orders/default_order.rb index f2d4aca7863d..5def98e8baea 100644 --- a/app/models/queries/relations/orders/default_order.rb +++ b/app/models/queries/relations/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/relations/relation_query.rb b/app/models/queries/relations/relation_query.rb index 0d3c149ab49d..52756a386c90 100644 --- a/app/models/queries/relations/relation_query.rb +++ b/app/models/queries/relations/relation_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/roles.rb b/app/models/queries/roles.rb index 18238fc010f6..038e18e2a1df 100644 --- a/app/models/queries/roles.rb +++ b/app/models/queries/roles.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/roles/filters/allows_becoming_assignee_filter.rb b/app/models/queries/roles/filters/allows_becoming_assignee_filter.rb index 75d158f4c4ad..116790569ef9 100644 --- a/app/models/queries/roles/filters/allows_becoming_assignee_filter.rb +++ b/app/models/queries/roles/filters/allows_becoming_assignee_filter.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/roles/filters/grantable_filter.rb b/app/models/queries/roles/filters/grantable_filter.rb index abbeac230ca2..c39075a9656d 100644 --- a/app/models/queries/roles/filters/grantable_filter.rb +++ b/app/models/queries/roles/filters/grantable_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/roles/filters/role_filter.rb b/app/models/queries/roles/filters/role_filter.rb index 070222eebb9a..ad5886f8e6bd 100644 --- a/app/models/queries/roles/filters/role_filter.rb +++ b/app/models/queries/roles/filters/role_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/roles/filters/unit_filter.rb b/app/models/queries/roles/filters/unit_filter.rb index 21b158ef6a92..e4d732acf259 100644 --- a/app/models/queries/roles/filters/unit_filter.rb +++ b/app/models/queries/roles/filters/unit_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/roles/role_query.rb b/app/models/queries/roles/role_query.rb index 500a94de4ac2..73830e986e79 100644 --- a/app/models/queries/roles/role_query.rb +++ b/app/models/queries/roles/role_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/scopes/having_views.rb b/app/models/queries/scopes/having_views.rb index 2e239db3f887..d070f7e19e73 100644 --- a/app/models/queries/scopes/having_views.rb +++ b/app/models/queries/scopes/having_views.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/scopes/visible.rb b/app/models/queries/scopes/visible.rb index 42caa20c653a..761fa6e00ea7 100644 --- a/app/models/queries/scopes/visible.rb +++ b/app/models/queries/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/selects/available_selects.rb b/app/models/queries/selects/available_selects.rb index 9082a126f1bc..469b558efa70 100644 --- a/app/models/queries/selects/available_selects.rb +++ b/app/models/queries/selects/available_selects.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/selects/base.rb b/app/models/queries/selects/base.rb index 09737d5c0d4e..2ad2fb364dfb 100644 --- a/app/models/queries/selects/base.rb +++ b/app/models/queries/selects/base.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/selects/not_existing_select.rb b/app/models/queries/selects/not_existing_select.rb index f5c6bd3c1a0c..8b9b3fd808f5 100644 --- a/app/models/queries/selects/not_existing_select.rb +++ b/app/models/queries/selects/not_existing_select.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/serialization/filters.rb b/app/models/queries/serialization/filters.rb index 5326f20ea840..af72dd1d7304 100644 --- a/app/models/queries/serialization/filters.rb +++ b/app/models/queries/serialization/filters.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/serialization/hash.rb b/app/models/queries/serialization/hash.rb index 8a7c9a9f548a..4c0f8679abb0 100644 --- a/app/models/queries/serialization/hash.rb +++ b/app/models/queries/serialization/hash.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/serialization/orders.rb b/app/models/queries/serialization/orders.rb index 80be493caaf7..df570bf83aa2 100644 --- a/app/models/queries/serialization/orders.rb +++ b/app/models/queries/serialization/orders.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/serialization/selects.rb b/app/models/queries/serialization/selects.rb index 8d092a7295fe..283cf0d3ab3a 100644 --- a/app/models/queries/serialization/selects.rb +++ b/app/models/queries/serialization/selects.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/unpersisted_query.rb b/app/models/queries/unpersisted_query.rb index 570e0d20544e..0a1914f9ebc7 100644 --- a/app/models/queries/unpersisted_query.rb +++ b/app/models/queries/unpersisted_query.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users.rb b/app/models/queries/users.rb index 9180958a1481..fc5d95c9696b 100644 --- a/app/models/queries/users.rb +++ b/app/models/queries/users.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/any_name_attribute_filter.rb b/app/models/queries/users/filters/any_name_attribute_filter.rb index 013fc782f092..0cead6e4e110 100644 --- a/app/models/queries/users/filters/any_name_attribute_filter.rb +++ b/app/models/queries/users/filters/any_name_attribute_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/blocked_filter.rb b/app/models/queries/users/filters/blocked_filter.rb index bddccc409b8f..a26c7cf47913 100644 --- a/app/models/queries/users/filters/blocked_filter.rb +++ b/app/models/queries/users/filters/blocked_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/group_filter.rb b/app/models/queries/users/filters/group_filter.rb index b6c5182f9553..c71197082059 100644 --- a/app/models/queries/users/filters/group_filter.rb +++ b/app/models/queries/users/filters/group_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/login_filter.rb b/app/models/queries/users/filters/login_filter.rb index d86c0bf15a1e..887e1776a0d4 100644 --- a/app/models/queries/users/filters/login_filter.rb +++ b/app/models/queries/users/filters/login_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/name_filter.rb b/app/models/queries/users/filters/name_filter.rb index 59082a2d3e21..66133c07d668 100644 --- a/app/models/queries/users/filters/name_filter.rb +++ b/app/models/queries/users/filters/name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/status_filter.rb b/app/models/queries/users/filters/status_filter.rb index 93597ffed6dc..538a73173d6b 100644 --- a/app/models/queries/users/filters/status_filter.rb +++ b/app/models/queries/users/filters/status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/filters/user_filter.rb b/app/models/queries/users/filters/user_filter.rb index 7144fd011f64..a06a1dd3af0e 100644 --- a/app/models/queries/users/filters/user_filter.rb +++ b/app/models/queries/users/filters/user_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/orders/default_order.rb b/app/models/queries/users/orders/default_order.rb index 1466a00a024a..faac8f5c201c 100644 --- a/app/models/queries/users/orders/default_order.rb +++ b/app/models/queries/users/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/orders/group_order.rb b/app/models/queries/users/orders/group_order.rb index b133e962c3ef..a6ced7a03eb0 100644 --- a/app/models/queries/users/orders/group_order.rb +++ b/app/models/queries/users/orders/group_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/orders/name_order.rb b/app/models/queries/users/orders/name_order.rb index 2d7c7d497d3b..ae0659b3f48d 100644 --- a/app/models/queries/users/orders/name_order.rb +++ b/app/models/queries/users/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/users/user_query.rb b/app/models/queries/users/user_query.rb index 10ea83723467..37697e997ea5 100644 --- a/app/models/queries/users/user_query.rb +++ b/app/models/queries/users/user_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/valid_subset.rb b/app/models/queries/valid_subset.rb index ae2335939f48..e2f764f55502 100644 --- a/app/models/queries/valid_subset.rb +++ b/app/models/queries/valid_subset.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/versions.rb b/app/models/queries/versions.rb index b077c23b8f90..b6af7df75293 100644 --- a/app/models/queries/versions.rb +++ b/app/models/queries/versions.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/versions/filters/sharing_filter.rb b/app/models/queries/versions/filters/sharing_filter.rb index bd0c55d472c9..3bbffda08251 100644 --- a/app/models/queries/versions/filters/sharing_filter.rb +++ b/app/models/queries/versions/filters/sharing_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/versions/filters/version_filter.rb b/app/models/queries/versions/filters/version_filter.rb index 9fa34f49c198..106407e6ae5b 100644 --- a/app/models/queries/versions/filters/version_filter.rb +++ b/app/models/queries/versions/filters/version_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/versions/orders/name_order.rb b/app/models/queries/versions/orders/name_order.rb index 4f6db68065ed..0c6f0ddcfc62 100644 --- a/app/models/queries/versions/orders/name_order.rb +++ b/app/models/queries/versions/orders/name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/versions/orders/semver_name_order.rb b/app/models/queries/versions/orders/semver_name_order.rb index 3e0f0e0a0823..465429fb6bb0 100644 --- a/app/models/queries/versions/orders/semver_name_order.rb +++ b/app/models/queries/versions/orders/semver_name_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/versions/version_query.rb b/app/models/queries/versions/version_query.rb index f71fe835bab2..2bcf9afb5164 100644 --- a/app/models/queries/versions/version_query.rb +++ b/app/models/queries/versions/version_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/views.rb b/app/models/queries/views.rb index dac5c69f4ed7..b553fd0f49da 100644 --- a/app/models/queries/views.rb +++ b/app/models/queries/views.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/views/filters/project_filter.rb b/app/models/queries/views/filters/project_filter.rb index 8b28e98f968b..504fe1d27e99 100644 --- a/app/models/queries/views/filters/project_filter.rb +++ b/app/models/queries/views/filters/project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/views/filters/type_filter.rb b/app/models/queries/views/filters/type_filter.rb index 2e6b32981461..20f60ee2b9e9 100644 --- a/app/models/queries/views/filters/type_filter.rb +++ b/app/models/queries/views/filters/type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/views/filters/view_filter.rb b/app/models/queries/views/filters/view_filter.rb index 4a544f0f114e..3d76759150e6 100644 --- a/app/models/queries/views/filters/view_filter.rb +++ b/app/models/queries/views/filters/view_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/views/orders/default_order.rb b/app/models/queries/views/orders/default_order.rb index f18649892a7d..8dfe8251b963 100644 --- a/app/models/queries/views/orders/default_order.rb +++ b/app/models/queries/views/orders/default_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/views/view_query.rb b/app/models/queries/views/view_query.rb index 97e0e9e5b4c7..0c2a4f31d61e 100644 --- a/app/models/queries/views/view_query.rb +++ b/app/models/queries/views/view_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/week_days/week_day_query.rb b/app/models/queries/week_days/week_day_query.rb index 299bf9084e84..4fb08a0875ce 100644 --- a/app/models/queries/week_days/week_day_query.rb +++ b/app/models/queries/week_days/week_day_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages.rb b/app/models/queries/work_packages.rb index a953f692ff9a..d5f6540f6d74 100644 --- a/app/models/queries/work_packages.rb +++ b/app/models/queries/work_packages.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/common/manual_sorting.rb b/app/models/queries/work_packages/common/manual_sorting.rb index b8e22eab2825..1c207c2466bf 100644 --- a/app/models/queries/work_packages/common/manual_sorting.rb +++ b/app/models/queries/work_packages/common/manual_sorting.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter.rb b/app/models/queries/work_packages/filter.rb index ac58c9d63da8..28369d5742b9 100644 --- a/app/models/queries/work_packages/filter.rb +++ b/app/models/queries/work_packages/filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/assigned_to_filter.rb b/app/models/queries/work_packages/filter/assigned_to_filter.rb index 9c15e3f2c639..505782912f17 100644 --- a/app/models/queries/work_packages/filter/assigned_to_filter.rb +++ b/app/models/queries/work_packages/filter/assigned_to_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/assignee_or_group_filter.rb b/app/models/queries/work_packages/filter/assignee_or_group_filter.rb index 33d7ff14bc53..40fcf754fe5a 100644 --- a/app/models/queries/work_packages/filter/assignee_or_group_filter.rb +++ b/app/models/queries/work_packages/filter/assignee_or_group_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/attachment_base_filter.rb b/app/models/queries/work_packages/filter/attachment_base_filter.rb index 204bbf2b3e38..acce7a5bfc01 100644 --- a/app/models/queries/work_packages/filter/attachment_base_filter.rb +++ b/app/models/queries/work_packages/filter/attachment_base_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/attachment_content_filter.rb b/app/models/queries/work_packages/filter/attachment_content_filter.rb index 324d4f14fddc..0253260e8030 100644 --- a/app/models/queries/work_packages/filter/attachment_content_filter.rb +++ b/app/models/queries/work_packages/filter/attachment_content_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/attachment_file_name_filter.rb b/app/models/queries/work_packages/filter/attachment_file_name_filter.rb index 5f7ccb7f8d5a..0821b12b0398 100644 --- a/app/models/queries/work_packages/filter/attachment_file_name_filter.rb +++ b/app/models/queries/work_packages/filter/attachment_file_name_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/author_filter.rb b/app/models/queries/work_packages/filter/author_filter.rb index 1d07bfeeacdc..ca9423d99d61 100644 --- a/app/models/queries/work_packages/filter/author_filter.rb +++ b/app/models/queries/work_packages/filter/author_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/blocked_filter.rb b/app/models/queries/work_packages/filter/blocked_filter.rb index 38c49228d938..e644d230cc03 100644 --- a/app/models/queries/work_packages/filter/blocked_filter.rb +++ b/app/models/queries/work_packages/filter/blocked_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/blocks_filter.rb b/app/models/queries/work_packages/filter/blocks_filter.rb index 96dc29d6143c..8439c4116ee5 100644 --- a/app/models/queries/work_packages/filter/blocks_filter.rb +++ b/app/models/queries/work_packages/filter/blocks_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/category_filter.rb b/app/models/queries/work_packages/filter/category_filter.rb index fede1f83805d..62f54700607b 100644 --- a/app/models/queries/work_packages/filter/category_filter.rb +++ b/app/models/queries/work_packages/filter/category_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/comment_filter.rb b/app/models/queries/work_packages/filter/comment_filter.rb index f07b64a88e0b..e6f43e6aabc4 100644 --- a/app/models/queries/work_packages/filter/comment_filter.rb +++ b/app/models/queries/work_packages/filter/comment_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/created_at_filter.rb b/app/models/queries/work_packages/filter/created_at_filter.rb index cddcb1e20122..e4191e81b722 100644 --- a/app/models/queries/work_packages/filter/created_at_filter.rb +++ b/app/models/queries/work_packages/filter/created_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/custom_field_context.rb b/app/models/queries/work_packages/filter/custom_field_context.rb index 58e9374498c1..f5673926c38b 100644 --- a/app/models/queries/work_packages/filter/custom_field_context.rb +++ b/app/models/queries/work_packages/filter/custom_field_context.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/custom_field_filter.rb b/app/models/queries/work_packages/filter/custom_field_filter.rb index 673e824e50f7..e31378f940de 100644 --- a/app/models/queries/work_packages/filter/custom_field_filter.rb +++ b/app/models/queries/work_packages/filter/custom_field_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/dates_interval_filter.rb b/app/models/queries/work_packages/filter/dates_interval_filter.rb index 7ee85af0bd36..dd46750bd9e8 100644 --- a/app/models/queries/work_packages/filter/dates_interval_filter.rb +++ b/app/models/queries/work_packages/filter/dates_interval_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/description_filter.rb b/app/models/queries/work_packages/filter/description_filter.rb index a89ab9f55a0b..2a633fa4df26 100644 --- a/app/models/queries/work_packages/filter/description_filter.rb +++ b/app/models/queries/work_packages/filter/description_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/done_ratio_filter.rb b/app/models/queries/work_packages/filter/done_ratio_filter.rb index 8cfc4c1c4bc2..286e594a29f8 100644 --- a/app/models/queries/work_packages/filter/done_ratio_filter.rb +++ b/app/models/queries/work_packages/filter/done_ratio_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/due_date_filter.rb b/app/models/queries/work_packages/filter/due_date_filter.rb index 5547cd0fdf2b..04161878ed53 100644 --- a/app/models/queries/work_packages/filter/due_date_filter.rb +++ b/app/models/queries/work_packages/filter/due_date_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/duplicated_filter.rb b/app/models/queries/work_packages/filter/duplicated_filter.rb index 49c3cc2049fe..10d27a0c5317 100644 --- a/app/models/queries/work_packages/filter/duplicated_filter.rb +++ b/app/models/queries/work_packages/filter/duplicated_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/duplicates_filter.rb b/app/models/queries/work_packages/filter/duplicates_filter.rb index 065163d70fae..c8949c409be8 100644 --- a/app/models/queries/work_packages/filter/duplicates_filter.rb +++ b/app/models/queries/work_packages/filter/duplicates_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/duration_filter.rb b/app/models/queries/work_packages/filter/duration_filter.rb index 29321f37c488..ab859a641d22 100644 --- a/app/models/queries/work_packages/filter/duration_filter.rb +++ b/app/models/queries/work_packages/filter/duration_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/estimated_hours_filter.rb b/app/models/queries/work_packages/filter/estimated_hours_filter.rb index f2b67af8b839..840e2136b4c6 100644 --- a/app/models/queries/work_packages/filter/estimated_hours_filter.rb +++ b/app/models/queries/work_packages/filter/estimated_hours_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/filter_configuration.rb b/app/models/queries/work_packages/filter/filter_configuration.rb index f3aaa43f198a..0975b27c8c42 100644 --- a/app/models/queries/work_packages/filter/filter_configuration.rb +++ b/app/models/queries/work_packages/filter/filter_configuration.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/filter_for_wp_mixin.rb b/app/models/queries/work_packages/filter/filter_for_wp_mixin.rb index 6b02c0486f30..7449c03c804d 100644 --- a/app/models/queries/work_packages/filter/filter_for_wp_mixin.rb +++ b/app/models/queries/work_packages/filter/filter_for_wp_mixin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/filter_on_directed_relations_mixin.rb b/app/models/queries/work_packages/filter/filter_on_directed_relations_mixin.rb index d3c642a0f698..da3886c5f818 100644 --- a/app/models/queries/work_packages/filter/filter_on_directed_relations_mixin.rb +++ b/app/models/queries/work_packages/filter/filter_on_directed_relations_mixin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/filter_on_undirected_relations_mixin.rb b/app/models/queries/work_packages/filter/filter_on_undirected_relations_mixin.rb index 17192b2ce171..8a244d02fe8f 100644 --- a/app/models/queries/work_packages/filter/filter_on_undirected_relations_mixin.rb +++ b/app/models/queries/work_packages/filter/filter_on_undirected_relations_mixin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/follows_filter.rb b/app/models/queries/work_packages/filter/follows_filter.rb index cc7cc27a3b37..28d5c4669a1a 100644 --- a/app/models/queries/work_packages/filter/follows_filter.rb +++ b/app/models/queries/work_packages/filter/follows_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/group_filter.rb b/app/models/queries/work_packages/filter/group_filter.rb index eb8de88d5dcb..5e919a05a861 100644 --- a/app/models/queries/work_packages/filter/group_filter.rb +++ b/app/models/queries/work_packages/filter/group_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/id_filter.rb b/app/models/queries/work_packages/filter/id_filter.rb index 9cb200e91d16..197bbbb69b62 100644 --- a/app/models/queries/work_packages/filter/id_filter.rb +++ b/app/models/queries/work_packages/filter/id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/includes_filter.rb b/app/models/queries/work_packages/filter/includes_filter.rb index 5a4831e3c0dc..a3e91c8694a4 100644 --- a/app/models/queries/work_packages/filter/includes_filter.rb +++ b/app/models/queries/work_packages/filter/includes_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/manual_sort_filter.rb b/app/models/queries/work_packages/filter/manual_sort_filter.rb index 66eddd57236d..79e526d466bb 100644 --- a/app/models/queries/work_packages/filter/manual_sort_filter.rb +++ b/app/models/queries/work_packages/filter/manual_sort_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/me_value_filter_mixin.rb b/app/models/queries/work_packages/filter/me_value_filter_mixin.rb index e7ffe0c314b1..f300c8ca20e1 100644 --- a/app/models/queries/work_packages/filter/me_value_filter_mixin.rb +++ b/app/models/queries/work_packages/filter/me_value_filter_mixin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/milestone_filter.rb b/app/models/queries/work_packages/filter/milestone_filter.rb index 111cd6fe4cbd..7f93e1718cad 100644 --- a/app/models/queries/work_packages/filter/milestone_filter.rb +++ b/app/models/queries/work_packages/filter/milestone_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/only_subproject_filter.rb b/app/models/queries/work_packages/filter/only_subproject_filter.rb index 96a9642975fe..09cf7747e93d 100644 --- a/app/models/queries/work_packages/filter/only_subproject_filter.rb +++ b/app/models/queries/work_packages/filter/only_subproject_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/or_filter_for_wp_mixin.rb b/app/models/queries/work_packages/filter/or_filter_for_wp_mixin.rb index 5b2d49cffed2..e511df3cba3e 100644 --- a/app/models/queries/work_packages/filter/or_filter_for_wp_mixin.rb +++ b/app/models/queries/work_packages/filter/or_filter_for_wp_mixin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/parent_filter.rb b/app/models/queries/work_packages/filter/parent_filter.rb index e1bf1ed3ca67..a10b2cc65d5c 100644 --- a/app/models/queries/work_packages/filter/parent_filter.rb +++ b/app/models/queries/work_packages/filter/parent_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/partof_filter.rb b/app/models/queries/work_packages/filter/partof_filter.rb index 96392ee0921a..603819970c7e 100644 --- a/app/models/queries/work_packages/filter/partof_filter.rb +++ b/app/models/queries/work_packages/filter/partof_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/precedes_filter.rb b/app/models/queries/work_packages/filter/precedes_filter.rb index 03815985e1f2..56613d792beb 100644 --- a/app/models/queries/work_packages/filter/precedes_filter.rb +++ b/app/models/queries/work_packages/filter/precedes_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/principal_base_filter.rb b/app/models/queries/work_packages/filter/principal_base_filter.rb index 4d8d3bdcb34b..b8a7ad6e12a3 100644 --- a/app/models/queries/work_packages/filter/principal_base_filter.rb +++ b/app/models/queries/work_packages/filter/principal_base_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/principal_loader.rb b/app/models/queries/work_packages/filter/principal_loader.rb index 310bb8e96eb7..6b904fd1cc71 100644 --- a/app/models/queries/work_packages/filter/principal_loader.rb +++ b/app/models/queries/work_packages/filter/principal_loader.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/priority_filter.rb b/app/models/queries/work_packages/filter/priority_filter.rb index e2cc98362916..d1cdd7d39aaf 100644 --- a/app/models/queries/work_packages/filter/priority_filter.rb +++ b/app/models/queries/work_packages/filter/priority_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/project_filter.rb b/app/models/queries/work_packages/filter/project_filter.rb index ea1cf3f453bf..02c8c675bba5 100644 --- a/app/models/queries/work_packages/filter/project_filter.rb +++ b/app/models/queries/work_packages/filter/project_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/relatable_filter.rb b/app/models/queries/work_packages/filter/relatable_filter.rb index 5d917da12ce0..e2ec7c71b952 100644 --- a/app/models/queries/work_packages/filter/relatable_filter.rb +++ b/app/models/queries/work_packages/filter/relatable_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/relates_filter.rb b/app/models/queries/work_packages/filter/relates_filter.rb index d45c6b6c0bc2..b69f2ac7a02b 100644 --- a/app/models/queries/work_packages/filter/relates_filter.rb +++ b/app/models/queries/work_packages/filter/relates_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/required_filter.rb b/app/models/queries/work_packages/filter/required_filter.rb index 1580d1ba94cb..5836636ab603 100644 --- a/app/models/queries/work_packages/filter/required_filter.rb +++ b/app/models/queries/work_packages/filter/required_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/requires_filter.rb b/app/models/queries/work_packages/filter/requires_filter.rb index c519bdd8af68..2ea1ff17fad2 100644 --- a/app/models/queries/work_packages/filter/requires_filter.rb +++ b/app/models/queries/work_packages/filter/requires_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/responsible_filter.rb b/app/models/queries/work_packages/filter/responsible_filter.rb index 8961735cc0ec..c86f3aa73537 100644 --- a/app/models/queries/work_packages/filter/responsible_filter.rb +++ b/app/models/queries/work_packages/filter/responsible_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/role_filter.rb b/app/models/queries/work_packages/filter/role_filter.rb index db34d336c07b..16ddd8583c86 100644 --- a/app/models/queries/work_packages/filter/role_filter.rb +++ b/app/models/queries/work_packages/filter/role_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/search_filter.rb b/app/models/queries/work_packages/filter/search_filter.rb index 854a18a818db..d577ab7f1dfb 100644 --- a/app/models/queries/work_packages/filter/search_filter.rb +++ b/app/models/queries/work_packages/filter/search_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/shared_with_me_filter.rb b/app/models/queries/work_packages/filter/shared_with_me_filter.rb index d10f85cf8337..826cf02771b7 100644 --- a/app/models/queries/work_packages/filter/shared_with_me_filter.rb +++ b/app/models/queries/work_packages/filter/shared_with_me_filter.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/shared_with_user_filter.rb b/app/models/queries/work_packages/filter/shared_with_user_filter.rb index a5195d7afa23..bc8e17ed0a4b 100644 --- a/app/models/queries/work_packages/filter/shared_with_user_filter.rb +++ b/app/models/queries/work_packages/filter/shared_with_user_filter.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/start_date_filter.rb b/app/models/queries/work_packages/filter/start_date_filter.rb index aff793310628..0b1d2f9a47e8 100644 --- a/app/models/queries/work_packages/filter/start_date_filter.rb +++ b/app/models/queries/work_packages/filter/start_date_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/status_filter.rb b/app/models/queries/work_packages/filter/status_filter.rb index a92ea2c78f76..28c6cf76c4eb 100644 --- a/app/models/queries/work_packages/filter/status_filter.rb +++ b/app/models/queries/work_packages/filter/status_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/subject_filter.rb b/app/models/queries/work_packages/filter/subject_filter.rb index 5b9361708d61..b508697a8d10 100644 --- a/app/models/queries/work_packages/filter/subject_filter.rb +++ b/app/models/queries/work_packages/filter/subject_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/subject_or_id_filter.rb b/app/models/queries/work_packages/filter/subject_or_id_filter.rb index f9472f6b5fbc..d34464a2e8ae 100644 --- a/app/models/queries/work_packages/filter/subject_or_id_filter.rb +++ b/app/models/queries/work_packages/filter/subject_or_id_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/subproject_filter.rb b/app/models/queries/work_packages/filter/subproject_filter.rb index 510845de68c2..3202e3cb60ad 100644 --- a/app/models/queries/work_packages/filter/subproject_filter.rb +++ b/app/models/queries/work_packages/filter/subproject_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/text_filter_on_join_mixin.rb b/app/models/queries/work_packages/filter/text_filter_on_join_mixin.rb index 499328e02915..1961a1eccd2b 100644 --- a/app/models/queries/work_packages/filter/text_filter_on_join_mixin.rb +++ b/app/models/queries/work_packages/filter/text_filter_on_join_mixin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/type_filter.rb b/app/models/queries/work_packages/filter/type_filter.rb index a692c92956da..1a06b33eaf39 100644 --- a/app/models/queries/work_packages/filter/type_filter.rb +++ b/app/models/queries/work_packages/filter/type_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/typeahead_filter.rb b/app/models/queries/work_packages/filter/typeahead_filter.rb index c7c4c4abd239..3ad935cf19d6 100644 --- a/app/models/queries/work_packages/filter/typeahead_filter.rb +++ b/app/models/queries/work_packages/filter/typeahead_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/updated_at_filter.rb b/app/models/queries/work_packages/filter/updated_at_filter.rb index 302557912899..e3a1ff517f61 100644 --- a/app/models/queries/work_packages/filter/updated_at_filter.rb +++ b/app/models/queries/work_packages/filter/updated_at_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/version_filter.rb b/app/models/queries/work_packages/filter/version_filter.rb index 79effbd6f477..9148c3c23a2f 100644 --- a/app/models/queries/work_packages/filter/version_filter.rb +++ b/app/models/queries/work_packages/filter/version_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/watcher_filter.rb b/app/models/queries/work_packages/filter/watcher_filter.rb index 1c12bee7a9f5..7567230b0910 100644 --- a/app/models/queries/work_packages/filter/watcher_filter.rb +++ b/app/models/queries/work_packages/filter/watcher_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter/work_package_filter.rb b/app/models/queries/work_packages/filter/work_package_filter.rb index 2cfd3449dd4b..2652c9a9b0cb 100644 --- a/app/models/queries/work_packages/filter/work_package_filter.rb +++ b/app/models/queries/work_packages/filter/work_package_filter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/filter_serializer.rb b/app/models/queries/work_packages/filter_serializer.rb index fa6012aac37f..e93322106a83 100644 --- a/app/models/queries/work_packages/filter_serializer.rb +++ b/app/models/queries/work_packages/filter_serializer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/custom_field_select.rb b/app/models/queries/work_packages/selects/custom_field_select.rb index 18446e4b2c15..c6e2a107d5da 100644 --- a/app/models/queries/work_packages/selects/custom_field_select.rb +++ b/app/models/queries/work_packages/selects/custom_field_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/manual_sorting_select.rb b/app/models/queries/work_packages/selects/manual_sorting_select.rb index 8cc86329e3fb..69c88365f17c 100644 --- a/app/models/queries/work_packages/selects/manual_sorting_select.rb +++ b/app/models/queries/work_packages/selects/manual_sorting_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/property_select.rb b/app/models/queries/work_packages/selects/property_select.rb index 4a4ccead99d6..48635b1c296e 100644 --- a/app/models/queries/work_packages/selects/property_select.rb +++ b/app/models/queries/work_packages/selects/property_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/relation_of_type_select.rb b/app/models/queries/work_packages/selects/relation_of_type_select.rb index 5a7a536b8d79..eb6809cec69c 100644 --- a/app/models/queries/work_packages/selects/relation_of_type_select.rb +++ b/app/models/queries/work_packages/selects/relation_of_type_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/relation_select.rb b/app/models/queries/work_packages/selects/relation_select.rb index ddada8dfa641..c12f7663eb2e 100644 --- a/app/models/queries/work_packages/selects/relation_select.rb +++ b/app/models/queries/work_packages/selects/relation_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/relation_to_type_select.rb b/app/models/queries/work_packages/selects/relation_to_type_select.rb index 3b5c921ceec0..cd6ddcd432fc 100644 --- a/app/models/queries/work_packages/selects/relation_to_type_select.rb +++ b/app/models/queries/work_packages/selects/relation_to_type_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/typeahead_select.rb b/app/models/queries/work_packages/selects/typeahead_select.rb index a9efbe8b5dc7..1e6ba6663145 100644 --- a/app/models/queries/work_packages/selects/typeahead_select.rb +++ b/app/models/queries/work_packages/selects/typeahead_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/queries/work_packages/selects/work_package_select.rb b/app/models/queries/work_packages/selects/work_package_select.rb index bc5e3b72f755..a3ffe42aa3b6 100644 --- a/app/models/queries/work_packages/selects/work_package_select.rb +++ b/app/models/queries/work_packages/selects/work_package_select.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query.rb b/app/models/query.rb index 80b321cd40ae..d8051b6b1d06 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query/highlighting.rb b/app/models/query/highlighting.rb index 25915f26cbb6..79c3c242a42f 100644 --- a/app/models/query/highlighting.rb +++ b/app/models/query/highlighting.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query/manual_sorting.rb b/app/models/query/manual_sorting.rb index 94ca3ccaaedf..a4573534af87 100644 --- a/app/models/query/manual_sorting.rb +++ b/app/models/query/manual_sorting.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query/results.rb b/app/models/query/results.rb index f00638ac4087..dbf58dcbfa8c 100644 --- a/app/models/query/results.rb +++ b/app/models/query/results.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -26,7 +26,7 @@ # See COPYRIGHT and LICENSE files for more details. #++ -class ::Query::Results +class Query::Results include ::Query::Results::GroupBy include ::Query::Results::Sums include Redmine::I18n diff --git a/app/models/query/results/group_by.rb b/app/models/query/results/group_by.rb index b708a802fac0..b5609d28e876 100644 --- a/app/models/query/results/group_by.rb +++ b/app/models/query/results/group_by.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query/results/sums.rb b/app/models/query/results/sums.rb index ff0bfaebde4d..23509ef6656f 100644 --- a/app/models/query/results/sums.rb +++ b/app/models/query/results/sums.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query/sort_criteria.rb b/app/models/query/sort_criteria.rb index 5f3f2006b025..14d172396a8e 100644 --- a/app/models/query/sort_criteria.rb +++ b/app/models/query/sort_criteria.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -26,7 +26,7 @@ # See COPYRIGHT and LICENSE files for more details. #++ -class ::Query::SortCriteria < SortHelper::SortCriteria +class Query::SortCriteria < SortHelper::SortCriteria attr_reader :available_columns ## diff --git a/app/models/query/statement_invalid.rb b/app/models/query/statement_invalid.rb index 9e8847e321fa..3ae50ed2dbec 100644 --- a/app/models/query/statement_invalid.rb +++ b/app/models/query/statement_invalid.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -26,5 +26,5 @@ # See COPYRIGHT and LICENSE files for more details. #++ -class ::Query::StatementInvalid < ActiveRecord::StatementInvalid +class Query::StatementInvalid < ActiveRecord::StatementInvalid end diff --git a/app/models/query/timelines.rb b/app/models/query/timelines.rb index 997a522c420e..6b4452834187 100644 --- a/app/models/query/timelines.rb +++ b/app/models/query/timelines.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/query/timestamps.rb b/app/models/query/timestamps.rb index d881d9b23529..de32c2b40255 100644 --- a/app/models/query/timestamps.rb +++ b/app/models/query/timestamps.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/relation.rb b/app/models/relation.rb index a39f733dad75..f57f195fb1f7 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/relations/scopes/follows_non_manual_ancestors.rb b/app/models/relations/scopes/follows_non_manual_ancestors.rb index 939c1d98749d..785517713e9c 100644 --- a/app/models/relations/scopes/follows_non_manual_ancestors.rb +++ b/app/models/relations/scopes/follows_non_manual_ancestors.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/relations/scopes/types.rb b/app/models/relations/scopes/types.rb index 826f62d6b9e4..147e8f825ccf 100644 --- a/app/models/relations/scopes/types.rb +++ b/app/models/relations/scopes/types.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/relations/scopes/visible.rb b/app/models/relations/scopes/visible.rb index 128637196499..e2522cc1fdbe 100644 --- a/app/models/relations/scopes/visible.rb +++ b/app/models/relations/scopes/visible.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/repository.rb b/app/models/repository.rb index 8445028ef00d..8d7c4bb52c00 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 86477f305fe1..71e295d63e60 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index 0e6032c2e692..f8e5fb02799b 100644 --- a/app/models/repository/subversion.rb +++ b/app/models/repository/subversion.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/role.rb b/app/models/role.rb index 3376219b895d..bbaff72cd4a4 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/role_permission.rb b/app/models/role_permission.rb index 99435926f287..b341d44c0fff 100644 --- a/app/models/role_permission.rb +++ b/app/models/role_permission.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/scopes/scoped.rb b/app/models/scopes/scoped.rb index de9dd0d52647..129fe19397de 100644 --- a/app/models/scopes/scoped.rb +++ b/app/models/scopes/scoped.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/serializers/indifferent_hash_serializer.rb b/app/models/serializers/indifferent_hash_serializer.rb index f1bc416f2c1e..aa150dc7ec06 100644 --- a/app/models/serializers/indifferent_hash_serializer.rb +++ b/app/models/serializers/indifferent_hash_serializer.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/sessions/sql_bypass.rb b/app/models/sessions/sql_bypass.rb index 4ac66bbfca69..e0283e4f444d 100644 --- a/app/models/sessions/sql_bypass.rb +++ b/app/models/sessions/sql_bypass.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/sessions/user_session.rb b/app/models/sessions/user_session.rb index d54c438f6442..1a0d40e751d9 100644 --- a/app/models/sessions/user_session.rb +++ b/app/models/sessions/user_session.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/setting.rb b/app/models/setting.rb index 0d885dd16a17..654e24527512 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/setting/aliases.rb b/app/models/setting/aliases.rb index 363706189e61..98aa5bbbf4fd 100644 --- a/app/models/setting/aliases.rb +++ b/app/models/setting/aliases.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/setting/autologin.rb b/app/models/setting/autologin.rb index cba4efc93400..fae2be5ed42e 100644 --- a/app/models/setting/autologin.rb +++ b/app/models/setting/autologin.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/setting/mail_settings.rb b/app/models/setting/mail_settings.rb index 8447ab0d6e3b..329dd248419e 100644 --- a/app/models/setting/mail_settings.rb +++ b/app/models/setting/mail_settings.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/setting/self_registration.rb b/app/models/setting/self_registration.rb index ac45be5d3ea6..d41b31912016 100644 --- a/app/models/setting/self_registration.rb +++ b/app/models/setting/self_registration.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/setting/virus_scanning.rb b/app/models/setting/virus_scanning.rb index 91161f54fbf0..c1035b174c12 100644 --- a/app/models/setting/virus_scanning.rb +++ b/app/models/setting/virus_scanning.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/sharing_strategies/base_strategy.rb b/app/models/sharing_strategies/base_strategy.rb index 52b7ca52a74a..bff01d94d896 100644 --- a/app/models/sharing_strategies/base_strategy.rb +++ b/app/models/sharing_strategies/base_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/sharing_strategies/project_query_strategy.rb b/app/models/sharing_strategies/project_query_strategy.rb index f3e10fab5d41..eb05b1970d78 100644 --- a/app/models/sharing_strategies/project_query_strategy.rb +++ b/app/models/sharing_strategies/project_query_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/sharing_strategies/work_package_strategy.rb b/app/models/sharing_strategies/work_package_strategy.rb index 7561c656f4cc..556767dc08aa 100644 --- a/app/models/sharing_strategies/work_package_strategy.rb +++ b/app/models/sharing_strategies/work_package_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/status.rb b/app/models/status.rb index 01be255ac359..1ca04da06be0 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/status/inexistent_status.rb b/app/models/status/inexistent_status.rb index 0c536dc39fd5..20d511194281 100644 --- a/app/models/status/inexistent_status.rb +++ b/app/models/status/inexistent_status.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/system_user.rb b/app/models/system_user.rb index decfe36e7fa5..1a3195dacc4b 100644 --- a/app/models/system_user.rb +++ b/app/models/system_user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/timestamp.rb b/app/models/timestamp.rb index 8abd244f84c5..a8bf9f4cb845 100644 --- a/app/models/timestamp.rb +++ b/app/models/timestamp.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/api.rb b/app/models/token/api.rb index dca73edcac5f..8b62546e0db4 100644 --- a/app/models/token/api.rb +++ b/app/models/token/api.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/auto_login.rb b/app/models/token/auto_login.rb index 92b975853ed6..5ea45679bfeb 100644 --- a/app/models/token/auto_login.rb +++ b/app/models/token/auto_login.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/backup.rb b/app/models/token/backup.rb index c74271720cbb..30baaacd72fe 100644 --- a/app/models/token/backup.rb +++ b/app/models/token/backup.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/enterprise_trial_key.rb b/app/models/token/enterprise_trial_key.rb index 224a657c08f0..c5b608e85503 100644 --- a/app/models/token/enterprise_trial_key.rb +++ b/app/models/token/enterprise_trial_key.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/ical.rb b/app/models/token/ical.rb index b93c72b19ff1..b58743f2fd86 100644 --- a/app/models/token/ical.rb +++ b/app/models/token/ical.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/invitation.rb b/app/models/token/invitation.rb index 99acb0434f8c..8b66a7730dcc 100644 --- a/app/models/token/invitation.rb +++ b/app/models/token/invitation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/recovery.rb b/app/models/token/recovery.rb index 6ab4f08d417d..8f66d385f5ba 100644 --- a/app/models/token/recovery.rb +++ b/app/models/token/recovery.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/token/rss.rb b/app/models/token/rss.rb index d1589d6ead59..043a4cb94ffc 100644 --- a/app/models/token/rss.rb +++ b/app/models/token/rss.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/type.rb b/app/models/type.rb index 5465bad85bc2..2c7deb928070 100644 --- a/app/models/type.rb +++ b/app/models/type.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -26,7 +26,7 @@ # See COPYRIGHT and LICENSE files for more details. #++ -class ::Type < ApplicationRecord +class Type < ApplicationRecord # Work Package attributes for this type # and constraints to specific attributes (by plugins). include ::Type::Attributes diff --git a/app/models/type/attribute_group.rb b/app/models/type/attribute_group.rb index 5c0df238399b..a58b55bf04b2 100644 --- a/app/models/type/attribute_group.rb +++ b/app/models/type/attribute_group.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/type/attribute_groups.rb b/app/models/type/attribute_groups.rb index 235baa21427e..de5ba4e0233e 100644 --- a/app/models/type/attribute_groups.rb +++ b/app/models/type/attribute_groups.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/type/attributes.rb b/app/models/type/attributes.rb index fc7952c146d7..61a0cc8f3c8c 100644 --- a/app/models/type/attributes.rb +++ b/app/models/type/attributes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/type/form_group.rb b/app/models/type/form_group.rb index e44aaf4c2923..967a76cdc91a 100644 --- a/app/models/type/form_group.rb +++ b/app/models/type/form_group.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/type/inexistent_type.rb b/app/models/type/inexistent_type.rb index bb438d52b0d7..5cf6b8c1974e 100644 --- a/app/models/type/inexistent_type.rb +++ b/app/models/type/inexistent_type.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/type/query_group.rb b/app/models/type/query_group.rb index caa40011b74f..b9e4d6b41a64 100644 --- a/app/models/type/query_group.rb +++ b/app/models/type/query_group.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/types/scopes/milestone.rb b/app/models/types/scopes/milestone.rb index 42ccd7c43704..984a2a362c3a 100644 --- a/app/models/types/scopes/milestone.rb +++ b/app/models/types/scopes/milestone.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/user.rb b/app/models/user.rb index fdefc5f13557..23e85c02b3bf 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -189,6 +189,15 @@ def mail=(arg) write_attribute(:mail, arg.to_s.strip) end + def self.available_custom_fields(_user) + user = User.current + RequestStore.fetch(:"#{name.underscore}_custom_fields_#{user.id}_#{user.admin?}") do + scope = CustomField.where(type: "#{name}CustomField").order(:position) + scope = scope.where(admin_only: false) if !user.admin? + scope + end + end + def self.search_in_project(query, options) options.fetch(:project).users.like(query) end diff --git a/app/models/user_custom_field.rb b/app/models/user_custom_field.rb index 7d3d58bd8e2e..a3c75f5a233b 100644 --- a/app/models/user_custom_field.rb +++ b/app/models/user_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/user_password.rb b/app/models/user_password.rb index 20a1618844bb..8e2bccb04a7f 100644 --- a/app/models/user_password.rb +++ b/app/models/user_password.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/user_password/bcrypt.rb b/app/models/user_password/bcrypt.rb index 8c9a087e9598..cdab238e5bb1 100644 --- a/app/models/user_password/bcrypt.rb +++ b/app/models/user_password/bcrypt.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/user_password/sha1.rb b/app/models/user_password/sha1.rb index 21d89932d7f1..71b125ab1011 100644 --- a/app/models/user_password/sha1.rb +++ b/app/models/user_password/sha1.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index b242b7771cdc..a2f49ede552a 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/user_preferences/schema.rb b/app/models/user_preferences/schema.rb index 222ffd0bf701..3902d3e325a7 100644 --- a/app/models/user_preferences/schema.rb +++ b/app/models/user_preferences/schema.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -23,7 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -# See docs/COPYRIGHT.rdoc for more details. +# See COPYRIGHT and LICENSE files for more details. #++ class UserPreferences::Schema diff --git a/app/models/users/inexistent_user.rb b/app/models/users/inexistent_user.rb index fe83f4e78659..1d970832e46b 100644 --- a/app/models/users/inexistent_user.rb +++ b/app/models/users/inexistent_user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/permission_checks.rb b/app/models/users/permission_checks.rb index 3c60d3377de8..1703f748b962 100644 --- a/app/models/users/permission_checks.rb +++ b/app/models/users/permission_checks.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/project_authorization_cache.rb b/app/models/users/project_authorization_cache.rb index b2997508c806..68b9a5c1659f 100644 --- a/app/models/users/project_authorization_cache.rb +++ b/app/models/users/project_authorization_cache.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/project_role_cache.rb b/app/models/users/project_role_cache.rb index 290cc54b5aed..56c629d2654e 100644 --- a/app/models/users/project_role_cache.rb +++ b/app/models/users/project_role_cache.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/scopes/find_by_login.rb b/app/models/users/scopes/find_by_login.rb index c516028d14db..a32e1d9c0c2b 100644 --- a/app/models/users/scopes/find_by_login.rb +++ b/app/models/users/scopes/find_by_login.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/scopes/having_reminder_mail_to_send.rb b/app/models/users/scopes/having_reminder_mail_to_send.rb index 0b59bce243f4..f9170672bf01 100644 --- a/app/models/users/scopes/having_reminder_mail_to_send.rb +++ b/app/models/users/scopes/having_reminder_mail_to_send.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/scopes/newest.rb b/app/models/users/scopes/newest.rb index 9708ce57776a..237bcc2f8878 100644 --- a/app/models/users/scopes/newest.rb +++ b/app/models/users/scopes/newest.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/scopes/notified_globally.rb b/app/models/users/scopes/notified_globally.rb index e3c2c4923ced..dba377362fcb 100644 --- a/app/models/users/scopes/notified_globally.rb +++ b/app/models/users/scopes/notified_globally.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/scopes/watcher_recipients.rb b/app/models/users/scopes/watcher_recipients.rb index c35c13e58e81..4c8694d7179c 100644 --- a/app/models/users/scopes/watcher_recipients.rb +++ b/app/models/users/scopes/watcher_recipients.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/users/scopes/with_time_zone.rb b/app/models/users/scopes/with_time_zone.rb index 2f78a015567d..6c367fcdb1a1 100644 --- a/app/models/users/scopes/with_time_zone.rb +++ b/app/models/users/scopes/with_time_zone.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/version.rb b/app/models/version.rb index 4193b80cd1b6..2cbd5a046211 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/version_custom_field.rb b/app/models/version_custom_field.rb index b8b9d726f55f..25f032c52461 100644 --- a/app/models/version_custom_field.rb +++ b/app/models/version_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/versions/project_sharing.rb b/app/models/versions/project_sharing.rb index 44526ac2b3ca..9f96dfb36104 100644 --- a/app/models/versions/project_sharing.rb +++ b/app/models/versions/project_sharing.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/versions/scopes/order_by_semver_name.rb b/app/models/versions/scopes/order_by_semver_name.rb index beafdbba4a2e..35545c9e8db1 100644 --- a/app/models/versions/scopes/order_by_semver_name.rb +++ b/app/models/versions/scopes/order_by_semver_name.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/versions/scopes/rolled_up.rb b/app/models/versions/scopes/rolled_up.rb index 1b83ff93ede4..9c18ade35968 100644 --- a/app/models/versions/scopes/rolled_up.rb +++ b/app/models/versions/scopes/rolled_up.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/versions/scopes/shared_with.rb b/app/models/versions/scopes/shared_with.rb index e3804bfb1552..6b1cc420ba6a 100644 --- a/app/models/versions/scopes/shared_with.rb +++ b/app/models/versions/scopes/shared_with.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/view.rb b/app/models/view.rb index d8263acf3a41..602084254bab 100644 --- a/app/models/view.rb +++ b/app/models/view.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/watcher.rb b/app/models/watcher.rb index 104cd741d42f..bd05d3cc0bcc 100644 --- a/app/models/watcher.rb +++ b/app/models/watcher.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/wiki.rb b/app/models/wiki.rb index b2438ae9904f..91f7a3e2765c 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 15a122044253..9da527d8a1db 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/wiki_redirect.rb b/app/models/wiki_redirect.rb index 1efe6b75b535..5189ad26ed9b 100644 --- a/app/models/wiki_redirect.rb +++ b/app/models/wiki_redirect.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/wikis/annotate.rb b/app/models/wikis/annotate.rb index 2bbf1a8da1f0..0469efff789b 100644 --- a/app/models/wikis/annotate.rb +++ b/app/models/wikis/annotate.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/wikis/diff.rb b/app/models/wikis/diff.rb index 0258d189645b..4b7e7b8fa785 100644 --- a/app/models/wikis/diff.rb +++ b/app/models/wikis/diff.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package.rb b/app/models/work_package.rb index 3c273544c96a..0ed89cfe3737 100644 --- a/app/models/work_package.rb +++ b/app/models/work_package.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -204,6 +204,14 @@ class WorkPackage < ApplicationRecord include WorkPackage::Journalized prepend Journable::Timestamps + def self.status_based_mode? + Setting.work_package_done_ratio == "status" + end + + def self.work_based_mode? + Setting.work_package_done_ratio == "field" + end + def self.use_status_for_done_ratio? Setting.work_package_done_ratio == "status" end diff --git a/app/models/work_package/ancestors.rb b/app/models/work_package/ancestors.rb index 789817b18cdd..cef1188ce1ff 100644 --- a/app/models/work_package/ancestors.rb +++ b/app/models/work_package/ancestors.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/ask_before_destruction.rb b/app/models/work_package/ask_before_destruction.rb index 123785390035..a0df735b5968 100644 --- a/app/models/work_package/ask_before_destruction.rb +++ b/app/models/work_package/ask_before_destruction.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/custom_actioned.rb b/app/models/work_package/custom_actioned.rb index fa631c1bb3fb..146fff0e0ab2 100644 --- a/app/models/work_package/custom_actioned.rb +++ b/app/models/work_package/custom_actioned.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/csv.rb b/app/models/work_package/exports/csv.rb index bbb01bee2eaf..052dd3f82925 100644 --- a/app/models/work_package/exports/csv.rb +++ b/app/models/work_package/exports/csv.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/compound_hours.rb b/app/models/work_package/exports/formatters/compound_hours.rb index 83fc49403277..c7f74b03eef7 100644 --- a/app/models/work_package/exports/formatters/compound_hours.rb +++ b/app/models/work_package/exports/formatters/compound_hours.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/costs.rb b/app/models/work_package/exports/formatters/costs.rb index 9ebe5b34852c..9133f3cfe02e 100644 --- a/app/models/work_package/exports/formatters/costs.rb +++ b/app/models/work_package/exports/formatters/costs.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/currency.rb b/app/models/work_package/exports/formatters/currency.rb index 01e03b090799..29795fe02867 100644 --- a/app/models/work_package/exports/formatters/currency.rb +++ b/app/models/work_package/exports/formatters/currency.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/days.rb b/app/models/work_package/exports/formatters/days.rb index 0a8c8928b9c0..d67fca9f1621 100644 --- a/app/models/work_package/exports/formatters/days.rb +++ b/app/models/work_package/exports/formatters/days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/done_ratio.rb b/app/models/work_package/exports/formatters/done_ratio.rb index dd1a1d929636..a85a5b9c547e 100644 --- a/app/models/work_package/exports/formatters/done_ratio.rb +++ b/app/models/work_package/exports/formatters/done_ratio.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/estimated_hours.rb b/app/models/work_package/exports/formatters/estimated_hours.rb index 48c61e7584f1..2746de765d95 100644 --- a/app/models/work_package/exports/formatters/estimated_hours.rb +++ b/app/models/work_package/exports/formatters/estimated_hours.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/hours.rb b/app/models/work_package/exports/formatters/hours.rb index 29419f559bd5..01f6e1d8bd51 100644 --- a/app/models/work_package/exports/formatters/hours.rb +++ b/app/models/work_package/exports/formatters/hours.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/remaining_hours.rb b/app/models/work_package/exports/formatters/remaining_hours.rb index c1e2e880f4be..c46434b7abd8 100644 --- a/app/models/work_package/exports/formatters/remaining_hours.rb +++ b/app/models/work_package/exports/formatters/remaining_hours.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/formatters/spent_units.rb b/app/models/work_package/exports/formatters/spent_units.rb index befa6f32ce94..1da1a8c9f04c 100644 --- a/app/models/work_package/exports/formatters/spent_units.rb +++ b/app/models/work_package/exports/formatters/spent_units.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/macros/attributes.rb b/app/models/work_package/exports/macros/attributes.rb index d8b30f793406..4216a45462aa 100644 --- a/app/models/work_package/exports/macros/attributes.rb +++ b/app/models/work_package/exports/macros/attributes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/exports/query_exporter.rb b/app/models/work_package/exports/query_exporter.rb index a72d20d68d27..f1620dd66e04 100644 --- a/app/models/work_package/exports/query_exporter.rb +++ b/app/models/work_package/exports/query_exporter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/hooks.rb b/app/models/work_package/hooks.rb index 24c40ac12203..751bb94baac1 100644 --- a/app/models/work_package/hooks.rb +++ b/app/models/work_package/hooks.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/inexistent_work_package.rb b/app/models/work_package/inexistent_work_package.rb index e33fe46fcb02..236d87f59e32 100644 --- a/app/models/work_package/inexistent_work_package.rb +++ b/app/models/work_package/inexistent_work_package.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/journalized.rb b/app/models/work_package/journalized.rb index 8d4372a3a7df..4289e1eb3d91 100644 --- a/app/models/work_package/journalized.rb +++ b/app/models/work_package/journalized.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/attachments.rb b/app/models/work_package/pdf_export/attachments.rb index d13a032127d7..7caf55ec0257 100644 --- a/app/models/work_package/pdf_export/attachments.rb +++ b/app/models/work_package/pdf_export/attachments.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/common.rb b/app/models/work_package/pdf_export/common.rb index 77799797c3b6..8d566dd3b337 100644 --- a/app/models/work_package/pdf_export/common.rb +++ b/app/models/work_package/pdf_export/common.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/cover.rb b/app/models/work_package/pdf_export/cover.rb index bebce1fdf0fa..ebac1df6b501 100644 --- a/app/models/work_package/pdf_export/cover.rb +++ b/app/models/work_package/pdf_export/cover.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/gantt.rb b/app/models/work_package/pdf_export/gantt.rb index 98ab9b03070b..778f286168f6 100644 --- a/app/models/work_package/pdf_export/gantt.rb +++ b/app/models/work_package/pdf_export/gantt.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/gantt/gantt_builder.rb b/app/models/work_package/pdf_export/gantt/gantt_builder.rb index 2e570a592fff..334697cfbe75 100644 --- a/app/models/work_package/pdf_export/gantt/gantt_builder.rb +++ b/app/models/work_package/pdf_export/gantt/gantt_builder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -743,14 +743,15 @@ def work_package_info_line(work_package) def work_package_info_line_date(work_package) if work_package.start_date == work_package.due_date - format_pdf_date(work_package.start_date) + format_pdf_date(work_package, :start_date) else - "#{format_pdf_date(work_package.start_date)} - #{format_pdf_date(work_package.due_date)}" + "#{format_pdf_date(work_package, :start_date)} - #{format_pdf_date(work_package, :due_date)}" end end - def format_pdf_date(date) - date.nil? ? "" : format_date(date) + def format_pdf_date(work_package, date_field) + date = work_package.send(date_field) + date.nil? ? I18n.t("label_no_#{date_field}") : format_date(date) end # Builds the shape for the given work package diff --git a/app/models/work_package/pdf_export/gantt/gantt_builder_days.rb b/app/models/work_package/pdf_export/gantt/gantt_builder_days.rb index ae94d2f3bba7..829e2f8bb41f 100644 --- a/app/models/work_package/pdf_export/gantt/gantt_builder_days.rb +++ b/app/models/work_package/pdf_export/gantt/gantt_builder_days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/gantt/gantt_builder_months.rb b/app/models/work_package/pdf_export/gantt/gantt_builder_months.rb index 7e4ae3c339d5..2505a1d2de52 100644 --- a/app/models/work_package/pdf_export/gantt/gantt_builder_months.rb +++ b/app/models/work_package/pdf_export/gantt/gantt_builder_months.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/gantt/gantt_builder_quarters.rb b/app/models/work_package/pdf_export/gantt/gantt_builder_quarters.rb index 5942e85594c6..c6767403b3fe 100644 --- a/app/models/work_package/pdf_export/gantt/gantt_builder_quarters.rb +++ b/app/models/work_package/pdf_export/gantt/gantt_builder_quarters.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/gantt/gantt_builder_weeks.rb b/app/models/work_package/pdf_export/gantt/gantt_builder_weeks.rb index 54ee2e633820..f0cc8750a423 100644 --- a/app/models/work_package/pdf_export/gantt/gantt_builder_weeks.rb +++ b/app/models/work_package/pdf_export/gantt/gantt_builder_weeks.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/gantt/gantt_painter.rb b/app/models/work_package/pdf_export/gantt/gantt_painter.rb index 021cee0afb76..952b08b505b8 100644 --- a/app/models/work_package/pdf_export/gantt/gantt_painter.rb +++ b/app/models/work_package/pdf_export/gantt/gantt_painter.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/markdown.rb b/app/models/work_package/pdf_export/markdown.rb index 03bdde5f7461..bfcf94e04010 100644 --- a/app/models/work_package/pdf_export/markdown.rb +++ b/app/models/work_package/pdf_export/markdown.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/markdown_field.rb b/app/models/work_package/pdf_export/markdown_field.rb index f5d45baa1dd5..53ccd93dc8b6 100644 --- a/app/models/work_package/pdf_export/markdown_field.rb +++ b/app/models/work_package/pdf_export/markdown_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/overview_table.rb b/app/models/work_package/pdf_export/overview_table.rb index 65b96886530d..c44684665114 100644 --- a/app/models/work_package/pdf_export/overview_table.rb +++ b/app/models/work_package/pdf_export/overview_table.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/page.rb b/app/models/work_package/pdf_export/page.rb index 2d6a96f784f7..ff5f1eea866b 100644 --- a/app/models/work_package/pdf_export/page.rb +++ b/app/models/work_package/pdf_export/page.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/style.rb b/app/models/work_package/pdf_export/style.rb index f507fb344adb..349bc977d67f 100644 --- a/app/models/work_package/pdf_export/style.rb +++ b/app/models/work_package/pdf_export/style.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/sums_table.rb b/app/models/work_package/pdf_export/sums_table.rb index 050eb3790f15..c34c08ad4eb0 100644 --- a/app/models/work_package/pdf_export/sums_table.rb +++ b/app/models/work_package/pdf_export/sums_table.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/table_of_contents.rb b/app/models/work_package/pdf_export/table_of_contents.rb index 8295ef560117..8d763bb21d09 100644 --- a/app/models/work_package/pdf_export/table_of_contents.rb +++ b/app/models/work_package/pdf_export/table_of_contents.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/view.rb b/app/models/work_package/pdf_export/view.rb index cdf583dcacce..86f9c4418c61 100644 --- a/app/models/work_package/pdf_export/view.rb +++ b/app/models/work_package/pdf_export/view.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/work_package_detail.rb b/app/models/work_package/pdf_export/work_package_detail.rb index 632ea724c8fc..faf82aef1ba8 100644 --- a/app/models/work_package/pdf_export/work_package_detail.rb +++ b/app/models/work_package/pdf_export/work_package_detail.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/work_package_list_to_pdf.rb b/app/models/work_package/pdf_export/work_package_list_to_pdf.rb index f933b5f6ee7d..195e79cb4170 100644 --- a/app/models/work_package/pdf_export/work_package_list_to_pdf.rb +++ b/app/models/work_package/pdf_export/work_package_list_to_pdf.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/pdf_export/work_package_to_pdf.rb b/app/models/work_package/pdf_export/work_package_to_pdf.rb index ea69bfbe5729..9f85c9d9572b 100644 --- a/app/models/work_package/pdf_export/work_package_to_pdf.rb +++ b/app/models/work_package/pdf_export/work_package_to_pdf.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/scheduling_rules.rb b/app/models/work_package/scheduling_rules.rb index 6b8991e78813..311ae978481b 100644 --- a/app/models/work_package/scheduling_rules.rb +++ b/app/models/work_package/scheduling_rules.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/status_transitions.rb b/app/models/work_package/status_transitions.rb index b4603fdd20aa..872562b49cda 100644 --- a/app/models/work_package/status_transitions.rb +++ b/app/models/work_package/status_transitions.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/time_entries_cleaner.rb b/app/models/work_package/time_entries_cleaner.rb index 03a2dbec3b53..654818a3ea8a 100644 --- a/app/models/work_package/time_entries_cleaner.rb +++ b/app/models/work_package/time_entries_cleaner.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package/validations.rb b/app/models/work_package/validations.rb index 94f1c37475ef..80c849dc620a 100644 --- a/app/models/work_package/validations.rb +++ b/app/models/work_package/validations.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -34,7 +34,7 @@ module WorkPackage::Validations validates :subject, length: { maximum: 255 } validates :done_ratio, inclusion: { in: 0..100 }, allow_nil: true - validates :estimated_hours, numericality: { allow_nil: true } + validates :estimated_hours, numericality: { allow_nil: true, greater_than_or_equal_to: 0 } validates :remaining_hours, numericality: { allow_nil: true, greater_than_or_equal_to: 0 } validates :derived_remaining_hours, numericality: { allow_nil: true, greater_than_or_equal_to: 0 } diff --git a/app/models/work_package_custom_field.rb b/app/models/work_package_custom_field.rb index d2f84ea2b45e..1b1a68fe5bc8 100644 --- a/app/models/work_package_custom_field.rb +++ b/app/models/work_package_custom_field.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_package_role.rb b/app/models/work_package_role.rb index e5e0cd2f5e6b..e2fa4e9e91de 100644 --- a/app/models/work_package_role.rb +++ b/app/models/work_package_role.rb @@ -3,7 +3,7 @@ # #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/costs.rb b/app/models/work_packages/costs.rb index ede0e36c1a8c..617aa8054107 100644 --- a/app/models/work_packages/costs.rb +++ b/app/models/work_packages/costs.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/derived_dates.rb b/app/models/work_packages/derived_dates.rb index f8a74b43f406..182620865efb 100644 --- a/app/models/work_packages/derived_dates.rb +++ b/app/models/work_packages/derived_dates.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/relations.rb b/app/models/work_packages/relations.rb index 16bc742a02a4..12dc4d3da507 100644 --- a/app/models/work_packages/relations.rb +++ b/app/models/work_packages/relations.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/allowed_to.rb b/app/models/work_packages/scopes/allowed_to.rb index 45a26ca41af5..51da208c82e3 100644 --- a/app/models/work_packages/scopes/allowed_to.rb +++ b/app/models/work_packages/scopes/allowed_to.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/covering_dates_and_days_of_week.rb b/app/models/work_packages/scopes/covering_dates_and_days_of_week.rb index fa352b50f66f..87fb3bdda656 100644 --- a/app/models/work_packages/scopes/covering_dates_and_days_of_week.rb +++ b/app/models/work_packages/scopes/covering_dates_and_days_of_week.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/directly_related.rb b/app/models/work_packages/scopes/directly_related.rb index 5082cd06dcd7..b29b99cbdfaf 100644 --- a/app/models/work_packages/scopes/directly_related.rb +++ b/app/models/work_packages/scopes/directly_related.rb @@ -1,6 +1,6 @@ # --copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/for_scheduling.rb b/app/models/work_packages/scopes/for_scheduling.rb index b8e2d776547a..686d6895eb86 100644 --- a/app/models/work_packages/scopes/for_scheduling.rb +++ b/app/models/work_packages/scopes/for_scheduling.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/include_derived_dates.rb b/app/models/work_packages/scopes/include_derived_dates.rb index 6d5c206a3168..9a2c0ad7fc8c 100644 --- a/app/models/work_packages/scopes/include_derived_dates.rb +++ b/app/models/work_packages/scopes/include_derived_dates.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/include_spent_time.rb b/app/models/work_packages/scopes/include_spent_time.rb index aed520aecd4a..ac0cfe3ced1d 100644 --- a/app/models/work_packages/scopes/include_spent_time.rb +++ b/app/models/work_packages/scopes/include_spent_time.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/involving_user.rb b/app/models/work_packages/scopes/involving_user.rb index fc9d4bb3ca04..da00ea9a04b5 100644 --- a/app/models/work_packages/scopes/involving_user.rb +++ b/app/models/work_packages/scopes/involving_user.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/left_join_self_and_descendants.rb b/app/models/work_packages/scopes/left_join_self_and_descendants.rb index e1210fc44970..5dd0b83e8cc0 100644 --- a/app/models/work_packages/scopes/left_join_self_and_descendants.rb +++ b/app/models/work_packages/scopes/left_join_self_and_descendants.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/scopes/relatable.rb b/app/models/work_packages/scopes/relatable.rb index 5190c72be2a3..d78d1cdc1c7d 100644 --- a/app/models/work_packages/scopes/relatable.rb +++ b/app/models/work_packages/scopes/relatable.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/work_packages/spent_time.rb b/app/models/work_packages/spent_time.rb index 276105882ff1..f2088973e7c3 100644 --- a/app/models/work_packages/spent_time.rb +++ b/app/models/work_packages/spent_time.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/models/workflow.rb b/app/models/workflow.rb index 2759ab965a0b..ddeaa8311171 100644 --- a/app/models/workflow.rb +++ b/app/models/workflow.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/base_policy.rb b/app/policies/base_policy.rb index def1eda6cb28..e8446476f880 100644 --- a/app/policies/base_policy.rb +++ b/app/policies/base_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/query_policy.rb b/app/policies/query_policy.rb index e59375ac44c7..03f24e5202fb 100644 --- a/app/policies/query_policy.rb +++ b/app/policies/query_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/redirect_policy.rb b/app/policies/redirect_policy.rb index 9b672373fac2..95fcb5f725df 100644 --- a/app/policies/redirect_policy.rb +++ b/app/policies/redirect_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/scm/authorization_policy.rb b/app/policies/scm/authorization_policy.rb index cf385e34042c..5cf8140405eb 100644 --- a/app/policies/scm/authorization_policy.rb +++ b/app/policies/scm/authorization_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/scm/git_authorization_policy.rb b/app/policies/scm/git_authorization_policy.rb index 1586a355f8b3..c38ca9fc1ebc 100644 --- a/app/policies/scm/git_authorization_policy.rb +++ b/app/policies/scm/git_authorization_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/scm/subversion_authorization_policy.rb b/app/policies/scm/subversion_authorization_policy.rb index f42abf756aad..65e4e35a5379 100644 --- a/app/policies/scm/subversion_authorization_policy.rb +++ b/app/policies/scm/subversion_authorization_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/policies/work_package_policy.rb b/app/policies/work_package_policy.rb index 206df16ccff2..c30b4316f1c5 100644 --- a/app/policies/work_package_policy.rb +++ b/app/policies/work_package_policy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/admin_user_seeder.rb b/app/seeders/admin_user_seeder.rb index 279a37cde00b..861e5e3fa7e9 100644 --- a/app/seeders/admin_user_seeder.rb +++ b/app/seeders/admin_user_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/base_role_seeder.rb b/app/seeders/basic_data/base_role_seeder.rb index b7d6120a8d21..e1ffed74629e 100644 --- a/app/seeders/basic_data/base_role_seeder.rb +++ b/app/seeders/basic_data/base_role_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/builtin_users_seeder.rb b/app/seeders/basic_data/builtin_users_seeder.rb index e50933c3e7df..64f7a76fabd5 100644 --- a/app/seeders/basic_data/builtin_users_seeder.rb +++ b/app/seeders/basic_data/builtin_users_seeder.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/color_scheme_seeder.rb b/app/seeders/basic_data/color_scheme_seeder.rb index 3394a9726b54..ee548d716900 100644 --- a/app/seeders/basic_data/color_scheme_seeder.rb +++ b/app/seeders/basic_data/color_scheme_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/color_seeder.rb b/app/seeders/basic_data/color_seeder.rb index d308dfff323f..225c372b704d 100644 --- a/app/seeders/basic_data/color_seeder.rb +++ b/app/seeders/basic_data/color_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/global_role_seeder.rb b/app/seeders/basic_data/global_role_seeder.rb index 7c4fca5efffd..483a78c95fcb 100644 --- a/app/seeders/basic_data/global_role_seeder.rb +++ b/app/seeders/basic_data/global_role_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/model_seeder.rb b/app/seeders/basic_data/model_seeder.rb index 9ceb91485d3d..979518804194 100644 --- a/app/seeders/basic_data/model_seeder.rb +++ b/app/seeders/basic_data/model_seeder.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/priority_seeder.rb b/app/seeders/basic_data/priority_seeder.rb index ca67ddea0076..0ec9a7e41d3c 100644 --- a/app/seeders/basic_data/priority_seeder.rb +++ b/app/seeders/basic_data/priority_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/project_custom_field_section_seeder.rb b/app/seeders/basic_data/project_custom_field_section_seeder.rb index ca36708e2fb3..f633a0d8b81e 100644 --- a/app/seeders/basic_data/project_custom_field_section_seeder.rb +++ b/app/seeders/basic_data/project_custom_field_section_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/project_query_role_seeder.rb b/app/seeders/basic_data/project_query_role_seeder.rb index 5d6ae5182586..909bec4916f5 100644 --- a/app/seeders/basic_data/project_query_role_seeder.rb +++ b/app/seeders/basic_data/project_query_role_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/project_role_seeder.rb b/app/seeders/basic_data/project_role_seeder.rb index 7883c90d29ce..643d66fa85d8 100644 --- a/app/seeders/basic_data/project_role_seeder.rb +++ b/app/seeders/basic_data/project_role_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/setting_seeder.rb b/app/seeders/basic_data/setting_seeder.rb index 8540a8be8b83..0f4c3feec857 100644 --- a/app/seeders/basic_data/setting_seeder.rb +++ b/app/seeders/basic_data/setting_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/status_seeder.rb b/app/seeders/basic_data/status_seeder.rb index 6f26f64c155c..29418e3f5e56 100644 --- a/app/seeders/basic_data/status_seeder.rb +++ b/app/seeders/basic_data/status_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/time_entry_activity_seeder.rb b/app/seeders/basic_data/time_entry_activity_seeder.rb index 002946a63490..1e5272d8fa1c 100644 --- a/app/seeders/basic_data/time_entry_activity_seeder.rb +++ b/app/seeders/basic_data/time_entry_activity_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/type_configuration_seeder.rb b/app/seeders/basic_data/type_configuration_seeder.rb index 4a3f5e04dff9..650a441f2f96 100644 --- a/app/seeders/basic_data/type_configuration_seeder.rb +++ b/app/seeders/basic_data/type_configuration_seeder.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/type_seeder.rb b/app/seeders/basic_data/type_seeder.rb index fd20df8a2b12..4fb5b0e51e51 100644 --- a/app/seeders/basic_data/type_seeder.rb +++ b/app/seeders/basic_data/type_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/work_package_role_seeder.rb b/app/seeders/basic_data/work_package_role_seeder.rb index f1c09cf8b8a6..6b3f9ebc6072 100644 --- a/app/seeders/basic_data/work_package_role_seeder.rb +++ b/app/seeders/basic_data/work_package_role_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data/workflow_seeder.rb b/app/seeders/basic_data/workflow_seeder.rb index 30e761235528..ea0fd18a9a47 100644 --- a/app/seeders/basic_data/workflow_seeder.rb +++ b/app/seeders/basic_data/workflow_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/basic_data_seeder.rb b/app/seeders/basic_data_seeder.rb index 88f901503563..cab11375391f 100644 --- a/app/seeders/basic_data_seeder.rb +++ b/app/seeders/basic_data_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/common.yml b/app/seeders/common.yml index 09a4e0c4297d..16ca0a3560ca 100644 --- a/app/seeders/common.yml +++ b/app/seeders/common.yml @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/composite_seeder.rb b/app/seeders/composite_seeder.rb index cd51995eecb3..4bdfbde74cb5 100644 --- a/app/seeders/composite_seeder.rb +++ b/app/seeders/composite_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/create_attachments.rb b/app/seeders/demo_data/create_attachments.rb index 8b1a2a267a17..db643f90ae5b 100644 --- a/app/seeders/demo_data/create_attachments.rb +++ b/app/seeders/demo_data/create_attachments.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/global_query_seeder.rb b/app/seeders/demo_data/global_query_seeder.rb index fc1dcf2abafa..de51f2d3bae2 100644 --- a/app/seeders/demo_data/global_query_seeder.rb +++ b/app/seeders/demo_data/global_query_seeder.rb @@ -1,7 +1,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/group_seeder.rb b/app/seeders/demo_data/group_seeder.rb index 476e7a50ef2f..cb7bd1de2cd8 100644 --- a/app/seeders/demo_data/group_seeder.rb +++ b/app/seeders/demo_data/group_seeder.rb @@ -1,7 +1,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/project_seeder.rb b/app/seeders/demo_data/project_seeder.rb index 5e005120fe83..cb7f1fb66190 100644 --- a/app/seeders/demo_data/project_seeder.rb +++ b/app/seeders/demo_data/project_seeder.rb @@ -1,7 +1,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/projects_seeder.rb b/app/seeders/demo_data/projects_seeder.rb index 13ce66e993aa..1bcba5781492 100644 --- a/app/seeders/demo_data/projects_seeder.rb +++ b/app/seeders/demo_data/projects_seeder.rb @@ -1,7 +1,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/query_builder.rb b/app/seeders/demo_data/query_builder.rb index e9bdc2568691..22349fea3ddf 100644 --- a/app/seeders/demo_data/query_builder.rb +++ b/app/seeders/demo_data/query_builder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/references.rb b/app/seeders/demo_data/references.rb index 235047fb5e9b..60752ae2260a 100644 --- a/app/seeders/demo_data/references.rb +++ b/app/seeders/demo_data/references.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/version_builder.rb b/app/seeders/demo_data/version_builder.rb index d7a4def70448..28f434498d5f 100644 --- a/app/seeders/demo_data/version_builder.rb +++ b/app/seeders/demo_data/version_builder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/wiki_seeder.rb b/app/seeders/demo_data/wiki_seeder.rb index 47d59317ba31..56337b7cd5b6 100644 --- a/app/seeders/demo_data/wiki_seeder.rb +++ b/app/seeders/demo_data/wiki_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/work_package_board_seeder.rb b/app/seeders/demo_data/work_package_board_seeder.rb index 1011df52ee62..94c3de9f4a67 100644 --- a/app/seeders/demo_data/work_package_board_seeder.rb +++ b/app/seeders/demo_data/work_package_board_seeder.rb @@ -1,7 +1,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data/work_package_seeder.rb b/app/seeders/demo_data/work_package_seeder.rb index 4306149882bc..efee28ae1cdf 100644 --- a/app/seeders/demo_data/work_package_seeder.rb +++ b/app/seeders/demo_data/work_package_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/demo_data_seeder.rb b/app/seeders/demo_data_seeder.rb index 006db0ddfeb6..b2051e49b0ec 100644 --- a/app/seeders/demo_data_seeder.rb +++ b/app/seeders/demo_data_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/development_data/custom_fields_seeder.rb b/app/seeders/development_data/custom_fields_seeder.rb index 355a4ccf40ef..5dda28641bdf 100644 --- a/app/seeders/development_data/custom_fields_seeder.rb +++ b/app/seeders/development_data/custom_fields_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/development_data/projects_seeder.rb b/app/seeders/development_data/projects_seeder.rb index 51677b913b7e..62d1930cccff 100644 --- a/app/seeders/development_data/projects_seeder.rb +++ b/app/seeders/development_data/projects_seeder.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/development_data/shared_work_packages_seeder.rb b/app/seeders/development_data/shared_work_packages_seeder.rb index b7e215af68df..de544cf177f3 100644 --- a/app/seeders/development_data/shared_work_packages_seeder.rb +++ b/app/seeders/development_data/shared_work_packages_seeder.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/development_data/users_seeder.rb b/app/seeders/development_data/users_seeder.rb index 374dfeae9a64..e7d5948e94fe 100644 --- a/app/seeders/development_data/users_seeder.rb +++ b/app/seeders/development_data/users_seeder.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/development_data_seeder.rb b/app/seeders/development_data_seeder.rb index a7a9b3fad34b..a60ab31bd929 100644 --- a/app/seeders/development_data_seeder.rb +++ b/app/seeders/development_data_seeder.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/env_data/ldap_seeder.rb b/app/seeders/env_data/ldap_seeder.rb index ef5003523f8d..26d7b9b3bd51 100644 --- a/app/seeders/env_data/ldap_seeder.rb +++ b/app/seeders/env_data/ldap_seeder.rb @@ -1,7 +1,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/env_data_seeder.rb b/app/seeders/env_data_seeder.rb index b12ee6ebd964..bbda615cb625 100644 --- a/app/seeders/env_data_seeder.rb +++ b/app/seeders/env_data_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/root_seeder.rb b/app/seeders/root_seeder.rb index 840fe59b85e1..c1a683ca0f5c 100644 --- a/app/seeders/root_seeder.rb +++ b/app/seeders/root_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/seeder.rb b/app/seeders/seeder.rb index 060ea4853f1d..a9438416a45b 100644 --- a/app/seeders/seeder.rb +++ b/app/seeders/seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/source/filter_translatables.rb b/app/seeders/source/filter_translatables.rb index a27a2434552c..fb84af79c812 100644 --- a/app/seeders/source/filter_translatables.rb +++ b/app/seeders/source/filter_translatables.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/source/seed_data.rb b/app/seeders/source/seed_data.rb index aefb3aad5615..f3813a98e8c2 100644 --- a/app/seeders/source/seed_data.rb +++ b/app/seeders/source/seed_data.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/source/seed_data_loader.rb b/app/seeders/source/seed_data_loader.rb index b946c2504bb5..49ae41554d7b 100644 --- a/app/seeders/source/seed_data_loader.rb +++ b/app/seeders/source/seed_data_loader.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/source/seed_file.rb b/app/seeders/source/seed_file.rb index 310975b6c46f..667c025699c4 100644 --- a/app/seeders/source/seed_file.rb +++ b/app/seeders/source/seed_file.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/source/translate.rb b/app/seeders/source/translate.rb index 9228257f036e..7f29cf923a69 100644 --- a/app/seeders/source/translate.rb +++ b/app/seeders/source/translate.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/standard.yml b/app/seeders/standard.yml index 147cc292d07a..a177de929704 100644 --- a/app/seeders/standard.yml +++ b/app/seeders/standard.yml @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/seeders/standard/basic_data_seeder.rb b/app/seeders/standard/basic_data_seeder.rb index 45521cff5bbe..5c6c06c8ee29 100644 --- a/app/seeders/standard/basic_data_seeder.rb +++ b/app/seeders/standard/basic_data_seeder.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/add_work_package_note_service.rb b/app/services/add_work_package_note_service.rb index 0e9f933e5b00..d0bf6ff79b61 100644 --- a/app/services/add_work_package_note_service.rb +++ b/app/services/add_work_package_note_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/parse_resource_params_service.rb b/app/services/api/parse_resource_params_service.rb index 02c388a24c57..97ccf4f7c01d 100644 --- a/app/services/api/parse_resource_params_service.rb +++ b/app/services/api/parse_resource_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/parser_struct.rb b/app/services/api/parser_struct.rb index 89d49f3b10a9..5e853f6e7525 100644 --- a/app/services/api/parser_struct.rb +++ b/app/services/api/parser_struct.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/v3/params_to_query_service.rb b/app/services/api/v3/params_to_query_service.rb index b30da1fbb6b1..afa0a63561b7 100644 --- a/app/services/api/v3/params_to_query_service.rb +++ b/app/services/api/v3/params_to_query_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/v3/parse_query_params_service.rb b/app/services/api/v3/parse_query_params_service.rb index 487abb47a1bb..ee09482cb926 100644 --- a/app/services/api/v3/parse_query_params_service.rb +++ b/app/services/api/v3/parse_query_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/v3/parse_resource_params_service.rb b/app/services/api/v3/parse_resource_params_service.rb index 7ea8e5454bff..c7f963c2ff11 100644 --- a/app/services/api/v3/parse_resource_params_service.rb +++ b/app/services/api/v3/parse_resource_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/v3/update_query_from_v3_params_service.rb b/app/services/api/v3/update_query_from_v3_params_service.rb index 3e33c262bfdd..d6a45071eb57 100644 --- a/app/services/api/v3/update_query_from_v3_params_service.rb +++ b/app/services/api/v3/update_query_from_v3_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/v3/work_package_collection_from_query_params_service.rb b/app/services/api/v3/work_package_collection_from_query_params_service.rb index ffba34045dce..4bba60f3cd6e 100644 --- a/app/services/api/v3/work_package_collection_from_query_params_service.rb +++ b/app/services/api/v3/work_package_collection_from_query_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/api/v3/work_package_collection_from_query_service.rb b/app/services/api/v3/work_package_collection_from_query_service.rb index 886b9298765b..268db1162f6f 100644 --- a/app/services/api/v3/work_package_collection_from_query_service.rb +++ b/app/services/api/v3/work_package_collection_from_query_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/base_service.rb b/app/services/attachments/base_service.rb index c79925a54bb2..3ebf934fd849 100644 --- a/app/services/attachments/base_service.rb +++ b/app/services/attachments/base_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -23,7 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -# See docs/COPYRIGHT.rdoc for more details. +# See COPYRIGHT and LICENSE files for more details. #++ module Attachments diff --git a/app/services/attachments/build_service.rb b/app/services/attachments/build_service.rb index 9466ff5b3d43..f55fe7e13dff 100644 --- a/app/services/attachments/build_service.rb +++ b/app/services/attachments/build_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/clamav_service.rb b/app/services/attachments/clamav_service.rb index cbd51517abe2..dbd4d668b794 100644 --- a/app/services/attachments/clamav_service.rb +++ b/app/services/attachments/clamav_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/create_service.rb b/app/services/attachments/create_service.rb index 761d832827cf..54f81827d6f1 100644 --- a/app/services/attachments/create_service.rb +++ b/app/services/attachments/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/delete_service.rb b/app/services/attachments/delete_service.rb index 993296ae7801..bd1f0924cbb2 100644 --- a/app/services/attachments/delete_service.rb +++ b/app/services/attachments/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/prepare_upload_service.rb b/app/services/attachments/prepare_upload_service.rb index 392804ed6a90..844757ed39c7 100644 --- a/app/services/attachments/prepare_upload_service.rb +++ b/app/services/attachments/prepare_upload_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/replace_attachments.rb b/app/services/attachments/replace_attachments.rb index cbf570abb9f5..029185aa377b 100644 --- a/app/services/attachments/replace_attachments.rb +++ b/app/services/attachments/replace_attachments.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/set_attributes_service.rb b/app/services/attachments/set_attributes_service.rb index 38fb7d536380..d8c7de3899a1 100644 --- a/app/services/attachments/set_attributes_service.rb +++ b/app/services/attachments/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/set_prepared_attributes_service.rb b/app/services/attachments/set_prepared_attributes_service.rb index 4da64362694a..7bd371439222 100644 --- a/app/services/attachments/set_prepared_attributes_service.rb +++ b/app/services/attachments/set_prepared_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/set_replacements.rb b/app/services/attachments/set_replacements.rb index 18a72259517e..70b43d65a0f7 100644 --- a/app/services/attachments/set_replacements.rb +++ b/app/services/attachments/set_replacements.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attachments/touch_container.rb b/app/services/attachments/touch_container.rb index 68b53ae9796d..010d903359fc 100644 --- a/app/services/attachments/touch_container.rb +++ b/app/services/attachments/touch_container.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attribute_help_texts/create_service.rb b/app/services/attribute_help_texts/create_service.rb index 2114f48d7ad7..240ad5ae2609 100644 --- a/app/services/attribute_help_texts/create_service.rb +++ b/app/services/attribute_help_texts/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attribute_help_texts/set_attributes_service.rb b/app/services/attribute_help_texts/set_attributes_service.rb index 52b13432eb9c..4d563799efad 100644 --- a/app/services/attribute_help_texts/set_attributes_service.rb +++ b/app/services/attribute_help_texts/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/attribute_help_texts/update_service.rb b/app/services/attribute_help_texts/update_service.rb index 44de200833d8..f6a0658c4381 100644 --- a/app/services/attribute_help_texts/update_service.rb +++ b/app/services/attribute_help_texts/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authentication/omniauth_service.rb b/app/services/authentication/omniauth_service.rb index 51bcdf2dbf66..47f18d600691 100644 --- a/app/services/authentication/omniauth_service.rb +++ b/app/services/authentication/omniauth_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization.rb b/app/services/authorization.rb index 1a9c8cfd2f6d..737f7c14e74e 100644 --- a/app/services/authorization.rb +++ b/app/services/authorization.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/abstract_query.rb b/app/services/authorization/abstract_query.rb index 79ff9151ce5d..e9ac68bbf7b1 100644 --- a/app/services/authorization/abstract_query.rb +++ b/app/services/authorization/abstract_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/abstract_user_query.rb b/app/services/authorization/abstract_user_query.rb index bb3da6ec25c7..6c1dfe34da3f 100644 --- a/app/services/authorization/abstract_user_query.rb +++ b/app/services/authorization/abstract_user_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/enterprise_service.rb b/app/services/authorization/enterprise_service.rb index 8f0ee66dacdf..f07c857f0dae 100644 --- a/app/services/authorization/enterprise_service.rb +++ b/app/services/authorization/enterprise_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -29,29 +29,28 @@ class Authorization::EnterpriseService attr_accessor :token - GUARDED_ACTIONS = %i( + GUARDED_ACTIONS = %i[ baseline_comparison board_view conditional_highlighting custom_actions - custom_fields_in_projects_list date_alerts define_custom_style edit_attribute_groups + gantt_pdf_export grid_widget_wp_graph ldap_groups + one_drive_sharepoint_file_storage openid_providers placeholder_users + project_list_sharing readonly_work_packages team_planner_view two_factor_authentication + virus_scanning work_package_query_relation_columns work_package_sharing - one_drive_sharepoint_file_storage - virus_scanning - gantt_pdf_export - project_list_sharing - ).freeze + ].freeze def initialize(token) self.token = token diff --git a/app/services/authorization/illegal_permission_context_error.rb b/app/services/authorization/illegal_permission_context_error.rb index 4bd81afdcdec..3a92793461af 100644 --- a/app/services/authorization/illegal_permission_context_error.rb +++ b/app/services/authorization/illegal_permission_context_error.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/project_query.rb b/app/services/authorization/project_query.rb index ec764d6d6d8e..e3a6095fff74 100644 --- a/app/services/authorization/project_query.rb +++ b/app/services/authorization/project_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/query_transformation.rb b/app/services/authorization/query_transformation.rb index 6b1c92688264..0282155ab6ea 100644 --- a/app/services/authorization/query_transformation.rb +++ b/app/services/authorization/query_transformation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/query_transformation_visitor.rb b/app/services/authorization/query_transformation_visitor.rb index ba174b1130ae..461f8f52aaff 100644 --- a/app/services/authorization/query_transformation_visitor.rb +++ b/app/services/authorization/query_transformation_visitor.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/query_transformations.rb b/app/services/authorization/query_transformations.rb index 6ccda7444617..4d64b5d08fce 100644 --- a/app/services/authorization/query_transformations.rb +++ b/app/services/authorization/query_transformations.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/query_transformations_order.rb b/app/services/authorization/query_transformations_order.rb index e2858bdc587d..8184ff336684 100644 --- a/app/services/authorization/query_transformations_order.rb +++ b/app/services/authorization/query_transformations_order.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/unknown_permission_error.rb b/app/services/authorization/unknown_permission_error.rb index 7e428dfa8566..62ae252940d7 100644 --- a/app/services/authorization/unknown_permission_error.rb +++ b/app/services/authorization/unknown_permission_error.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/user_allowed_query.rb b/app/services/authorization/user_allowed_query.rb index f492a1772a98..5bb8110694bf 100644 --- a/app/services/authorization/user_allowed_query.rb +++ b/app/services/authorization/user_allowed_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/user_entity_roles_query.rb b/app/services/authorization/user_entity_roles_query.rb index cc8508b32c9b..b42aa3cc5749 100644 --- a/app/services/authorization/user_entity_roles_query.rb +++ b/app/services/authorization/user_entity_roles_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/user_global_roles_query.rb b/app/services/authorization/user_global_roles_query.rb index 1726d3b99aae..4fc93822512c 100644 --- a/app/services/authorization/user_global_roles_query.rb +++ b/app/services/authorization/user_global_roles_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/user_project_roles_query.rb b/app/services/authorization/user_project_roles_query.rb index dd1d59e8a85f..e62497dd26f8 100644 --- a/app/services/authorization/user_project_roles_query.rb +++ b/app/services/authorization/user_project_roles_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/authorization/user_roles_query.rb b/app/services/authorization/user_roles_query.rb index 7a0b96651c9b..d7659e2336eb 100644 --- a/app/services/authorization/user_roles_query.rb +++ b/app/services/authorization/user_roles_query.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/backups/create_service.rb b/app/services/backups/create_service.rb index 99fd19218c2e..39e11ca27bb3 100644 --- a/app/services/backups/create_service.rb +++ b/app/services/backups/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/backups/set_attributes_service.rb b/app/services/backups/set_attributes_service.rb index d2d03da9e582..cd543dbf8e33 100644 --- a/app/services/backups/set_attributes_service.rb +++ b/app/services/backups/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_project_service.rb b/app/services/base_project_service.rb index 57eb3603ba3c..a80f51678d2b 100644 --- a/app/services/base_project_service.rb +++ b/app/services/base_project_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/base_callable.rb b/app/services/base_services/base_callable.rb index fab7dbdad1a7..bf2f04efa834 100644 --- a/app/services/base_services/base_callable.rb +++ b/app/services/base_services/base_callable.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/base_contracted.rb b/app/services/base_services/base_contracted.rb index 2799c059d053..88a7873dd28c 100644 --- a/app/services/base_services/base_contracted.rb +++ b/app/services/base_services/base_contracted.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/copy.rb b/app/services/base_services/copy.rb index d0cad199a513..353f32f75dc8 100644 --- a/app/services/base_services/copy.rb +++ b/app/services/base_services/copy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/create.rb b/app/services/base_services/create.rb index c01dc2b045c5..eaf18c7157a2 100644 --- a/app/services/base_services/create.rb +++ b/app/services/base_services/create.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/delete.rb b/app/services/base_services/delete.rb index 6fb72472af94..c0a58d9a89fc 100644 --- a/app/services/base_services/delete.rb +++ b/app/services/base_services/delete.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/set_attributes.rb b/app/services/base_services/set_attributes.rb index abf0b68b99ec..53bd8907368f 100644 --- a/app/services/base_services/set_attributes.rb +++ b/app/services/base_services/set_attributes.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/update.rb b/app/services/base_services/update.rb index 0163c7736680..4d6ba410622e 100644 --- a/app/services/base_services/update.rb +++ b/app/services/base_services/update.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_services/write.rb b/app/services/base_services/write.rb index bdc578eebccb..cb39f7dfc318 100644 --- a/app/services/base_services/write.rb +++ b/app/services/base_services/write.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/base_type_service.rb b/app/services/base_type_service.rb index ac248bd4a44a..d536cb3a79b6 100644 --- a/app/services/base_type_service.rb +++ b/app/services/base_type_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/changesets/log_time_service.rb b/app/services/changesets/log_time_service.rb index be2549c93fb3..3663de2c1835 100644 --- a/app/services/changesets/log_time_service.rb +++ b/app/services/changesets/log_time_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/concerns/contracted.rb b/app/services/concerns/contracted.rb index 15693c8179dd..d514830e21c1 100644 --- a/app/services/concerns/contracted.rb +++ b/app/services/concerns/contracted.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/concerns/with_reversible_state.rb b/app/services/concerns/with_reversible_state.rb index 1142a156966c..ef3a3ac44ffa 100644 --- a/app/services/concerns/with_reversible_state.rb +++ b/app/services/concerns/with_reversible_state.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/copy/dependency.rb b/app/services/copy/dependency.rb index 57b11bd6f04a..e6aca6213c61 100644 --- a/app/services/copy/dependency.rb +++ b/app/services/copy/dependency.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/create_type_service.rb b/app/services/create_type_service.rb index 1a7a9141c7a6..91e22caae226 100644 --- a/app/services/create_type_service.rb +++ b/app/services/create_type_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/custom_actions/base_service.rb b/app/services/custom_actions/base_service.rb index 51a7eaa76f06..d2f1a2728dcd 100644 --- a/app/services/custom_actions/base_service.rb +++ b/app/services/custom_actions/base_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/custom_actions/create_service.rb b/app/services/custom_actions/create_service.rb index 08120c9ad09e..3b52a6427873 100644 --- a/app/services/custom_actions/create_service.rb +++ b/app/services/custom_actions/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/custom_actions/update_service.rb b/app/services/custom_actions/update_service.rb index 7830ad11ffb7..7e6835f95c88 100644 --- a/app/services/custom_actions/update_service.rb +++ b/app/services/custom_actions/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/custom_actions/update_work_package_service.rb b/app/services/custom_actions/update_work_package_service.rb index c7d6d9ee0a54..6eb9ebd3f0a3 100644 --- a/app/services/custom_actions/update_work_package_service.rb +++ b/app/services/custom_actions/update_work_package_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/custom_fields/create_service.rb b/app/services/custom_fields/create_service.rb index f27308e20ca2..4d08c8aaba4a 100644 --- a/app/services/custom_fields/create_service.rb +++ b/app/services/custom_fields/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -54,7 +54,7 @@ def instance(params) def after_perform(call) cf = call.result - if cf.is_a?(ProjectCustomField) && EnterpriseToken.allows_to?(:custom_fields_in_projects_list) + if cf.is_a?(ProjectCustomField) add_cf_to_visible_columns(cf) end diff --git a/app/services/custom_fields/set_attributes_service.rb b/app/services/custom_fields/set_attributes_service.rb index 67431bcb49f1..53f07297c369 100644 --- a/app/services/custom_fields/set_attributes_service.rb +++ b/app/services/custom_fields/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/custom_fields/update_service.rb b/app/services/custom_fields/update_service.rb index 1e04457df2be..0dda6290306d 100644 --- a/app/services/custom_fields/update_service.rb +++ b/app/services/custom_fields/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/design/update_design_service.rb b/app/services/design/update_design_service.rb index 0c55bc5b5985..96d29589e02a 100644 --- a/app/services/design/update_design_service.rb +++ b/app/services/design/update_design_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/duration_converter.rb b/app/services/duration_converter.rb index c1adb12a5798..f267b5b05c24 100644 --- a/app/services/duration_converter.rb +++ b/app/services/duration_converter.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/grids/copy/widgets_dependent_service.rb b/app/services/grids/copy/widgets_dependent_service.rb index 4ad2a74c9796..cad66938e846 100644 --- a/app/services/grids/copy/widgets_dependent_service.rb +++ b/app/services/grids/copy/widgets_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/grids/copy_service.rb b/app/services/grids/copy_service.rb index 7bee216da691..daa24e04af5b 100644 --- a/app/services/grids/copy_service.rb +++ b/app/services/grids/copy_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/add_users_service.rb b/app/services/groups/add_users_service.rb index 7614a321c174..c6e705dbe1d4 100644 --- a/app/services/groups/add_users_service.rb +++ b/app/services/groups/add_users_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/cleanup_inherited_roles_service.rb b/app/services/groups/cleanup_inherited_roles_service.rb index b10cb44ad7ca..97a4f3f75ab1 100644 --- a/app/services/groups/cleanup_inherited_roles_service.rb +++ b/app/services/groups/cleanup_inherited_roles_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/concerns/membership_manipulation.rb b/app/services/groups/concerns/membership_manipulation.rb index 263567d442b8..c5fdbbbde279 100644 --- a/app/services/groups/concerns/membership_manipulation.rb +++ b/app/services/groups/concerns/membership_manipulation.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/create_inherited_roles_service.rb b/app/services/groups/create_inherited_roles_service.rb index 0f51b81bef36..06c7f463f5b4 100644 --- a/app/services/groups/create_inherited_roles_service.rb +++ b/app/services/groups/create_inherited_roles_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/create_service.rb b/app/services/groups/create_service.rb index 44aedcc1b280..bc2f42a9440f 100644 --- a/app/services/groups/create_service.rb +++ b/app/services/groups/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/delete_service.rb b/app/services/groups/delete_service.rb index 9dde353fdb74..99001014fd9f 100644 --- a/app/services/groups/delete_service.rb +++ b/app/services/groups/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/set_attributes_service.rb b/app/services/groups/set_attributes_service.rb index 2f6be7771dea..b6440352c8b6 100644 --- a/app/services/groups/set_attributes_service.rb +++ b/app/services/groups/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/update_roles_service.rb b/app/services/groups/update_roles_service.rb index b14eab5abbfc..d2361ddfe28c 100644 --- a/app/services/groups/update_roles_service.rb +++ b/app/services/groups/update_roles_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/groups/update_service.rb b/app/services/groups/update_service.rb index 5cc7bd526de7..f4790ce4c1de 100644 --- a/app/services/groups/update_service.rb +++ b/app/services/groups/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/journals/create_service.rb b/app/services/journals/create_service.rb index c617afae04a9..505904c3b676 100644 --- a/app/services/journals/create_service.rb +++ b/app/services/journals/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/journals/set_attributes_service.rb b/app/services/journals/set_attributes_service.rb index f8e61a31fd58..c63711205a33 100644 --- a/app/services/journals/set_attributes_service.rb +++ b/app/services/journals/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/journals/update_service.rb b/app/services/journals/update_service.rb index 1a02c8127ece..229838dd8df2 100644 --- a/app/services/journals/update_service.rb +++ b/app/services/journals/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/cleanup_service.rb b/app/services/members/cleanup_service.rb index b50d2dc8c3c5..f6f1f30ff307 100644 --- a/app/services/members/cleanup_service.rb +++ b/app/services/members/cleanup_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/concerns/cleaned_up.rb b/app/services/members/concerns/cleaned_up.rb index f50a043a53e6..8aa64d0eb753 100644 --- a/app/services/members/concerns/cleaned_up.rb +++ b/app/services/members/concerns/cleaned_up.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/concerns/notification_sender.rb b/app/services/members/concerns/notification_sender.rb index fb20b337564a..0db90c7c878a 100644 --- a/app/services/members/concerns/notification_sender.rb +++ b/app/services/members/concerns/notification_sender.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/concerns/role_assignment.rb b/app/services/members/concerns/role_assignment.rb index 8e3befb32e33..8d44bd673116 100644 --- a/app/services/members/concerns/role_assignment.rb +++ b/app/services/members/concerns/role_assignment.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/create_service.rb b/app/services/members/create_service.rb index 79404e5173c3..da693c80d8c9 100644 --- a/app/services/members/create_service.rb +++ b/app/services/members/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/delete_by_principal_service.rb b/app/services/members/delete_by_principal_service.rb index f52fd5c89999..95f0c0e1b610 100644 --- a/app/services/members/delete_by_principal_service.rb +++ b/app/services/members/delete_by_principal_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/delete_service.rb b/app/services/members/delete_service.rb index d60cb5983d85..0bf8ff9ad196 100644 --- a/app/services/members/delete_service.rb +++ b/app/services/members/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/edit_membership_service.rb b/app/services/members/edit_membership_service.rb index 3bb56ae80db7..151ecff80866 100644 --- a/app/services/members/edit_membership_service.rb +++ b/app/services/members/edit_membership_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/set_attributes_service.rb b/app/services/members/set_attributes_service.rb index 6badbc274de2..deeb027f1022 100644 --- a/app/services/members/set_attributes_service.rb +++ b/app/services/members/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/members/update_service.rb b/app/services/members/update_service.rb index ca93748b418e..8b6b048e44ce 100644 --- a/app/services/members/update_service.rb +++ b/app/services/members/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/messages/create_service.rb b/app/services/messages/create_service.rb index 94fcf0e8384b..8b38e6398600 100644 --- a/app/services/messages/create_service.rb +++ b/app/services/messages/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/messages/set_attributes_service.rb b/app/services/messages/set_attributes_service.rb index 7dacc9199b59..ab3c03f8a206 100644 --- a/app/services/messages/set_attributes_service.rb +++ b/app/services/messages/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/messages/update_service.rb b/app/services/messages/update_service.rb index a4c67c19ddd8..e2b3710feef0 100644 --- a/app/services/messages/update_service.rb +++ b/app/services/messages/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/news/create_service.rb b/app/services/news/create_service.rb index 97af280e9af4..b91aa17b8e5e 100644 --- a/app/services/news/create_service.rb +++ b/app/services/news/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/news/delete_service.rb b/app/services/news/delete_service.rb index 04d7b5381c83..d118fc0a6cf2 100644 --- a/app/services/news/delete_service.rb +++ b/app/services/news/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/news/set_attributes_service.rb b/app/services/news/set_attributes_service.rb index b6274c28460c..b7c08165682f 100644 --- a/app/services/news/set_attributes_service.rb +++ b/app/services/news/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/news/update_service.rb b/app/services/news/update_service.rb index d0e1ef90f959..bacf667a38b7 100644 --- a/app/services/news/update_service.rb +++ b/app/services/news/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_from_model_service.rb b/app/services/notifications/create_from_model_service.rb index 3b067d91c1f2..e1f0eb092017 100644 --- a/app/services/notifications/create_from_model_service.rb +++ b/app/services/notifications/create_from_model_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_from_model_service/comment_strategy.rb b/app/services/notifications/create_from_model_service/comment_strategy.rb index dd139575ebd1..ff48df4bb268 100644 --- a/app/services/notifications/create_from_model_service/comment_strategy.rb +++ b/app/services/notifications/create_from_model_service/comment_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_from_model_service/message_strategy.rb b/app/services/notifications/create_from_model_service/message_strategy.rb index 0e7084c09437..8ca67d94d61f 100644 --- a/app/services/notifications/create_from_model_service/message_strategy.rb +++ b/app/services/notifications/create_from_model_service/message_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_from_model_service/news_strategy.rb b/app/services/notifications/create_from_model_service/news_strategy.rb index 2a2ae7d4ee47..b069d337e886 100644 --- a/app/services/notifications/create_from_model_service/news_strategy.rb +++ b/app/services/notifications/create_from_model_service/news_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_from_model_service/wiki_page_strategy.rb b/app/services/notifications/create_from_model_service/wiki_page_strategy.rb index 3dc3a8e36096..d67ee4b74903 100644 --- a/app/services/notifications/create_from_model_service/wiki_page_strategy.rb +++ b/app/services/notifications/create_from_model_service/wiki_page_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_from_model_service/work_package_strategy.rb b/app/services/notifications/create_from_model_service/work_package_strategy.rb index c4150e8cf12b..d8db68c83f4c 100644 --- a/app/services/notifications/create_from_model_service/work_package_strategy.rb +++ b/app/services/notifications/create_from_model_service/work_package_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/create_service.rb b/app/services/notifications/create_service.rb index c66523d6a306..1a88ccf3a864 100644 --- a/app/services/notifications/create_service.rb +++ b/app/services/notifications/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/mail_service.rb b/app/services/notifications/mail_service.rb index bf9d5cf89b2a..dd321e801bfb 100644 --- a/app/services/notifications/mail_service.rb +++ b/app/services/notifications/mail_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/mail_service/comment_strategy.rb b/app/services/notifications/mail_service/comment_strategy.rb index 0fd33bada56f..a56319309c29 100644 --- a/app/services/notifications/mail_service/comment_strategy.rb +++ b/app/services/notifications/mail_service/comment_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/mail_service/message_strategy.rb b/app/services/notifications/mail_service/message_strategy.rb index 04c7ff1793cb..64661f3e02f2 100644 --- a/app/services/notifications/mail_service/message_strategy.rb +++ b/app/services/notifications/mail_service/message_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/mail_service/news_strategy.rb b/app/services/notifications/mail_service/news_strategy.rb index 07094fbe1204..161ff03f51c9 100644 --- a/app/services/notifications/mail_service/news_strategy.rb +++ b/app/services/notifications/mail_service/news_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/mail_service/wiki_page_strategy.rb b/app/services/notifications/mail_service/wiki_page_strategy.rb index e9f50c089535..821d1c7b9b5d 100644 --- a/app/services/notifications/mail_service/wiki_page_strategy.rb +++ b/app/services/notifications/mail_service/wiki_page_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/mail_service/work_package_strategy.rb b/app/services/notifications/mail_service/work_package_strategy.rb index 677770f59b25..c471969578da 100644 --- a/app/services/notifications/mail_service/work_package_strategy.rb +++ b/app/services/notifications/mail_service/work_package_strategy.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/set_attributes_service.rb b/app/services/notifications/set_attributes_service.rb index 5ff6529c60a0..de5efacf8306 100644 --- a/app/services/notifications/set_attributes_service.rb +++ b/app/services/notifications/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/notifications/update_service.rb b/app/services/notifications/update_service.rb index c326e9232f49..2fe9aafab1be 100644 --- a/app/services/notifications/update_service.rb +++ b/app/services/notifications/update_service.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/oauth/persist_application_service.rb b/app/services/oauth/persist_application_service.rb index 6f25e567c39e..a33abd8eab60 100644 --- a/app/services/oauth/persist_application_service.rb +++ b/app/services/oauth/persist_application_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/oauth_clients/connection_manager.rb b/app/services/oauth_clients/connection_manager.rb index 29fd92a32254..e1faa40dd4e9 100644 --- a/app/services/oauth_clients/connection_manager.rb +++ b/app/services/oauth_clients/connection_manager.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/oauth_clients/create_service.rb b/app/services/oauth_clients/create_service.rb index ff0bb5b5e839..200c3d466946 100644 --- a/app/services/oauth_clients/create_service.rb +++ b/app/services/oauth_clients/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/oauth_clients/delete_service.rb b/app/services/oauth_clients/delete_service.rb index 2aff37c61984..4b258c66ff07 100644 --- a/app/services/oauth_clients/delete_service.rb +++ b/app/services/oauth_clients/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/oauth_clients/redirect_uri_from_state_service.rb b/app/services/oauth_clients/redirect_uri_from_state_service.rb index 29803390d4ff..04e37a0f6200 100644 --- a/app/services/oauth_clients/redirect_uri_from_state_service.rb +++ b/app/services/oauth_clients/redirect_uri_from_state_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/oauth_clients/set_attributes_service.rb b/app/services/oauth_clients/set_attributes_service.rb index 16c9a439bc94..cf1ccf79cde7 100644 --- a/app/services/oauth_clients/set_attributes_service.rb +++ b/app/services/oauth_clients/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/params_to_query_service.rb b/app/services/params_to_query_service.rb index f117459b7a6f..98fcd811df70 100644 --- a/app/services/params_to_query_service.rb +++ b/app/services/params_to_query_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/parse_schema_filter_params_service.rb b/app/services/parse_schema_filter_params_service.rb index 4e446c608d60..175560ba8a8e 100644 --- a/app/services/parse_schema_filter_params_service.rb +++ b/app/services/parse_schema_filter_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/placeholder_users/create_service.rb b/app/services/placeholder_users/create_service.rb index adc0d3c0dfe2..e4e227145c8a 100644 --- a/app/services/placeholder_users/create_service.rb +++ b/app/services/placeholder_users/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/placeholder_users/delete_service.rb b/app/services/placeholder_users/delete_service.rb index 19909713853d..02245499b5ca 100644 --- a/app/services/placeholder_users/delete_service.rb +++ b/app/services/placeholder_users/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/placeholder_users/set_attributes_service.rb b/app/services/placeholder_users/set_attributes_service.rb index bc80f8b51199..c5294ee04244 100644 --- a/app/services/placeholder_users/set_attributes_service.rb +++ b/app/services/placeholder_users/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/placeholder_users/update_service.rb b/app/services/placeholder_users/update_service.rb index 2b233101eae8..3072c53a8399 100644 --- a/app/services/placeholder_users/update_service.rb +++ b/app/services/placeholder_users/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/principals/replace_references_service.rb b/app/services/principals/replace_references_service.rb index 945460b1789c..d74dcd0b1dc9 100644 --- a/app/services/principals/replace_references_service.rb +++ b/app/services/principals/replace_references_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_project_mappings/bulk_create_service.rb b/app/services/project_custom_field_project_mappings/bulk_create_service.rb index 1ea84387f1c6..982a27a03e6e 100644 --- a/app/services/project_custom_field_project_mappings/bulk_create_service.rb +++ b/app/services/project_custom_field_project_mappings/bulk_create_service.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_project_mappings/bulk_update_service.rb b/app/services/project_custom_field_project_mappings/bulk_update_service.rb index 3957134f5a68..ee11eba5f0ad 100644 --- a/app/services/project_custom_field_project_mappings/bulk_update_service.rb +++ b/app/services/project_custom_field_project_mappings/bulk_update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_project_mappings/delete_service.rb b/app/services/project_custom_field_project_mappings/delete_service.rb index 5c3a03feef8c..14a3ae7de57e 100644 --- a/app/services/project_custom_field_project_mappings/delete_service.rb +++ b/app/services/project_custom_field_project_mappings/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_project_mappings/set_attributes_service.rb b/app/services/project_custom_field_project_mappings/set_attributes_service.rb index 4a6c3007920f..371b73a81def 100644 --- a/app/services/project_custom_field_project_mappings/set_attributes_service.rb +++ b/app/services/project_custom_field_project_mappings/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_project_mappings/toggle_service.rb b/app/services/project_custom_field_project_mappings/toggle_service.rb index c9acb5ae4d7b..eee463d7c7ae 100644 --- a/app/services/project_custom_field_project_mappings/toggle_service.rb +++ b/app/services/project_custom_field_project_mappings/toggle_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_sections/create_service.rb b/app/services/project_custom_field_sections/create_service.rb index 01cf2b20db79..40a498bee6d8 100644 --- a/app/services/project_custom_field_sections/create_service.rb +++ b/app/services/project_custom_field_sections/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_sections/delete_service.rb b/app/services/project_custom_field_sections/delete_service.rb index 823c96e8c41e..779fe2c6c995 100644 --- a/app/services/project_custom_field_sections/delete_service.rb +++ b/app/services/project_custom_field_sections/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_sections/set_attributes_service.rb b/app/services/project_custom_field_sections/set_attributes_service.rb index db7da29c9cd5..0d40adb03ad0 100644 --- a/app/services/project_custom_field_sections/set_attributes_service.rb +++ b/app/services/project_custom_field_sections/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_field_sections/update_service.rb b/app/services/project_custom_field_sections/update_service.rb index 7611c6d4cd76..b02690b0198d 100644 --- a/app/services/project_custom_field_sections/update_service.rb +++ b/app/services/project_custom_field_sections/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/project_custom_fields/drop_service.rb b/app/services/project_custom_fields/drop_service.rb index dfd91263c6b4..0a416228d9b1 100644 --- a/app/services/project_custom_fields/drop_service.rb +++ b/app/services/project_custom_fields/drop_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/archive_service.rb b/app/services/projects/archive_service.rb index db0e8aaf1535..cc72697653cc 100644 --- a/app/services/projects/archive_service.rb +++ b/app/services/projects/archive_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/concerns/new_project_service.rb b/app/services/projects/concerns/new_project_service.rb index e9fb5a71a784..040a63b5d52f 100644 --- a/app/services/projects/concerns/new_project_service.rb +++ b/app/services/projects/concerns/new_project_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/concerns/update_demo_data.rb b/app/services/projects/concerns/update_demo_data.rb index e923cf9fae9f..88f121794225 100644 --- a/app/services/projects/concerns/update_demo_data.rb +++ b/app/services/projects/concerns/update_demo_data.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/attachment_copier.rb b/app/services/projects/copy/attachment_copier.rb index 14baccfeb4d9..403badaaf224 100644 --- a/app/services/projects/copy/attachment_copier.rb +++ b/app/services/projects/copy/attachment_copier.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/boards_dependent_service.rb b/app/services/projects/copy/boards_dependent_service.rb index 91fc678e4398..5635c236cc7f 100644 --- a/app/services/projects/copy/boards_dependent_service.rb +++ b/app/services/projects/copy/boards_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/categories_dependent_service.rb b/app/services/projects/copy/categories_dependent_service.rb index 35043718b43d..fa0762ed653d 100644 --- a/app/services/projects/copy/categories_dependent_service.rb +++ b/app/services/projects/copy/categories_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/dependency.rb b/app/services/projects/copy/dependency.rb index 78362cca41e4..f5bf55f9df40 100644 --- a/app/services/projects/copy/dependency.rb +++ b/app/services/projects/copy/dependency.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/forums_dependent_service.rb b/app/services/projects/copy/forums_dependent_service.rb index dbfcf52ae47b..09fd1c924ea2 100644 --- a/app/services/projects/copy/forums_dependent_service.rb +++ b/app/services/projects/copy/forums_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/members_dependent_service.rb b/app/services/projects/copy/members_dependent_service.rb index 3b7da7aa76f3..f388a0e3d2a6 100644 --- a/app/services/projects/copy/members_dependent_service.rb +++ b/app/services/projects/copy/members_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/no_copier.rb b/app/services/projects/copy/no_copier.rb index be64abd95aa5..a6fd10b16d6d 100644 --- a/app/services/projects/copy/no_copier.rb +++ b/app/services/projects/copy/no_copier.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/overview_dependent_service.rb b/app/services/projects/copy/overview_dependent_service.rb index 5cdb9c56db81..343bf110e6d5 100644 --- a/app/services/projects/copy/overview_dependent_service.rb +++ b/app/services/projects/copy/overview_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/queries_dependent_service.rb b/app/services/projects/copy/queries_dependent_service.rb index 098bc3a10a34..610907a879ea 100644 --- a/app/services/projects/copy/queries_dependent_service.rb +++ b/app/services/projects/copy/queries_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/share_copier.rb b/app/services/projects/copy/share_copier.rb index 7188a5c5a91d..efee97c58a1a 100644 --- a/app/services/projects/copy/share_copier.rb +++ b/app/services/projects/copy/share_copier.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/versions_dependent_service.rb b/app/services/projects/copy/versions_dependent_service.rb index 7f5a9009e63e..5d26109616f5 100644 --- a/app/services/projects/copy/versions_dependent_service.rb +++ b/app/services/projects/copy/versions_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/wiki_dependent_service.rb b/app/services/projects/copy/wiki_dependent_service.rb index 98e0973e0ec0..f2892fc2c72c 100644 --- a/app/services/projects/copy/wiki_dependent_service.rb +++ b/app/services/projects/copy/wiki_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/wiki_page_attachments_dependent_service.rb b/app/services/projects/copy/wiki_page_attachments_dependent_service.rb index aed171452417..e253071539fc 100644 --- a/app/services/projects/copy/wiki_page_attachments_dependent_service.rb +++ b/app/services/projects/copy/wiki_page_attachments_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/work_package_attachments_dependent_service.rb b/app/services/projects/copy/work_package_attachments_dependent_service.rb index f9754e73fad0..16fbd0c5ac4e 100644 --- a/app/services/projects/copy/work_package_attachments_dependent_service.rb +++ b/app/services/projects/copy/work_package_attachments_dependent_service.rb @@ -1,6 +1,6 @@ -#--copyright +#-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/work_package_shares_dependent_service.rb b/app/services/projects/copy/work_package_shares_dependent_service.rb index 58751155725e..9b78abad19a3 100644 --- a/app/services/projects/copy/work_package_shares_dependent_service.rb +++ b/app/services/projects/copy/work_package_shares_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy/work_packages_dependent_service.rb b/app/services/projects/copy/work_packages_dependent_service.rb index 873e7e838c2e..735b074dff29 100644 --- a/app/services/projects/copy/work_packages_dependent_service.rb +++ b/app/services/projects/copy/work_packages_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/copy_service.rb b/app/services/projects/copy_service.rb index 72c3990f3a98..869b70e5e18b 100644 --- a/app/services/projects/copy_service.rb +++ b/app/services/projects/copy_service.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index 6252b7861997..aa16760434f0 100644 --- a/app/services/projects/create_service.rb +++ b/app/services/projects/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/delete_service.rb b/app/services/projects/delete_service.rb index 110998d456b5..46bb94e2ff74 100644 --- a/app/services/projects/delete_service.rb +++ b/app/services/projects/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/enabled_modules_service.rb b/app/services/projects/enabled_modules_service.rb index 0fe0a6acd39f..eb4ac5cb8070 100644 --- a/app/services/projects/enabled_modules_service.rb +++ b/app/services/projects/enabled_modules_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/enqueue_copy_service.rb b/app/services/projects/enqueue_copy_service.rb index 5102685fa467..7c3b51b5800c 100644 --- a/app/services/projects/enqueue_copy_service.rb +++ b/app/services/projects/enqueue_copy_service.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/gantt_query_generator_service.rb b/app/services/projects/gantt_query_generator_service.rb index c9a757055785..fae74d7eb819 100644 --- a/app/services/projects/gantt_query_generator_service.rb +++ b/app/services/projects/gantt_query_generator_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/schedule_deletion_service.rb b/app/services/projects/schedule_deletion_service.rb index 8a5182b6b8db..e1f32f71488d 100644 --- a/app/services/projects/schedule_deletion_service.rb +++ b/app/services/projects/schedule_deletion_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/set_attributes_service.rb b/app/services/projects/set_attributes_service.rb index 54f1570bd857..583bb556cb38 100644 --- a/app/services/projects/set_attributes_service.rb +++ b/app/services/projects/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/unarchive_service.rb b/app/services/projects/unarchive_service.rb index 203b49944537..e52d148f0c3f 100644 --- a/app/services/projects/unarchive_service.rb +++ b/app/services/projects/unarchive_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index b90659d5bf93..5f8ff78777e2 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/base_service.rb b/app/services/queries/base_service.rb index fbf94f1c4da3..2e32631c4775 100644 --- a/app/services/queries/base_service.rb +++ b/app/services/queries/base_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/copy/filters_mapper.rb b/app/services/queries/copy/filters_mapper.rb index bd912b9559ab..e8134b402634 100644 --- a/app/services/queries/copy/filters_mapper.rb +++ b/app/services/queries/copy/filters_mapper.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/copy/ordered_work_packages_dependent_service.rb b/app/services/queries/copy/ordered_work_packages_dependent_service.rb index 82494f10f765..579d7ee2d999 100644 --- a/app/services/queries/copy/ordered_work_packages_dependent_service.rb +++ b/app/services/queries/copy/ordered_work_packages_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/copy/views_dependent_service.rb b/app/services/queries/copy/views_dependent_service.rb index 746234935ae3..5d3b23cd25ad 100644 --- a/app/services/queries/copy/views_dependent_service.rb +++ b/app/services/queries/copy/views_dependent_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/copy_service.rb b/app/services/queries/copy_service.rb index 77d829b391e0..7006aca75f90 100644 --- a/app/services/queries/copy_service.rb +++ b/app/services/queries/copy_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/create_service.rb b/app/services/queries/create_service.rb index 82b710e8dee3..6f5711728f1d 100644 --- a/app/services/queries/create_service.rb +++ b/app/services/queries/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/projects/project_queries/create_service.rb b/app/services/queries/projects/project_queries/create_service.rb index 7d8482ec9698..7fff71fd0309 100644 --- a/app/services/queries/projects/project_queries/create_service.rb +++ b/app/services/queries/projects/project_queries/create_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/projects/project_queries/delete_service.rb b/app/services/queries/projects/project_queries/delete_service.rb index 20a666953997..0300d92233d8 100644 --- a/app/services/queries/projects/project_queries/delete_service.rb +++ b/app/services/queries/projects/project_queries/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/projects/project_queries/publish_service.rb b/app/services/queries/projects/project_queries/publish_service.rb index e2c26fcda821..244d1acf1e01 100644 --- a/app/services/queries/projects/project_queries/publish_service.rb +++ b/app/services/queries/projects/project_queries/publish_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/projects/project_queries/set_attributes_service.rb b/app/services/queries/projects/project_queries/set_attributes_service.rb index 9f8ce3acdae7..d47e5f6012a2 100644 --- a/app/services/queries/projects/project_queries/set_attributes_service.rb +++ b/app/services/queries/projects/project_queries/set_attributes_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/projects/project_queries/update_service.rb b/app/services/queries/projects/project_queries/update_service.rb index 15dd89fcef27..16b6f00df60e 100644 --- a/app/services/queries/projects/project_queries/update_service.rb +++ b/app/services/queries/projects/project_queries/update_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/set_attributes_service.rb b/app/services/queries/set_attributes_service.rb index 3fa92e75fb92..02f636851a8e 100644 --- a/app/services/queries/set_attributes_service.rb +++ b/app/services/queries/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/queries/update_service.rb b/app/services/queries/update_service.rb index 87e3c0c53295..8c5dcbadaa4d 100644 --- a/app/services/queries/update_service.rb +++ b/app/services/queries/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/relations/base_service.rb b/app/services/relations/base_service.rb index a2da7f73b891..7a657b5d4ab8 100644 --- a/app/services/relations/base_service.rb +++ b/app/services/relations/base_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/relations/create_service.rb b/app/services/relations/create_service.rb index fab64b9e5172..37b27353320c 100644 --- a/app/services/relations/create_service.rb +++ b/app/services/relations/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/relations/delete_service.rb b/app/services/relations/delete_service.rb index 435474cbd74d..51074fda7e7f 100644 --- a/app/services/relations/delete_service.rb +++ b/app/services/relations/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/relations/update_service.rb b/app/services/relations/update_service.rb index 24607c5778c7..23ecc219701c 100644 --- a/app/services/relations/update_service.rb +++ b/app/services/relations/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/assignee_report.rb b/app/services/reports/assignee_report.rb index 27a8b8422b6f..0aebc4f2ba65 100644 --- a/app/services/reports/assignee_report.rb +++ b/app/services/reports/assignee_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/author_report.rb b/app/services/reports/author_report.rb index 123d9afee0db..0f6d7c60f757 100644 --- a/app/services/reports/author_report.rb +++ b/app/services/reports/author_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/category_report.rb b/app/services/reports/category_report.rb index 12b5a392c01e..a7a639214abe 100644 --- a/app/services/reports/category_report.rb +++ b/app/services/reports/category_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/priority_report.rb b/app/services/reports/priority_report.rb index 2b7dace84d66..607adf4b1e5e 100644 --- a/app/services/reports/priority_report.rb +++ b/app/services/reports/priority_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/report.rb b/app/services/reports/report.rb index 1dd1225fe11d..4fbf0482ca64 100644 --- a/app/services/reports/report.rb +++ b/app/services/reports/report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/reports_service.rb b/app/services/reports/reports_service.rb index 810f736687ce..f138f18b4265 100644 --- a/app/services/reports/reports_service.rb +++ b/app/services/reports/reports_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/responsible_report.rb b/app/services/reports/responsible_report.rb index c9994d72ddc8..0f56a510f4e1 100644 --- a/app/services/reports/responsible_report.rb +++ b/app/services/reports/responsible_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/subproject_report.rb b/app/services/reports/subproject_report.rb index a74189dd8141..dfeecb6130a8 100644 --- a/app/services/reports/subproject_report.rb +++ b/app/services/reports/subproject_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/type_report.rb b/app/services/reports/type_report.rb index 3f565f788e20..a052b6f4b7b6 100644 --- a/app/services/reports/type_report.rb +++ b/app/services/reports/type_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/reports/version_report.rb b/app/services/reports/version_report.rb index 11bb990c3e75..1401ab09404a 100644 --- a/app/services/reports/version_report.rb +++ b/app/services/reports/version_report.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/roles/create_service.rb b/app/services/roles/create_service.rb index 479d2b458acf..95774a71a39b 100644 --- a/app/services/roles/create_service.rb +++ b/app/services/roles/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/roles/delete_service.rb b/app/services/roles/delete_service.rb index 9042081aef8c..d41de30ee5c3 100644 --- a/app/services/roles/delete_service.rb +++ b/app/services/roles/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/roles/set_attributes_service.rb b/app/services/roles/set_attributes_service.rb index e6db66920765..98e91d10757d 100644 --- a/app/services/roles/set_attributes_service.rb +++ b/app/services/roles/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/roles/update_service.rb b/app/services/roles/update_service.rb index 66245719468d..46358b9f2d34 100644 --- a/app/services/roles/update_service.rb +++ b/app/services/roles/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/scm/base_repository_service.rb b/app/services/scm/base_repository_service.rb index 7d06889a2cda..1ff1f7b4dcba 100644 --- a/app/services/scm/base_repository_service.rb +++ b/app/services/scm/base_repository_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/scm/checkout_instructions_service.rb b/app/services/scm/checkout_instructions_service.rb index 90510fbded94..da4217859d9d 100644 --- a/app/services/scm/checkout_instructions_service.rb +++ b/app/services/scm/checkout_instructions_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/scm/create_managed_repository_service.rb b/app/services/scm/create_managed_repository_service.rb index ecbd1fc5b919..8af94de9076d 100644 --- a/app/services/scm/create_managed_repository_service.rb +++ b/app/services/scm/create_managed_repository_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/scm/delete_managed_repository_service.rb b/app/services/scm/delete_managed_repository_service.rb index 13809f04d12d..d3427fef0a7d 100644 --- a/app/services/scm/delete_managed_repository_service.rb +++ b/app/services/scm/delete_managed_repository_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/scm/repository_factory_service.rb b/app/services/scm/repository_factory_service.rb index de682a8fd45a..91162b7f6e4b 100644 --- a/app/services/scm/repository_factory_service.rb +++ b/app/services/scm/repository_factory_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/service_result.rb b/app/services/service_result.rb index 660103e5d39c..36b35cc7943f 100644 --- a/app/services/service_result.rb +++ b/app/services/service_result.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/sessions/drop_all_sessions_service.rb b/app/services/sessions/drop_all_sessions_service.rb index f2de58b3feda..ff2b0b8a39ee 100644 --- a/app/services/sessions/drop_all_sessions_service.rb +++ b/app/services/sessions/drop_all_sessions_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/sessions/drop_other_sessions_service.rb b/app/services/sessions/drop_other_sessions_service.rb index a09cdc86d0fd..cd68292a5b86 100644 --- a/app/services/sessions/drop_other_sessions_service.rb +++ b/app/services/sessions/drop_other_sessions_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/set_localization_service.rb b/app/services/set_localization_service.rb index 21a933568e44..90e228d80d9b 100644 --- a/app/services/set_localization_service.rb +++ b/app/services/set_localization_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/settings/language_update_service.rb b/app/services/settings/language_update_service.rb index f9c44b7d5a74..3d5f47ce3ed7 100644 --- a/app/services/settings/language_update_service.rb +++ b/app/services/settings/language_update_service.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/settings/update_service.rb b/app/services/settings/update_service.rb index 255f7af69bee..a8eda6a5e1dc 100644 --- a/app/services/settings/update_service.rb +++ b/app/services/settings/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/settings/working_days_and_hours_update_service.rb b/app/services/settings/working_days_and_hours_update_service.rb index d3fe86a527bf..676d12551c22 100644 --- a/app/services/settings/working_days_and_hours_update_service.rb +++ b/app/services/settings/working_days_and_hours_update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -16,7 +16,7 @@ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTALITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License diff --git a/app/services/shared/block_service.rb b/app/services/shared/block_service.rb index f85dc181539f..7bfc2bd835ec 100644 --- a/app/services/shared/block_service.rb +++ b/app/services/shared/block_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shared/service_context.rb b/app/services/shared/service_context.rb index 50ae78a98646..3e9fe6fd8845 100644 --- a/app/services/shared/service_context.rb +++ b/app/services/shared/service_context.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shared/service_state.rb b/app/services/shared/service_state.rb index b40cbab89f4a..b5231b91e5d5 100644 --- a/app/services/shared/service_state.rb +++ b/app/services/shared/service_state.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/concerns/role_assignment.rb b/app/services/shares/concerns/role_assignment.rb index 0df795fdd0c3..30a140fb3aef 100644 --- a/app/services/shares/concerns/role_assignment.rb +++ b/app/services/shares/concerns/role_assignment.rb @@ -2,7 +2,7 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2023 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/create_or_update_service.rb b/app/services/shares/create_or_update_service.rb index ad9b60f0eba1..5e0a5674dde6 100644 --- a/app/services/shares/create_or_update_service.rb +++ b/app/services/shares/create_or_update_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/create_service.rb b/app/services/shares/create_service.rb index 9b5cceea4a4e..2b778ae83643 100644 --- a/app/services/shares/create_service.rb +++ b/app/services/shares/create_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/delete_role_service.rb b/app/services/shares/delete_role_service.rb index c0820994eaf9..8d3b2c916e67 100644 --- a/app/services/shares/delete_role_service.rb +++ b/app/services/shares/delete_role_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/delete_service.rb b/app/services/shares/delete_service.rb index 88baee6fd386..0901659a7f92 100644 --- a/app/services/shares/delete_service.rb +++ b/app/services/shares/delete_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/set_attributes_service.rb b/app/services/shares/set_attributes_service.rb index c241961bddf5..8e69f931b9b8 100644 --- a/app/services/shares/set_attributes_service.rb +++ b/app/services/shares/set_attributes_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/shares/update_service.rb b/app/services/shares/update_service.rb index d38e65a2ea67..7d10ff6b036d 100644 --- a/app/services/shares/update_service.rb +++ b/app/services/shares/update_service.rb @@ -1,6 +1,6 @@ # -- copyright # OpenProject is an open source project management software. -# Copyright (C) 2010-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/update_projects_types_service.rb b/app/services/update_projects_types_service.rb index 94ff181aab4f..909cafad217f 100644 --- a/app/services/update_projects_types_service.rb +++ b/app/services/update_projects_types_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/update_query_from_params_service.rb b/app/services/update_query_from_params_service.rb index be1799c75055..33509fb338c8 100644 --- a/app/services/update_query_from_params_service.rb +++ b/app/services/update_query_from_params_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/update_type_service.rb b/app/services/update_type_service.rb index 919f67a450e1..be475bdf48ec 100644 --- a/app/services/update_type_service.rb +++ b/app/services/update_type_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/user_preferences/set_attributes_service.rb b/app/services/user_preferences/set_attributes_service.rb index 8638e5590601..ebbca864b57a 100644 --- a/app/services/user_preferences/set_attributes_service.rb +++ b/app/services/user_preferences/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/user_preferences/update_service.rb b/app/services/user_preferences/update_service.rb index 10595fa169cf..0c6e867215bb 100644 --- a/app/services/user_preferences/update_service.rb +++ b/app/services/user_preferences/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/user_search_service.rb b/app/services/user_search_service.rb index 1d4569ca0788..36f82c3e7023 100644 --- a/app/services/user_search_service.rb +++ b/app/services/user_search_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/change_password_service.rb b/app/services/users/change_password_service.rb index b2f5c41f7abc..6668eb77b4d7 100644 --- a/app/services/users/change_password_service.rb +++ b/app/services/users/change_password_service.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/create_service.rb b/app/services/users/create_service.rb index 15cc2657d057..206565a09b15 100644 --- a/app/services/users/create_service.rb +++ b/app/services/users/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/delete_service.rb b/app/services/users/delete_service.rb index faae57ab31fb..1c68ab7a8749 100644 --- a/app/services/users/delete_service.rb +++ b/app/services/users/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/drop_tokens_service.rb b/app/services/users/drop_tokens_service.rb index 56f79cb75c1f..61252fb8299a 100644 --- a/app/services/users/drop_tokens_service.rb +++ b/app/services/users/drop_tokens_service.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/login_service.rb b/app/services/users/login_service.rb index 3bda281e2fd1..234d6afd4c0e 100644 --- a/app/services/users/login_service.rb +++ b/app/services/users/login_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/logout_service.rb b/app/services/users/logout_service.rb index bb7d58e0a0aa..d54a096b5554 100644 --- a/app/services/users/logout_service.rb +++ b/app/services/users/logout_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/register_user_service.rb b/app/services/users/register_user_service.rb index 647b5adcdbf9..3ab6efc7baad 100644 --- a/app/services/users/register_user_service.rb +++ b/app/services/users/register_user_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/replace_mentions_service.rb b/app/services/users/replace_mentions_service.rb index ffe7d84a7d3d..e4aface0388f 100644 --- a/app/services/users/replace_mentions_service.rb +++ b/app/services/users/replace_mentions_service.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2010-2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/set_attributes_service.rb b/app/services/users/set_attributes_service.rb index 63f9ef982595..aa9d9e30a110 100644 --- a/app/services/users/set_attributes_service.rb +++ b/app/services/users/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/users/update_service.rb b/app/services/users/update_service.rb index efd5c36ce697..07dedb76ccd0 100644 --- a/app/services/users/update_service.rb +++ b/app/services/users/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/versions/create_service.rb b/app/services/versions/create_service.rb index a017aa8d6f39..6ce874c8d546 100644 --- a/app/services/versions/create_service.rb +++ b/app/services/versions/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/versions/delete_service.rb b/app/services/versions/delete_service.rb index bd8d2cdbb24b..be09259de8f9 100644 --- a/app/services/versions/delete_service.rb +++ b/app/services/versions/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/versions/set_attributes_service.rb b/app/services/versions/set_attributes_service.rb index 22293ee0e31f..dd0e2e87f43a 100644 --- a/app/services/versions/set_attributes_service.rb +++ b/app/services/versions/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/versions/update_service.rb b/app/services/versions/update_service.rb index 81c48f28bade..ea7f555e7e55 100644 --- a/app/services/versions/update_service.rb +++ b/app/services/versions/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/views/create_service.rb b/app/services/views/create_service.rb index 6a68e098d2e4..96dfc2c72fbe 100644 --- a/app/services/views/create_service.rb +++ b/app/services/views/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/views/global_create_service.rb b/app/services/views/global_create_service.rb index 1dfec30d44fe..4679e7aa6228 100644 --- a/app/services/views/global_create_service.rb +++ b/app/services/views/global_create_service.rb @@ -2,7 +2,7 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/views/set_attributes_service.rb b/app/services/views/set_attributes_service.rb index 1176385a270d..543e23aa4e88 100644 --- a/app/services/views/set_attributes_service.rb +++ b/app/services/views/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/wiki_pages/copy_service.rb b/app/services/wiki_pages/copy_service.rb index 5942f08e4102..400cd92e5432 100644 --- a/app/services/wiki_pages/copy_service.rb +++ b/app/services/wiki_pages/copy_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/wiki_pages/create_service.rb b/app/services/wiki_pages/create_service.rb index 4c23ce543c79..4dbf7af450bd 100644 --- a/app/services/wiki_pages/create_service.rb +++ b/app/services/wiki_pages/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/wiki_pages/set_attributes_service.rb b/app/services/wiki_pages/set_attributes_service.rb index 4be9d21336b9..2103aaaaf3e7 100644 --- a/app/services/wiki_pages/set_attributes_service.rb +++ b/app/services/wiki_pages/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/wiki_pages/update_service.rb b/app/services/wiki_pages/update_service.rb index 3d4e59d6659b..7cd7e211bcb3 100644 --- a/app/services/wiki_pages/update_service.rb +++ b/app/services/wiki_pages/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/bulk/bulked_service.rb b/app/services/work_packages/bulk/bulked_service.rb index 9e932f93a953..777a77d47208 100644 --- a/app/services/work_packages/bulk/bulked_service.rb +++ b/app/services/work_packages/bulk/bulked_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/bulk/copy_service.rb b/app/services/work_packages/bulk/copy_service.rb index b72aed6ca504..4f4475bfb019 100644 --- a/app/services/work_packages/bulk/copy_service.rb +++ b/app/services/work_packages/bulk/copy_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/bulk/move_service.rb b/app/services/work_packages/bulk/move_service.rb index d7a970e4c08f..b67e25d9dac5 100644 --- a/app/services/work_packages/bulk/move_service.rb +++ b/app/services/work_packages/bulk/move_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/bulk/update_service.rb b/app/services/work_packages/bulk/update_service.rb index cf9bff223887..bcb461580333 100644 --- a/app/services/work_packages/bulk/update_service.rb +++ b/app/services/work_packages/bulk/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/copy_service.rb b/app/services/work_packages/copy_service.rb index 3088a5c5e934..b34eaaf44ce7 100644 --- a/app/services/work_packages/copy_service.rb +++ b/app/services/work_packages/copy_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/create_service.rb b/app/services/work_packages/create_service.rb index db48ec744dd9..600c0f5d0eb2 100644 --- a/app/services/work_packages/create_service.rb +++ b/app/services/work_packages/create_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/default_query_generator_service.rb b/app/services/work_packages/default_query_generator_service.rb index 7bc9312c85bd..2a05b5ab2db1 100644 --- a/app/services/work_packages/default_query_generator_service.rb +++ b/app/services/work_packages/default_query_generator_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/delete_service.rb b/app/services/work_packages/delete_service.rb index 1cc454aafdb7..f1e629f167b9 100644 --- a/app/services/work_packages/delete_service.rb +++ b/app/services/work_packages/delete_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/exports/schedule_service.rb b/app/services/work_packages/exports/schedule_service.rb index cd873c2e99a8..0395e8556c35 100644 --- a/app/services/work_packages/exports/schedule_service.rb +++ b/app/services/work_packages/exports/schedule_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/schedule_dependency.rb b/app/services/work_packages/schedule_dependency.rb index d42f54a7e2a3..ed6976377a0b 100644 --- a/app/services/work_packages/schedule_dependency.rb +++ b/app/services/work_packages/schedule_dependency.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/schedule_dependency/dependency.rb b/app/services/work_packages/schedule_dependency/dependency.rb index ce533dd3ec65..4836ce1cbd44 100644 --- a/app/services/work_packages/schedule_dependency/dependency.rb +++ b/app/services/work_packages/schedule_dependency/dependency.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/schedule_dependency/dependency_graph.rb b/app/services/work_packages/schedule_dependency/dependency_graph.rb index 33f626f25c1c..551506482cbb 100644 --- a/app/services/work_packages/schedule_dependency/dependency_graph.rb +++ b/app/services/work_packages/schedule_dependency/dependency_graph.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/set_attributes_service.rb b/app/services/work_packages/set_attributes_service.rb index 75025cd34ddc..ee168d4dbd0a 100644 --- a/app/services/work_packages/set_attributes_service.rb +++ b/app/services/work_packages/set_attributes_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -285,145 +285,13 @@ def update_duration end def update_progress_attributes - if WorkPackage.use_status_for_done_ratio? - update_done_ratio - update_remaining_hours - elsif only_percent_complete_initially_set? - update_remaining_hours_from_percent_complete - else - update_estimated_hours - update_remaining_hours - update_done_ratio - end - round_progress_values - end - - def only_percent_complete_initially_set? - return false if work_package.done_ratio.nil? - return false if work_package.remaining_hours.present? - - work_package.estimated_hours_changed? && work_package.estimated_hours.present? - end - - def work_was_unset_and_remaining_work_is_set? - work_package.estimated_hours_was.nil? && work_package.remaining_hours.present? - end - - # Compute and update +done_ratio+ if its dependent attributes are being modified. - # The dependent attributes for +done_ratio+ are - # - +remaining_hours+ - # - +estimated_hours+ - # - # Unless both +remaining_hours+ and +estimated_hours+ are set, +done_ratio+ will be - # considered nil. - def update_done_ratio - if WorkPackage.use_status_for_done_ratio? - return unless work_package.status_id_changed? - - work_package.done_ratio = work_package.status.default_done_ratio - else - return unless work_package.remaining_hours_changed? || work_package.estimated_hours_changed? - - work_package.done_ratio = if done_ratio_dependent_attribute_unset? - nil - else - compute_done_ratio - end - end - end - - def round_progress_values - rounded = work_package.estimated_hours&.round(2) - if rounded != work_package.estimated_hours - work_package.estimated_hours = rounded - end - rounded = work_package.remaining_hours&.round(2) - if rounded != work_package.remaining_hours - work_package.remaining_hours = rounded - end - end - - def update_remaining_hours_from_percent_complete - return if work_package.remaining_hours_came_from_user? - return if work_package.estimated_hours&.negative? - - work_package.remaining_hours = remaining_hours_from_done_ratio_and_estimated_hours - end - - def done_ratio_dependent_attribute_unset? - work_package.remaining_hours.nil? || work_package.estimated_hours.nil? - end - - def compute_done_ratio - # do not change done ratio if the values are invalid - if invalid_progress_values? - return work_package.done_ratio - end - - completed_work = work_package.estimated_hours - work_package.remaining_hours - completion_ratio = completed_work.to_f / work_package.estimated_hours - - (completion_ratio * 100).round(2) - end - - def invalid_progress_values? - work = work_package.estimated_hours - remaining_work = work_package.remaining_hours - - return true if work.negative? - return true if remaining_work.negative? - - work && remaining_work && remaining_work > work - end - - def update_estimated_hours - return unless WorkPackage.use_field_for_done_ratio? - return if work_package.estimated_hours_came_from_user? - return unless work_package.remaining_hours_changed? - - work = work_package.estimated_hours - remaining_work = work_package.remaining_hours - return if work.present? - return if remaining_work.nil? || remaining_work.negative? - - work_package.estimated_hours = estimated_hours_from_done_ratio_and_remaining_hours - end - - # When in "Status-based" mode for % Complete, remaining hours are based - # on the computation of it derived from the status's default done ratio - # and the estimated hours. If the estimated hours are unset, then also - # unset the remaining hours. - # rubocop:disable Metrics/AbcSize,Metrics/PerceivedComplexity - def update_remaining_hours - if WorkPackage.use_status_for_done_ratio? - update_remaining_hours_from_percent_complete - elsif WorkPackage.use_field_for_done_ratio? && - work_package.estimated_hours_changed? - return if work_package.remaining_hours_came_from_user? - return if work_package.estimated_hours&.negative? - return if work_was_unset_and_remaining_work_is_set? # remaining work is kept and % complete will be set - - if work_package.estimated_hours.nil? || work_package.remaining_hours.nil? - work_package.remaining_hours = work_package.estimated_hours + derive_progress_values_class = + if OpenProject::FeatureDecisions.percent_complete_edition_active? + WorkPackage.use_status_for_done_ratio? ? DeriveProgressValuesStatusBased : DeriveProgressValuesWorkBased else - delta = work_package.estimated_hours - work_package.estimated_hours_was - work_package.remaining_hours = (work_package.remaining_hours + delta).clamp(0.0, work_package.estimated_hours) + Pre144DeriveProgressValues end - end - end - # rubocop:enable Metrics/AbcSize,Metrics/PerceivedComplexity - - def estimated_hours_from_done_ratio_and_remaining_hours - remaining_ratio = 1.0 - ((work_package.done_ratio || 0) / 100.0) - work_package.remaining_hours / remaining_ratio - end - - def remaining_hours_from_done_ratio_and_estimated_hours - return nil if work_package.done_ratio.nil? || work_package.estimated_hours.nil? - - completed_work = work_package.estimated_hours * work_package.done_ratio / 100.0 - remaining_hours = (work_package.estimated_hours - completed_work).round(2) - remaining_hours.clamp(0.0, work_package.estimated_hours) + derive_progress_values_class.new(work_package).call end def set_version_to_nil diff --git a/app/services/work_packages/set_attributes_service/derive_progress_values_base.rb b/app/services/work_packages/set_attributes_service/derive_progress_values_base.rb new file mode 100644 index 000000000000..0138952612d1 --- /dev/null +++ b/app/services/work_packages/set_attributes_service/derive_progress_values_base.rb @@ -0,0 +1,169 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +class WorkPackages::SetAttributesService + class DeriveProgressValuesBase + attr_reader :work_package + + PROGRESS_ATTRIBUTES = %i[work remaining_work percent_complete].freeze + + def initialize(work_package) + @work_package = work_package + end + + def call + derive_progress_attributes + round_progress_values + end + + def work + work_package.estimated_hours + end + + def work=(value) + work_package.estimated_hours = value + end + + def work_was + work_package.estimated_hours_was + end + + def work_set? + work.present? + end + + def work_unset? + work.nil? + end + + def work_was_unset? + work_package.estimated_hours_was.nil? + end + + def work_changed? + work_package.estimated_hours_changed? + end + + def work_came_from_user? + work_package.estimated_hours_came_from_user? + end + + def work_not_provided_by_user? + !work_came_from_user? + end + + def remaining_work + work_package.remaining_hours + end + + def remaining_work=(value) + work_package.remaining_hours = value + end + + def remaining_work_set? + remaining_work.present? + end + + def remaining_work_unset? + remaining_work.nil? + end + + def remaining_work_was_unset? + work_package.remaining_hours_was.nil? + end + + def remaining_work_changed? + work_package.remaining_hours_changed? + end + + def remaining_work_came_from_user? + work_package.remaining_hours_came_from_user? + end + + def remaining_work_not_provided_by_user? + !remaining_work_came_from_user? + end + + def percent_complete + work_package.done_ratio + end + + def percent_complete=(value) + work_package.done_ratio = value + end + + def percent_complete_set? + percent_complete.present? + end + + def percent_complete_unset? + percent_complete.nil? + end + + def percent_complete_was_unset? + work_package.done_ratio_was.nil? + end + + def percent_complete_changed? + work_package.done_ratio_changed? + end + + def percent_complete_came_from_user? + work_package.done_ratio_came_from_user? + end + + def percent_complete_not_provided_by_user? + !percent_complete_came_from_user? + end + + private + + def round_progress_values + # The values are set only when rounding returns a different value. Doing + # otherwise would modify the values returned by `xxx_before_type_cast` and + # prevent the numericality validator from working when setting the field + # to a string value. + rounded = work&.round(2) + if rounded != work + self.work = rounded + end + rounded = remaining_work&.round(2) + if rounded != remaining_work + self.remaining_work = rounded + end + end + + def remaining_work_from_percent_complete_and_work + return nil if work_unset? || percent_complete_unset? + + completed_work = work * percent_complete / 100.0 + remaining_work = (work - completed_work).round(2) + remaining_work.clamp(0.0, work) + end + end +end diff --git a/app/services/work_packages/set_attributes_service/derive_progress_values_status_based.rb b/app/services/work_packages/set_attributes_service/derive_progress_values_status_based.rb new file mode 100644 index 000000000000..b38db2a6744a --- /dev/null +++ b/app/services/work_packages/set_attributes_service/derive_progress_values_status_based.rb @@ -0,0 +1,57 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +class WorkPackages::SetAttributesService + class DeriveProgressValuesStatusBased < DeriveProgressValuesBase + private + + def derive_progress_attributes + raise ArgumentError, "Cannot use #{self.class.name} in work-based mode" if WorkPackage.work_based_mode? + + update_percent_complete + update_remaining_work_from_percent_complete + end + + # Update +% complete+ from the status if the status changed. + def update_percent_complete + return unless work_package.status_id_changed? + + self.percent_complete = work_package.status.default_done_ratio + end + + # When in "Status-based" mode for progress calculation, remaining work is + # always derived from % complete and work. If work is unset, then remaining + # work must be unset too. + def update_remaining_work_from_percent_complete + return if remaining_work_came_from_user? + return if work&.negative? + + self.remaining_work = remaining_work_from_percent_complete_and_work + end + end +end diff --git a/app/services/work_packages/set_attributes_service/derive_progress_values_work_based.rb b/app/services/work_packages/set_attributes_service/derive_progress_values_work_based.rb new file mode 100644 index 000000000000..c599d8456876 --- /dev/null +++ b/app/services/work_packages/set_attributes_service/derive_progress_values_work_based.rb @@ -0,0 +1,127 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +class WorkPackages::SetAttributesService + class DeriveProgressValuesWorkBased < DeriveProgressValuesBase + private + + def derive_progress_attributes + raise ArgumentError, "Cannot use #{self.class.name} in status-based mode" if WorkPackage.status_based_mode? + + # do not change anything if some values are invalid: this will be detected + # by the contract and errors will be set. + return if invalid_progress_values? + + update_work if derive_work? + update_remaining_work if derive_remaining_work? + update_percent_complete if derive_percent_complete? + end + + def invalid_progress_values? + work&.negative? \ + || remaining_work&.negative? \ + || percent_complete_out_of_range? \ + || remaining_work_set_greater_than_work? + end + + def percent_complete_out_of_range? + percent_complete && !percent_complete.between?(0, 100) + end + + def derive_work? + work_not_provided_by_user? && (remaining_work_changed? || percent_complete_changed?) + end + + def derive_remaining_work? + remaining_work_not_provided_by_user? && (work_changed? || percent_complete_changed?) + end + + def derive_percent_complete? + percent_complete_not_provided_by_user? && (work_changed? || remaining_work_changed?) + end + + def update_work + return if work_set_and_no_user_inputs_provided_for_both_remaining_work_and_percent_complete? + return if remaining_work_unset? && percent_complete_unset? + + self.work = work_from_percent_complete_and_remaining_work + end + + # rubocop:disable Metrics/AbcSize,Metrics/PerceivedComplexity + def update_remaining_work + return if work_unset? && percent_complete_unset? + return if work_was_unset? && remaining_work_set? # remaining work is kept and % complete will be set + + if work_set? && remaining_work_unset? && percent_complete_unset? + self.remaining_work = work + elsif work_changed? && work_set? && remaining_work_set? && !percent_complete_changed? + delta = work - work_was + self.remaining_work = (remaining_work + delta).clamp(0.0, work) + elsif work_unset? || percent_complete_unset? + self.remaining_work = nil + else + self.remaining_work = remaining_work_from_percent_complete_and_work + end + end + # rubocop:enable Metrics/AbcSize,Metrics/PerceivedComplexity + + def update_percent_complete + return if work_unset? + + self.percent_complete = percent_complete_from_work_and_remaining_work + end + + def percent_complete_from_work_and_remaining_work + return nil if work.zero? || remaining_work_unset? + + completed_work = work - remaining_work + completion_ratio = completed_work.to_f / work + + (completion_ratio * 100).round + end + + def work_from_percent_complete_and_remaining_work + return if remaining_work_unset? + + remaining_percent_complete = 1.0 - ((percent_complete || 0) / 100.0) + remaining_work / remaining_percent_complete + end + + def remaining_work_set_greater_than_work? + attributes_from_user == %i[remaining_work] && work && remaining_work && remaining_work > work + end + + def attributes_from_user + @attributes_from_user ||= PROGRESS_ATTRIBUTES.filter { |attr| public_send(:"#{attr}_came_from_user?") } + end + + def work_set_and_no_user_inputs_provided_for_both_remaining_work_and_percent_complete? + work_set? && (remaining_work_not_provided_by_user? || percent_complete_not_provided_by_user?) + end + end +end diff --git a/app/services/work_packages/set_attributes_service/pre_14_4_derive_progress_values.rb b/app/services/work_packages/set_attributes_service/pre_14_4_derive_progress_values.rb new file mode 100644 index 000000000000..0248a413bf8f --- /dev/null +++ b/app/services/work_packages/set_attributes_service/pre_14_4_derive_progress_values.rb @@ -0,0 +1,186 @@ +#-- copyright +# OpenProject is an open source project management software. +# Copyright (C) the OpenProject GmbH +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2013 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See COPYRIGHT and LICENSE files for more details. +#++ + +# rubocop:disable Metrics/AbcSize +class WorkPackages::SetAttributesService + class Pre144DeriveProgressValues + attr_reader :work_package + + def initialize(work_package) + @work_package = work_package + end + + def call + update_progress_attributes + end + + # From this point, copied over from 109b135b:app/services/work_packages/set_attributes_service.rb#L287-L427 + def update_progress_attributes + if WorkPackage.use_status_for_done_ratio? + update_done_ratio + update_remaining_hours + elsif only_percent_complete_initially_set? + update_remaining_hours_from_percent_complete + else + update_estimated_hours + update_remaining_hours + update_done_ratio + end + round_progress_values + end + + def only_percent_complete_initially_set? + return false if work_package.done_ratio.nil? + return false if work_package.remaining_hours.present? + + work_package.estimated_hours_changed? && work_package.estimated_hours.present? + end + + def work_was_unset_and_remaining_work_is_set? + work_package.estimated_hours_was.nil? && work_package.remaining_hours.present? + end + + # Compute and update +done_ratio+ if its dependent attributes are being modified. + # The dependent attributes for +done_ratio+ are + # - +remaining_hours+ + # - +estimated_hours+ + # + # Unless both +remaining_hours+ and +estimated_hours+ are set, +done_ratio+ will be + # considered nil. + def update_done_ratio + if WorkPackage.use_status_for_done_ratio? + return unless work_package.status_id_changed? + + work_package.done_ratio = work_package.status.default_done_ratio + else + return unless work_package.remaining_hours_changed? || work_package.estimated_hours_changed? + + work_package.done_ratio = if done_ratio_dependent_attribute_unset? + nil + else + compute_done_ratio + end + end + end + + def round_progress_values + rounded = work_package.estimated_hours&.round(2) + if rounded != work_package.estimated_hours + work_package.estimated_hours = rounded + end + rounded = work_package.remaining_hours&.round(2) + if rounded != work_package.remaining_hours + work_package.remaining_hours = rounded + end + end + + def update_remaining_hours_from_percent_complete + return if work_package.remaining_hours_came_from_user? + return if work_package.estimated_hours&.negative? + + work_package.remaining_hours = remaining_hours_from_done_ratio_and_estimated_hours + end + + def done_ratio_dependent_attribute_unset? + work_package.remaining_hours.nil? || work_package.estimated_hours.nil? + end + + def compute_done_ratio + # do not change done ratio if the values are invalid + if invalid_progress_values? + return work_package.done_ratio + end + + completed_work = work_package.estimated_hours - work_package.remaining_hours + completion_ratio = completed_work.to_f / work_package.estimated_hours + + (completion_ratio * 100).round(2) + end + + def invalid_progress_values? + work = work_package.estimated_hours + remaining_work = work_package.remaining_hours + + return true if work.negative? + return true if remaining_work.negative? + + work && remaining_work && remaining_work > work + end + + def update_estimated_hours + return unless WorkPackage.use_field_for_done_ratio? + return if work_package.estimated_hours_came_from_user? + return unless work_package.remaining_hours_changed? + + work = work_package.estimated_hours + remaining_work = work_package.remaining_hours + return if work.present? + return if remaining_work.nil? || remaining_work.negative? + + work_package.estimated_hours = estimated_hours_from_done_ratio_and_remaining_hours + end + + # When in "Status-based" mode for % Complete, remaining hours are based + # on the computation of it derived from the status's default done ratio + # and the estimated hours. If the estimated hours are unset, then also + # unset the remaining hours. + # rubocop:disable Metrics/PerceivedComplexity + def update_remaining_hours + if WorkPackage.use_status_for_done_ratio? + update_remaining_hours_from_percent_complete + elsif WorkPackage.use_field_for_done_ratio? && + work_package.estimated_hours_changed? + return if work_package.remaining_hours_came_from_user? + return if work_package.estimated_hours&.negative? + return if work_was_unset_and_remaining_work_is_set? # remaining work is kept and % complete will be set + + if work_package.estimated_hours.nil? || work_package.remaining_hours.nil? + work_package.remaining_hours = work_package.estimated_hours + else + delta = work_package.estimated_hours - work_package.estimated_hours_was + work_package.remaining_hours = (work_package.remaining_hours + delta).clamp(0.0, work_package.estimated_hours) + end + end + end + # rubocop:enable Metrics/PerceivedComplexity + + def estimated_hours_from_done_ratio_and_remaining_hours + remaining_ratio = 1.0 - ((work_package.done_ratio || 0) / 100.0) + work_package.remaining_hours / remaining_ratio + end + + def remaining_hours_from_done_ratio_and_estimated_hours + return nil if work_package.done_ratio.nil? || work_package.estimated_hours.nil? + + completed_work = work_package.estimated_hours * work_package.done_ratio / 100.0 + remaining_hours = (work_package.estimated_hours - completed_work).round(2) + remaining_hours.clamp(0.0, work_package.estimated_hours) + end + end +end +# rubocop:enable Metrics/AbcSize diff --git a/app/services/work_packages/set_schedule_service.rb b/app/services/work_packages/set_schedule_service.rb index a27d13e680c8..f019d28cc3eb 100644 --- a/app/services/work_packages/set_schedule_service.rb +++ b/app/services/work_packages/set_schedule_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/shared/all_days.rb b/app/services/work_packages/shared/all_days.rb index 3efe16d213b9..bcceae1539f9 100644 --- a/app/services/work_packages/shared/all_days.rb +++ b/app/services/work_packages/shared/all_days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/shared/days.rb b/app/services/work_packages/shared/days.rb index bc95af09e795..90a75e27e683 100644 --- a/app/services/work_packages/shared/days.rb +++ b/app/services/work_packages/shared/days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/shared/update_ancestors.rb b/app/services/work_packages/shared/update_ancestors.rb index 5d673b7a2b54..6ee5ba33e2e5 100644 --- a/app/services/work_packages/shared/update_ancestors.rb +++ b/app/services/work_packages/shared/update_ancestors.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/shared/working_days.rb b/app/services/work_packages/shared/working_days.rb index b7c87f2a5d0a..ecaf0a887548 100644 --- a/app/services/work_packages/shared/working_days.rb +++ b/app/services/work_packages/shared/working_days.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/update_ancestors/loader.rb b/app/services/work_packages/update_ancestors/loader.rb index 3e9646e5f99e..966a04fd4620 100644 --- a/app/services/work_packages/update_ancestors/loader.rb +++ b/app/services/work_packages/update_ancestors/loader.rb @@ -1,5 +1,5 @@ # OpenProject is an open source project management software. -# Copyright (C) 2022 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/update_ancestors_service.rb b/app/services/work_packages/update_ancestors_service.rb index 0ced628eac74..b6f0c3e0d78f 100644 --- a/app/services/work_packages/update_ancestors_service.rb +++ b/app/services/work_packages/update_ancestors_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/work_packages/update_service.rb b/app/services/work_packages/update_service.rb index 7865485a1182..4788e7374239 100644 --- a/app/services/work_packages/update_service.rb +++ b/app/services/work_packages/update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/services/workflows/bulk_update_service.rb b/app/services/workflows/bulk_update_service.rb index 39ce29d932f7..0008eb51e371 100644 --- a/app/services/workflows/bulk_update_service.rb +++ b/app/services/workflows/bulk_update_service.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb index 62db04ecfe0d..f5dac20f39a6 100644 --- a/app/uploaders/file_uploader.rb +++ b/app/uploaders/file_uploader.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/uploaders/fog_file_uploader.rb b/app/uploaders/fog_file_uploader.rb index 9349402b6b33..77633b6b9181 100644 --- a/app/uploaders/fog_file_uploader.rb +++ b/app/uploaders/fog_file_uploader.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/uploaders/local_file_uploader.rb b/app/uploaders/local_file_uploader.rb index a3e3fb90eab7..23bc605e689d 100644 --- a/app/uploaders/local_file_uploader.rb +++ b/app/uploaders/local_file_uploader.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/validators/not_nil_validator.rb b/app/validators/not_nil_validator.rb index 4711355806f1..ac97716dbd87 100644 --- a/app/validators/not_nil_validator.rb +++ b/app/validators/not_nil_validator.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. @@ -23,7 +23,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -# See docs/COPYRIGHT.rdoc for more details. +# See COPYRIGHT and LICENSE files for more details. #++ class NotNilValidator < ActiveModel::EachValidator diff --git a/app/validators/secure_context_uri_validator.rb b/app/validators/secure_context_uri_validator.rb index 8eb2df613a4e..573beec7f295 100644 --- a/app/validators/secure_context_uri_validator.rb +++ b/app/validators/secure_context_uri_validator.rb @@ -1,6 +1,6 @@ #-- copyright # OpenProject is an open source project management software. -# Copyright (C) 2012-2024 the OpenProject GmbH +# Copyright (C) the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/accessibility/_empty_element_tag.html.erb b/app/views/accessibility/_empty_element_tag.html.erb index 3699d4209d1b..c952f6e5abd6 100644 --- a/app/views/accessibility/_empty_element_tag.html.erb +++ b/app/views/accessibility/_empty_element_tag.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/_auth_providers.html.erb b/app/views/account/_auth_providers.html.erb index b2bcbec89e0f..a828b896617b 100644 --- a/app/views/account/_auth_providers.html.erb +++ b/app/views/account/_auth_providers.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/_login.html.erb b/app/views/account/_login.html.erb index aabd685021b9..802e4f290772 100644 --- a/app/views/account/_login.html.erb +++ b/app/views/account/_login.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/_omniauth_login.html.erb b/app/views/account/_omniauth_login.html.erb index 3530a583bcb7..8e15ba116476 100644 --- a/app/views/account/_omniauth_login.html.erb +++ b/app/views/account/_omniauth_login.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erb index f58caaeefb76..04b2e0d9d507 100644 --- a/app/views/account/_password_login_form.html.erb +++ b/app/views/account/_password_login_form.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erb index 8ea86ce868b0..d3e7176812e3 100644 --- a/app/views/account/_register.html.erb +++ b/app/views/account/_register.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/consent.html.erb b/app/views/account/consent.html.erb index 854a18edaae8..1fd00ba74d89 100644 --- a/app/views/account/consent.html.erb +++ b/app/views/account/consent.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/exit.html.erb b/app/views/account/exit.html.erb index f616717796db..76d202bf294d 100644 --- a/app/views/account/exit.html.erb +++ b/app/views/account/exit.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index c07defe494a9..caf05943193f 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/lost_password.html.erb b/app/views/account/lost_password.html.erb index 876a98d21c08..5f2859f265c4 100644 --- a/app/views/account/lost_password.html.erb +++ b/app/views/account/lost_password.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erb index e2caa6d63f9a..47b1f76db29f 100644 --- a/app/views/account/password_recovery.html.erb +++ b/app/views/account/password_recovery.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index f124715ef1af..8fdf8af86f40 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index 9d22e875e645..b252f30e50be 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/attachments/quarantined_attachments/index.html.erb b/app/views/admin/attachments/quarantined_attachments/index.html.erb index 37e16a02860c..d9108ba5c9c0 100644 --- a/app/views/admin/attachments/quarantined_attachments/index.html.erb +++ b/app/views/admin/attachments/quarantined_attachments/index.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/backups/reset_token.html.erb b/app/views/admin/backups/reset_token.html.erb index 91b8977b3af8..7cf210509bb4 100644 --- a/app/views/admin/backups/reset_token.html.erb +++ b/app/views/admin/backups/reset_token.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/backups/show.html.erb b/app/views/admin/backups/show.html.erb index c17f8d8a0ffe..1b6f6fa64d16 100644 --- a/app/views/admin/backups/show.html.erb +++ b/app/views/admin/backups/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -90,7 +90,7 @@ See COPYRIGHT and LICENSE files for more details. <% end %> <% if @backup_token.present? %> -<%= tag :backup, data: { +<%= angular_component_tag "opce-backup", data: { 'job-status-id': @job_status_id, 'last-backup-date': @last_backup_date, 'last-backup-attachment-id': @last_backup_attachment_id, diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index 6a4a5230c754..481cf3dcf8cc 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erb index 5faada1b803f..6d28c0fa51e8 100644 --- a/app/views/admin/info.html.erb +++ b/app/views/admin/info.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erb index 732e11a8601a..9d431a89396c 100644 --- a/app/views/admin/plugins.html.erb +++ b/app/views/admin/plugins.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/aggregation_settings/show.html.erb b/app/views/admin/settings/aggregation_settings/show.html.erb index e4789920feb4..804ad55bdb0e 100644 --- a/app/views/admin/settings/aggregation_settings/show.html.erb +++ b/app/views/admin/settings/aggregation_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/api_settings/show.html.erb b/app/views/admin/settings/api_settings/show.html.erb index 649df735b542..2c8a696ca2e3 100644 --- a/app/views/admin/settings/api_settings/show.html.erb +++ b/app/views/admin/settings/api_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/attachments_settings/show.html.erb b/app/views/admin/settings/attachments_settings/show.html.erb index 5cecc9a53368..d7be7a30e7cf 100644 --- a/app/views/admin/settings/attachments_settings/show.html.erb +++ b/app/views/admin/settings/attachments_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/authentication_settings/show.html.erb b/app/views/admin/settings/authentication_settings/show.html.erb index b1b977886c30..8943b42aee49 100644 --- a/app/views/admin/settings/authentication_settings/show.html.erb +++ b/app/views/admin/settings/authentication_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/date_format_settings/show.html.erb b/app/views/admin/settings/date_format_settings/show.html.erb index 0275f0bdc896..d558d1c58ca6 100644 --- a/app/views/admin/settings/date_format_settings/show.html.erb +++ b/app/views/admin/settings/date_format_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/experimental_settings/show.html.erb b/app/views/admin/settings/experimental_settings/show.html.erb index 4230a2220264..647e8281fc91 100644 --- a/app/views/admin/settings/experimental_settings/show.html.erb +++ b/app/views/admin/settings/experimental_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -51,8 +51,13 @@ See COPYRIGHT and LICENSE files for more details. - <% ::OpenProject::FeatureDecisions.all.each do |feature| %> -
<%= setting_check_box "feature_#{feature}_active", not_translated_label: feature.to_s %>
+ <% OpenProject::FeatureDecisions.all.each do |feature| %> +
+ <%= setting_check_box "feature_#{feature}_active", not_translated_label: feature.to_s.humanize %> +
+

<%= Settings::Definition["feature_#{feature}_active"].description %>

+
+
<% end %> diff --git a/app/views/admin/settings/general_settings/show.html.erb b/app/views/admin/settings/general_settings/show.html.erb index bb81201ae4e9..3af6d73f1d48 100644 --- a/app/views/admin/settings/general_settings/show.html.erb +++ b/app/views/admin/settings/general_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/icalendar_settings/show.html.erb b/app/views/admin/settings/icalendar_settings/show.html.erb index ad8b58c11477..f82f58b40bc9 100644 --- a/app/views/admin/settings/icalendar_settings/show.html.erb +++ b/app/views/admin/settings/icalendar_settings/show.html.erb @@ -1,6 +1,6 @@ <%# -- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/incoming_mails_settings/show.html.erb b/app/views/admin/settings/incoming_mails_settings/show.html.erb index 49d02c79aa6f..066a7d62705d 100644 --- a/app/views/admin/settings/incoming_mails_settings/show.html.erb +++ b/app/views/admin/settings/incoming_mails_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/languages_settings/show.html.erb b/app/views/admin/settings/languages_settings/show.html.erb index 59e4c4101631..4b3312b5377f 100644 --- a/app/views/admin/settings/languages_settings/show.html.erb +++ b/app/views/admin/settings/languages_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/mail_notifications_settings/show.html.erb b/app/views/admin/settings/mail_notifications_settings/show.html.erb index dd464dc728d4..1333508205c1 100644 --- a/app/views/admin/settings/mail_notifications_settings/show.html.erb +++ b/app/views/admin/settings/mail_notifications_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/new_project_settings/show.html.erb b/app/views/admin/settings/new_project_settings/show.html.erb index 6bcea0a55d50..b879a6594091 100644 --- a/app/views/admin/settings/new_project_settings/show.html.erb +++ b/app/views/admin/settings/new_project_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/project_custom_fields/edit.html.erb b/app/views/admin/settings/project_custom_fields/edit.html.erb index 8d61c6870365..9651e2fb7db1 100644 --- a/app/views/admin/settings/project_custom_fields/edit.html.erb +++ b/app/views/admin/settings/project_custom_fields/edit.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2023 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/project_custom_fields/index.html.erb b/app/views/admin/settings/project_custom_fields/index.html.erb index 28a58287d6c1..6a856aba4f38 100644 --- a/app/views/admin/settings/project_custom_fields/index.html.erb +++ b/app/views/admin/settings/project_custom_fields/index.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2023 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/project_custom_fields/new.html.erb b/app/views/admin/settings/project_custom_fields/new.html.erb index 2b2321568570..1d1b501fd099 100644 --- a/app/views/admin/settings/project_custom_fields/new.html.erb +++ b/app/views/admin/settings/project_custom_fields/new.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2023 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb b/app/views/admin/settings/project_custom_fields/project_mappings.html.erb index 66e463fa57d7..1f9cc9a070ff 100644 --- a/app/views/admin/settings/project_custom_fields/project_mappings.html.erb +++ b/app/views/admin/settings/project_custom_fields/project_mappings.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2023 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb index 92bae4037acc..f8ee4cf5648e 100644 --- a/app/views/admin/settings/projects_settings/show.html.erb +++ b/app/views/admin/settings/projects_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -39,20 +39,6 @@ See COPYRIGHT and LICENSE files for more details. <%= styled_form_tag(admin_settings_projects_path, method: :patch) do %>
- <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %> -
- <%= - angular_component_tag 'op-enterprise-banner', - inputs: { - textMessage: t('text_project_custom_field_html'), - collapsible: true, - moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href], - } - %> -
- <% end %> - -
<%= angular_component_tag 'opce-draggable-autocompleter', @@ -75,14 +61,13 @@ See COPYRIGHT and LICENSE files for more details.
- <%= content_tag 'editable-query-props', - '', - data: { - name: 'settings[project_gantt_query]', - id: 'settings_project_gantt_query', - query: ::Projects::GanttQueryGeneratorService.current_query, - 'url-params': 'true' - } + <%= angular_component_tag 'opce-editable-query-props', + data: { + name: 'settings[project_gantt_query]', + id: 'settings_project_gantt_query', + query: ::Projects::GanttQueryGeneratorService.current_query, + 'url-params': 'true' + } %> diff --git a/app/views/admin/settings/repositories_settings/show.html.erb b/app/views/admin/settings/repositories_settings/show.html.erb index 42119c2ad035..eb0d4810d749 100644 --- a/app/views/admin/settings/repositories_settings/show.html.erb +++ b/app/views/admin/settings/repositories_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/show_plugin.html.erb b/app/views/admin/settings/show_plugin.html.erb index 877efddf782a..1b0feba44eda 100644 --- a/app/views/admin/settings/show_plugin.html.erb +++ b/app/views/admin/settings/show_plugin.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/users_settings/show.html.erb b/app/views/admin/settings/users_settings/show.html.erb index c412fd7b730b..0f67f8b37049 100644 --- a/app/views/admin/settings/users_settings/show.html.erb +++ b/app/views/admin/settings/users_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/virus_scanning_settings/show.html.erb b/app/views/admin/settings/virus_scanning_settings/show.html.erb index 8181473af8e3..7a79bf68f43f 100644 --- a/app/views/admin/settings/virus_scanning_settings/show.html.erb +++ b/app/views/admin/settings/virus_scanning_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/virus_scanning_settings/upsale.html.erb b/app/views/admin/settings/virus_scanning_settings/upsale.html.erb index afd136808897..77f09925eccb 100644 --- a/app/views/admin/settings/virus_scanning_settings/upsale.html.erb +++ b/app/views/admin/settings/virus_scanning_settings/upsale.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb index 88daaf178482..d82dc602b7c1 100644 --- a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb +++ b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb @@ -1,7 +1,7 @@ <% unless EnterpriseToken.allows_to?(ee_feature) %> <%= - angular_component_tag 'op-enterprise-banner', + angular_component_tag 'opce-enterprise-banner', inputs: { collapsible: true, textMessage: explanation, diff --git a/app/views/admin/settings/work_packages_settings/show.html.erb b/app/views/admin/settings/work_packages_settings/show.html.erb index e4ae35b477d5..3baa0765efe3 100644 --- a/app/views/admin/settings/work_packages_settings/show.html.erb +++ b/app/views/admin/settings/work_packages_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb index 0a384f9f0a55..80f82d5479fc 100644 --- a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb +++ b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -90,7 +90,7 @@ See COPYRIGHT and LICENSE files for more details.

<%= t("working_days.instance_wide_info") %>

- <%= angular_component_tag "op-non-working-days-list", + <%= angular_component_tag "opce-non-working-days-list", data: { modified_non_working_days: @modified_non_working_days } %>
diff --git a/app/views/attribute_help_texts/_form.html.erb b/app/views/attribute_help_texts/_form.html.erb index 4059a136f08d..ebf19deadf5b 100644 --- a/app/views/attribute_help_texts/_form.html.erb +++ b/app/views/attribute_help_texts/_form.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/attribute_help_texts/_tab.html.erb b/app/views/attribute_help_texts/_tab.html.erb index edc64251d148..8b59eed73835 100644 --- a/app/views/attribute_help_texts/_tab.html.erb +++ b/app/views/attribute_help_texts/_tab.html.erb @@ -2,12 +2,12 @@ <% if entries.any? %>
-
+
- - - + + + @@ -42,7 +42,7 @@ edit_attribute_help_text_path(attribute_help_text) %>
- <%= angular_component_tag 'attribute-help-text', + <%= angular_component_tag 'opce-attribute-help-text', inputs: { helpTextId: attribute_help_text.id, attribute: attribute_help_text.attribute_name, diff --git a/app/views/attribute_help_texts/edit.html.erb b/app/views/attribute_help_texts/edit.html.erb index 5569709c0b0e..6cbdd2bb55d5 100644 --- a/app/views/attribute_help_texts/edit.html.erb +++ b/app/views/attribute_help_texts/edit.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/attribute_help_texts/index.html.erb b/app/views/attribute_help_texts/index.html.erb index 4964519968cb..6db28e5a33cc 100644 --- a/app/views/attribute_help_texts/index.html.erb +++ b/app/views/attribute_help_texts/index.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/attribute_help_texts/new.html.erb b/app/views/attribute_help_texts/new.html.erb index 32e6d3cf9056..467da146dcbf 100644 --- a/app/views/attribute_help_texts/new.html.erb +++ b/app/views/attribute_help_texts/new.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/attribute_help_texts/upsale.html.erb b/app/views/attribute_help_texts/upsale.html.erb index 928f8bea14ba..bba919c1ee1a 100644 --- a/app/views/attribute_help_texts/upsale.html.erb +++ b/app/views/attribute_help_texts/upsale.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/augmented/_collapsible_section.html.erb b/app/views/augmented/_collapsible_section.html.erb index b223a5c174aa..4b9986a9ffd9 100644 --- a/app/views/augmented/_collapsible_section.html.erb +++ b/app/views/augmented/_collapsible_section.html.erb @@ -1,6 +1,6 @@ - - - <% end %> @@ -116,8 +117,8 @@ - - + + diff --git a/app/views/custom_actions/edit.html.erb b/app/views/custom_actions/edit.html.erb index a6eb17641364..6c6a563ca8ca 100644 --- a/app/views/custom_actions/edit.html.erb +++ b/app/views/custom_actions/edit.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_actions/new.html.erb b/app/views/custom_actions/new.html.erb index ecaba4c5508f..f124a55d65bb 100644 --- a/app/views/custom_actions/new.html.erb +++ b/app/views/custom_actions/new.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_fields/_custom_options.html.erb b/app/views/custom_fields/_custom_options.html.erb index c428ef6a430f..f20f6934f719 100644 --- a/app/views/custom_fields/_custom_options.html.erb +++ b/app/views/custom_fields/_custom_options.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -32,12 +32,12 @@ See COPYRIGHT and LICENSE files for more details.
- +
- - - + + + diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index f41742ec2cb5..51868bc9c7ba 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -192,9 +192,9 @@ See COPYRIGHT and LICENSE files for more details.
- <%= f.check_box :visible %> + <%= f.check_box :admin_only %>
-

<%= t('custom_fields.instructions.visible') %>

+

<%= t('custom_fields.instructions.admin_only') %>

@@ -207,19 +207,19 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.check_box :is_required %>
-

<%= t('custom_fields.instructions.is_required') %>

+

<%= t('custom_fields.instructions.is_required_for_project') %>

- <%= f.check_box :visible %> + <%= f.check_box :admin_only %>
-

<%= t('custom_fields.instructions.visible') %>

+

<%= t('custom_fields.instructions.admin_only') %>

> <%= f.check_box :searchable %>
-

<%= t('custom_fields.instructions.searchable') %>

+

<%= t('custom_fields.instructions.searchable_for_project') %>

<% when "TimeEntryCustomField" %> diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erb index 7829a420e862..5616d5199745 100644 --- a/app/views/custom_fields/_tab.html.erb +++ b/app/views/custom_fields/_tab.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -27,20 +27,9 @@ See COPYRIGHT and LICENSE files for more details. ++#%> -<% if tab[:name] == 'ProjectCustomField' %> - <% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %> - <%= - angular_component_tag 'op-enterprise-banner', - inputs: { - collapsible: true, - textMessage: t('text_project_custom_field_html'), - moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:custom_field_projects][:href], - } - %> - <% end %> -<% end %> - -<% if (@custom_fields_by_type[tab[:name]] || []).any? %> +<% if @custom_fields_by_type[tab[:name]].blank? %> + <%= no_results_box(action_url: new_custom_field_path(type: tab[:name]), display_action: true) %> +<% else %>
<% if tab[:name] == 'WorkPackageCustomField' %> @@ -50,17 +39,17 @@ See COPYRIGHT and LICENSE files for more details.
<% end %> -
+
- - + + <% if tab[:name] == 'WorkPackageCustomField' %> - - + + <% end %> - - + + @@ -177,6 +166,4 @@ See COPYRIGHT and LICENSE files for more details.
-<% else %> - <%= no_results_box(action_url: new_custom_field_path(type: tab[:name]), display_action: true) %> <% end %> diff --git a/app/views/custom_fields/edit.html.erb b/app/views/custom_fields/edit.html.erb index 2948d4b27444..079d30862efe 100644 --- a/app/views/custom_fields/edit.html.erb +++ b/app/views/custom_fields/edit.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_fields/index.html.erb b/app/views/custom_fields/index.html.erb index 8b87fbce3438..c15534545512 100644 --- a/app/views/custom_fields/index.html.erb +++ b/app/views/custom_fields/index.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erb index 1d4bc9447853..2be43d2e23da 100644 --- a/app/views/custom_fields/new.html.erb +++ b/app/views/custom_fields/new.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_styles/_inline_css.erb b/app/views/custom_styles/_inline_css.erb index 4ea8b44cdf9b..56902b4a08eb 100644 --- a/app/views/custom_styles/_inline_css.erb +++ b/app/views/custom_styles/_inline_css.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_styles/_inline_css_logo.erb b/app/views/custom_styles/_inline_css_logo.erb index 904e75831c21..ea9e72797273 100644 --- a/app/views/custom_styles/_inline_css_logo.erb +++ b/app/views/custom_styles/_inline_css_logo.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. diff --git a/app/views/custom_styles/_primer_color_mapping.erb b/app/views/custom_styles/_primer_color_mapping.erb index e45aba87f383..e169a42e33c0 100644 --- a/app/views/custom_styles/_primer_color_mapping.erb +++ b/app/views/custom_styles/_primer_color_mapping.erb @@ -86,5 +86,9 @@ --type-form-conf-attribute--background: var(--overlay-bgColor); --select-arrow-bg-color-url: url("data:image/svg+xml;utf8,"); --ck-color-mention-text: var(--display-red-fgColor); + --ck-color-button-on-background: var(--button-default-bgColor-active); + --ck-color-button-default-active-background: var(--button-default-bgColor-active); + --ck-color-button-on-hover-background: var(--button-default-bgColor-hover); + --ck-color-button-on-disabled-background: var(--button-default-bgColor-disabled); } diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erb index 54d142cf02d2..9ffedb2176f1 100644 --- a/app/views/custom_styles/show.html.erb +++ b/app/views/custom_styles/show.html.erb @@ -1,6 +1,6 @@ <%#-- copyright OpenProject is an open source project management software. -Copyright (C) 2012-2024 the OpenProject GmbH +Copyright (C) the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. @@ -156,10 +156,10 @@ See COPYRIGHT and LICENSE files for more details. <% end %> <% custom_export_expanded = @custom_style.id && (@custom_style.export_logo.present? || @custom_style.export_cover.present? || @custom_style.export_cover_text_color.present?) %> - - -