* 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>
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
* 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
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).