42 Commits

Author SHA1 Message Date
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Oliver Günther 7c542ff58e Add PageHeader, remove SubHeader for consistency 2025-06-12 13:59:01 +02:00
Oliver Günther 5ad8a063ae Replace UpsellPageCompomponent with banners rendered as part of the normal flow 2025-06-12 13:38:55 +02:00
Henriette Darge d7c006ce82 Update SubHeader implementations to new mobile requirements in version 0.66.1 2025-05-19 15:11:05 +02:00
Henriette Darge da8ec0d4c1 Get rid of with_tab_nav from the tab helper as all pages now use the Primer PageHeader and its tabNav. Thus we can also get rid of an old Angular component 2025-04-30 12:24:32 +02:00
Oliver Günther e27ac494d3 Consistent naming of upsell, not upsale 2025-04-24 15:52:34 +02:00
Oliver Günther 9357553e3f Replace common/upsale with component 2025-04-07 10:55:22 +02:00
Ivan Kuchin ca5f8fb878 erb_lint auto fix trailing commas 2025-02-11 18:49:21 +01:00
Ivan Kuchin a98789d986 erb_lint auto fix part of style 2/3 2025-02-11 18:49:21 +01:00
Ivan Kuchin 0f6a12da3a erb_lint auto fix layout 2025-02-11 18:49:20 +01:00
Ivan Kuchin fb715f21b9 erb_lint auto fix quotes 2025-02-11 18:49:19 +01:00
Ivan Kuchin 0b1f73ec79 erb_lint auto except rubocop linter 2025-02-11 18:49:19 +01:00
Ivan Kuchin 42bcde050a fix copyright years for files which got them from a18954b2c9 2024-08-16 19:06:57 +02:00
Ivan Kuchin 73c56e33ee fix copyright years for files which got them from 7cf11bb689 2024-08-16 19:00:01 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Henriette Darge 2230cd8a99 Extract PageHeader code into separate components 2024-07-16 11:43:41 +02:00
Henriette Darge 46860150b1 Adapt tests to new PageHeader structure 2024-07-15 14:28:09 +02:00
Henriette Darge 393b794efd Use helper instead of repeating code 2024-07-15 11:19:34 +02:00
Henriette Darge 4f941dfda0 Introduce PageHeader component in Administration -> user settings -> Placeholder users 2024-07-15 10:56:19 +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
Henriette Darge 67dcba6fbe Merge button styles "alt-highlight" and "highlight" together in one "primary" style 2024-03-08 14:10:30 +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
ulferts 60ed64cd04 use error_messages_for method now 2023-10-24 12:06:36 +02:00
Klaus Zanders 2d5f5f3a26 Replace allowed_to_globally? -> allowed_globally? for global permission checks 2023-10-23 15:05:37 +02:00
Benjamin Bädorf 2d68d9f16c fix: Make activity page columns the same width
When having long texts in the changes column, it could take up a ton of
space, making the projects column very narrow. This commit hardcodes
the widths to be 50% each.

This commit also fixes mobile by wrapping the two columns if there isn't
enough horizontal space.

