28 Commits

Author SHA1 Message Date
ulferts 608cc40e68 replace old visible methods on wp cf 2026-02-24 14:31:40 +01:00
Oliver Günther 3552df22a6 Implement attribute help text caption 2025-11-25 22:06:38 +01:00
Alexander Brandon Coles d17da65477 Freeze string literals in app/models
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/models
2025-07-22 18:26:13 +01:00
Alexander Brandon Coles 3ebd4147f8 Fix AttributeHelpText::Project#type_caption 2025-06-03 12:33:00 +01:00
Tobias Dillmann a40079f7ad [#62317] redefine WorkPackageCustomField#visible_by_user scope
The old scope meant to determine if a user could "manage" custom fields.
It was never about seeing them. Updated the scope names to reflect that.
2025-03-21 09:49:07 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +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
Oliver Günther 4576c67f09 Allow members help-text to be added
Shown at:
  - Members widget in overview
  - Members role selection
2023-03-15 11:28:12 +01:00
Christophe Bliard 10085736da refactor: Rename and generalize #accessor_name as #attribute_name
Also extract #attribute_getter and #attribute_setter when
using #attribute_name in the context of calling the getter/setter
methods.
2023-01-17 09:39:27 +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 af5d400bb2 linting 2021-11-22 11:09:39 +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 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
Oliver Günther c369a71f4d Allow project help texts on the rails form
Renders help texts on a project core attributes and custom fields
2020-08-20 09:04:33 +02:00
Oliver Günther b1a99353e2 Extend attribute help text for projects and allow images
Attribute help text so far could only be added to work packages.
This commit adds support for projects and adds the help texts to
widget headers for status and description modals in the overview tab
as well as extending the attachable mixin to allow uploading images.

Uploaded attachments are to be expected to be visible regardless of permissions,
thus this also adds an option to make attachments visible to all
2020-07-13 13:10:14 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 3807bc4f7f [28446] Rename due date to finish date
https://community.openproject.com/wp/28446
2018-09-10 15:12:14 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 86c17f5c22 [25829] Don't provide start/due date as help texts
We don't have an option to show them in the combined start/due date
fields of the single view.

[ci skip]
2017-07-18 09:21:14 +02:00
ulferts 4b7e3ff26d Feature/limit attribute help text visibility (#5749)
* code prettification

* avoid help text for newly added cf requiring restart

When using the class method statically, the values are determined upon reading the class. By that, a restart is required before newly added custom fields are added to the list and removed custom fields will still be listed

* limit visibility of attribute help texts

[ci skip]
2017-07-12 21:13:28 +02:00
Oliver Günther 52fdada767 Fix/help text bugs (#5745)
* [25778] Sort available help attributes

* [25799] Use proc for inclusion check

Otherwise, that value is never re-evaluated. A newly created CF
will fail to be found.

https://community.openproject.com/wp/25779/

* [25780] Remove paragraph signs in headings of help text modal

* [25781] Overflow help text modal after 50vh

* [25782] Add ellipsis to modal header


[ci skip]
2017-07-11 18:44:04 +02:00
Oliver Günther 9fabaaaf13 Show only attributes from the type attributes and status, project 2017-07-06 14:21:31 +02:00
Oliver Günther 39e11c72dc Create backend for help text CRUD 2017-07-06 14:20:57 +02:00