53 Commits

Author SHA1 Message Date
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Oliver Günther 6227f6f04d Add diff for agenda item notes (#15179)
* Add diff for agenda items

To make the diff available without too much hassle in the journal controller,
the key of the events need to be what the journal details are (e.g., `agenda_items_X_notes`).

For that to work, we need to adapt the event mapper and formatters a little bit.

https://community.openproject.org/work_packages/53975

* Use target=_top for diff link

* Add diff for agenda items

To make the diff available without too much hassle in the journal controller,
the key of the events need to be what the journal details are (e.g., `agenda_items_X_notes`).

For that to work, we need to adapt the event mapper and formatters a little bit.

https://community.openproject.org/work_packages/53975

* Use target=_top for diff link

* Update spec

* Adapt journal key after merge

---------

Co-authored-by: Mir Bhatia <m.bhatia@openproject.com>
2024-04-08 19:33:47 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Mir Bhatia 19bf00a7b3 Add wiki_diff journal formatter for wiki diffs 2023-03-27 15:35:49 +02:00
Mir Bhatia 7c959dd7fd Reduce ABC size 2023-03-21 12:34:13 +01:00
Mir Bhatia 8e4233650f Fix specs 2023-03-21 10:26:25 +01:00
Mir Bhatia ef2dffbb17 Add test for wiki diffs and fix rubocop warnings 2023-03-20 15:01:33 +01:00
Mir Bhatia 57e500905d WIP: Update journal formatter diff to link to wiki diffs as well 2023-03-17 15:53:22 +01:00
Mir Bhatia 006023a896 WIP: Display wiki history diff instead of journal diff 2023-03-15 16:44:18 +01:00
Christophe Bliard 0f90fc4cb7 Pass activity_page for diff back link without using global state 2023-02-22 16:37:26 +01:00
Christophe Bliard 02673ed212 [46190] Link back button of diff page to the correct page
https://community.openproject.org/wp/46190
2023-02-21 18:06:52 +01:00
Christophe Bliard 78b5ad9b68 refactor: Remove double negative 2023-01-20 10:14:10 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
ulferts 89cfee203f remove usage of require_dependency
according to the rails 6 migration guide, it should no longer be necessary: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#require-dependency
2022-01-07 14:46:21 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
ulferts 5968c0b18a Fix/replace custom i18n function (#8681)
* replace custom i18n function calls

* remove custom i18n method
2020-09-16 11:26:15 +02:00
ulferts 8969afe617 close time entry modal on enter (#8653)
* close time entry modal on enter

As the time entry is saved anyway once the user saves the form, e.g. by pressing enter in the hours field, we can close the whole modal along with it. The "Save" and "Cancel" buttons do not make sense then anymore

* attempt to stabilize flickering spec

* fix ruby 2.7.1 hash parameter deprecations
2020-09-11 15:14:48 +02:00
ulferts 3a3a48e267 journalize changes to the scheduling mode 2020-08-04 08:12:51 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 88a5e787ce CKEditor5 config and bundle for OP 2018-02-12 15:38:10 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Alex Coles e4c87bc2b4 Merge branch 'dev' into feature/rails4
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-08-08 19:44:58 +01:00
Alexander Bach a8e1aadec7 replace changed_data by details
working towards making the alias obsolete...
2015-08-06 09:32:15 +02:00
Alex Coles 3abb8c7fa4 Remove unloadable from lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-07-11 12:24:01 +02:00
Jan Sandbrink 9b9785ca0c invert conditions for better readability 2015-04-09 11:00:33 +02:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles 45297523c2 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 23:49:01 +01:00
Alex Coles e7400af52a Use 1.9+ Hash syntax in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 22:15:13 +01:00
Alex Coles 23d14e94a9 Fix whitespace in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-05-29 23:50:04 +02:00
Johannes Wollert 8b096975fe updates copyright headers
updates more copyright

more copyright headers
2014-02-27 16:39:51 +01:00
Jens Ulferts d57b56a53e streamlines configuration of relative_url_root
* includes relative_url_root into OpenProject::Configuration
* ensures loading in environment so that it is also used for asset precompiling
2013-12-05 13:35:52 +01:00
Jens Ulferts 4f512dccd2 moves relative url root functionality into own module 2013-12-05 13:35:51 +01:00
Jens Ulferts 2542251737 fixes calling the work package description diff when in a sub uri 2013-12-05 13:35:51 +01:00
Philipp Tessenow a1e67dd460 new copyright header #1903 2013-09-16 17:59:31 +02:00
Jens Ulferts bacb3f0479 introduces ajax triggered inline diff on work_package#show
The functionality itself is adapted from issue#show.

On the other hand, the diff is no longer rendered with the full url as the
link's href. Using the full url caused problems with selenium tests that
ran into problems with cross domain requests. This could have been fixed
by setting the application's host and protocol setting accordingly.
However, it is much cleaner to use a relative url. So for rendering the
diff inside the application the behaviour was alterd to use relative
url. The full url is now only used where it is absolutely necessary
(pdf, email).
2013-07-18 16:40:13 +02:00
Hagen Schink 872eb35ef1 Introduced default value 2013-06-24 10:41:59 +02:00
Jens Ulferts 21459a384f provide every possible file with a short copyright notice
This was done using the rake task: rake copyright:update
2013-06-07 10:49:57 +02:00
Philipp Tessenow d07dce788f be careful with nested namespace'd controllers in our libs 2013-04-22 16:23:50 +02:00
Philipp Tessenow 15d292773c unloadable commenting party 2013-02-26 15:04:45 +01:00
Philipp Tessenow 5363c28e75 Merge commit '1e84433' into feature/rails3
Conflicts:
	app/helpers/journals_helper.rb
	app/views/mailer/issue_edit.text.html.rhtml
	app/views/mailer/issue_edit.text.plain.rhtml
2013-02-26 13:31:22 +01:00
Philipp Tessenow c87d009864 fix use of relative_url_root in JournalFormatter::Diff 2013-02-19 16:43:30 +01:00
Jens Ulferts e3be06f320 allows journal formatters to receive options and uses it to be able to
pass an object cache

For now it is only used by the NamedAssociation Formatter. The formatter
requires to read a lot of model objects.
2013-02-11 09:14:36 +01:00