Ref: https://community.openproject.org/projects/openproject/work_packages/49595/activity
2023-08-10 14:56:19 +02:00
Dombi Attila b306222057 [#47012] Replace PlaceholderUsers::TableCell by ViewComponent
https://community.openproject.org/work_packages/47012
2023-05-23 15:31:43 +03:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Oliver Günther 0e3889a4e6 Refactor locals for common/upsale to make easier to use 2022-07-07 12:56:35 +02:00
bsatarnejad afedbd393a add more info to upsale common template 2022-06-30 16:50:17 +02:00
bsatarnejad f4ff5a4476 changing the descriptin image and video 2022-06-16 08:22:08 +02:00
Henriette Darge c97034d4a8 Set type of "ee trial" button to "button" to avoid unwanted form submits when clicking it 2022-06-13 14:15:49 +02:00
bsatarnejad f4d53d15ec update every where we used common upsale template and adding styles for video 2022-03-02 17:51:02 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Behrokh Satarnejad 97233137b9 [40038] Make team planner only accessible with EE token (#10021)
* check if the user has a correct ee token activated

* add team planner token and set the engine and routes of upsale

* Update team_planner_controller.rb

* before running the test we should check that we have a token

* check if there is an EE token, then start test

* change common upsale template

* improve the styles and add image to the template for each feature

* change custom actions and 2fa upsale template

* add image of team planner to its template and medal icon

* make placeholder user, 2fa and team planner upsale templates identical

* Make placeholder users upsale template the same as other upsale templates

* check if there is an ee token, then start testing

* check there is an enterprise token for team planner and start testing
2022-01-26 13:08:10 +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
Oliver Günther fc090ac024 [37136] Disable delete button and check for deletion (#9338)
https://community.openproject.org/wp/37136
2021-05-31 16:31:41 +02:00
ulferts f0cf90d7e1 Fix the rails cell not using the content_tag helper of ActionView with escaping (#9067)
* fixes show links for project members

* Properly escapes the name. The cells gem does not escape strings unlike rails
* Fixes the case statement for links and includes the link for placeholder users

* Fix escaping of content_tag in rails cell and add spec for that

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-03-04 14:24:25 +01:00
Wieland Lindenthal ffa5ac84a8 Allow deletion of placeholder users when permission of :manage_placeholder_user give (#9018)
* Refactoring: Rename permission :add_user and :add_placholder_user

to :manage_user and :manage_placeholder_user

* Add deletion to :manage_placeholder_user permission label

* WIP: Check :manage_placeholder_user permission before deletion

Specs still missing

* In controller rely on authorize_global for deleting placeholder users

* Add deletion_info for placeholder users

* Extend specs

* Set placeholder users to locked when deleting

* Review feedback

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-02-17 10:22:14 +01:00
Oliver Günther af35670694 Make placeholder users EE (#9003)
* Add global permission to manage (but not delete) placeholders

https://community.openproject.com/work_packages/35508

* Show EE upsale and disable creation of placeholders without it

* Review feedback
2021-02-16 21:32:30 +01:00
Oliver Günther bbeae32698 [35508] Add global permission to manage placeholder users (#9000)
* Add global permission to manage (but not delete) placeholders

https://community.openproject.com/work_packages/35508

* Restore breadcrumbs for non-show routes

* Remove permissions to memberships for add_placeholder_user permission

* Allow non-admins with global permission to access membership

* Remove permissions to memberships for add_placeholder_user permission

* Rename shared_examples for admin contract validations

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2021-02-16 14:16:35 +01:00
Wieland Lindenthal a18954b2c9 Placeholder user services and administration (#8944)
* Adding placeholder user contracts

* Adding create, update, and delete services for placeholder users

* WIP: Adding Placeholder User contract specs [ci skip]

* Extract contract validation into common helper

* Add common validation in BaseContract + common example for admin checks

* Introduce common ModelContract shared context for validations

* WIP: PlaceholderUser controller, i18n, and routes [ci skip]

* Placeholder users index page and query

- moved all group related scopes from User to Principal to make them also available in PlaceholderUser.

* end

* Create PlaceholderUser

* Feature spec for editing a placeholder user

* Manage PlaceholderUser memberships

The managment of memberships is pretty similar for User and PlaceholderUser. This commit extacts the similarities and uses them for both.

* General partial and show view for PlaceholderUser

* Delete obosolete partial

* Allow RequireAdminGuard to be used as a module function

* Fix I18n for confirmation text

* Smaller code improvements

* Fix: Syntax for accessing status enums was wrong.

* Use UpdateService for updating a placeholder user

* Add spec for PlaceholderUsersController

* First code improvements after code review.

- more improvements to come.

* Further code improvements after review

... still more to come

* Correct namespace of delete service

* Fix: Make placeholder user contract validate

* Remove :type attribute from base contract of User and PlaceholerUser

...and add it to the CreateContracts.
Also add type validations.

Further extract shared examples for placeholder user attribute
validation

* Refactor: Extract membership hook calls to helper

* Fix redirect paths for membership controllers

* Specs already present in shared exampels.

* Fix duplicates routes for users and placeholder users

* Fix user path

* Add attribute name and lastname

We don't need a writeable check as both are equally writable

* Replace more references to tab_edit_user_path

* Skip specs for PlaceholderUsers::DeletionService

We will tackle that service in a separate PR.

* Fix module usage of RequireAdminGuard

* Fix group filter for placeholder users

* Fix invalid reference to expect_valid

* Fix: Fix tabbed edit path for placeholder users

* Fix status filtering on users

* Linting

* Improve generalisation of individual principal filter cell

- Check for presence of groups and statuses in order
  to toggle visibility of their UI element.
- Remove groups from placeholder user controller and
  cell initialization and options

* Fix selector on groups assign

* Remove using_shared_fixtures

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-02-12 17:18:55 +01:00