47 Commits

Author SHA1 Message Date
Klaus Zanders b4dcdf467e Remove generic find methods in controllers 2026-02-09 15:07:52 +01:00
Oliver Günther 14192a74c3 Replace confirm with turbo-confirm, method with turbo-method 2025-09-26 09:15:04 +02:00
Alexander Brandon Coles f15be6e07f Freeze string literals in app/controllers
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/controllers
2025-07-18 17:51:00 +01:00
Oliver Günther 8c5d182d7b Add EnterpriseGuard to make it easier to add before_actions 2025-06-12 13:38:55 +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 f496da2aad Merge release/16.0 into dev 2025-05-16 14:56:25 +02:00
Oliver Günther e27ac494d3 Consistent naming of upsell, not upsale 2025-04-24 15:52:34 +02:00
Henriette Darge ee8452282a [63485] Remove show_local_breadcrumb and default_breadcrumb (#18663)
* add a new helper for breadcrumb in wiki page

* set page header in destroy page

* set page header in edit page

* set page header in history and rename and edit parent pages

* change toolbar items into page header items

* add new wiki action to sub header

* remove version edit page which is not in use any more

* add export as a menu item of the header

* fix rubocup errors

* fix failing tests

* replace page header in annotate page

* replace page header in diff page

* add page header in select menu page

* fix rubocup errors

* fix errors on rename test

* fix errors on selecting items from toolbar

* fix errors on tests for child pages

* set correct permission for configure menu item

* replace page header in summary page

* replace page header in summary details page

* edit docs of sub header

* add page header in wiki new page

* remove controller and a route for edit method

* undo changes for docs of sub header

* extract header in show page into a new component

* use helper method in header component

* add wiki module to the breadcrumb

* rename page header component for wiki page

* simplify how lock and lock implemented

* extract sub header

* remove wiki title from header of history page

* fix page header in new page

* use page.find_test_selector in test

* fix failing test for summary page

* fix failing test for wiki child pages

* change the summary test

* use test selector for page header title

* undo changes for activate user in admin

* use test selector in adding editing history test

* use test selector in attachment upload test

* use test selector in child pages tests

* use test selector in wiki menu items tests

* change test selector for breadcrumbs

* extract conditions to show edit button into a method

* extract conditions to show rollback action menu item into a method

* extract conditions to show create button into a method

* fix duplicated code in test

* Remove outdated `show_local_breadcrumb` method which is replaced by the Primer::PageHeader breadcrumb

* Remove `default_breadcrumb` method as it serves no prupose any more

* Remove the old breadcrumb and its hook completely

* remove breadcrumbs path from rename

* fix translations errors in storages

* undo changes on translations

* remove default breadcrumbs in time tracking controller

---------

Co-authored-by: Behrokh Satarnejad <b.satarnejad@openproject.com>
Co-authored-by: Behrokh Satarnejad <62008897+bsatarnejad@users.noreply.github.com>
2025-04-23 10:40:43 +02:00
Oliver Günther 9357553e3f Replace common/upsale with component 2025-04-07 10:55:22 +02:00
Oliver Günther fa99c5bef6 Render with status: :unprocessable_entity 2024-10-11 08:42:58 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Henriette Darge a7676bab78 Introduce Primer::OpenProject::PageHeader in Admin/workPackages to harmonize the breadcrumb structure 2024-07-23 08:29:48 +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
ulferts 60ed64cd04 use error_messages_for method now 2023-10-24 12:06:36 +02:00
Christophe Bliard 9e865b4f7b lint: Run rubocop safe autocorrect
Command is `rubocop --safe --autocorrect app lib lib_static modules spec`
2023-03-09 10:25:57 +01: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 b3060594c1 fix rspec failure 2022-07-04 07:36:14 +02:00
bsatarnejad 6810bb5ecf change custom actions upsale template 2022-06-01 18:24:48 +02:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01: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
bsatarnejad 06a9ad02c2 remove augur CSP from everywhere since we can call it from everywhere of the page 2022-02-23 10:03:52 +01:00
bsatarnejad eb649e5f7c fix some errors 2022-02-20 11:23:51 +01:00
bsatarnejad 4a8de44c77 set content secruity policy to post to Augur in all places we used common upsale 2022-02-18 14:47:17 +01:00
Oliver Günther 8984b989c6 Add include_gon to base template
This will avoid needing to identify in templates whether gon is already
present, and will ensure it can be used.
2022-02-09 14:59:04 +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
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
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Henriette Dinger acf86004a2 Show breadcrumb in custom actions area 2018-04-06 15:39:12 +02:00
ulferts 17a940c1bc allow transmitting empty hashes to empty out conditions and actions (#6204)
[ci skip]
2018-03-20 15:08:05 +01:00
Jens Ulferts 95a4c352d7 allow sorting custom actions 2018-02-22 12:54:17 +01:00
Oliver Günther 8b909c339b Extract upsale into a common template (#6173)
[ci skip]
2018-02-12 12:59:42 +01:00
Jens Ulferts b0fed3768d turn into enterprise feature 2018-02-07 17:12:20 +01:00
Jens Ulferts a1812699f0 validate actions 2018-02-06 16:47:45 +01:00
Jens Ulferts 886273ee86 initial implementation of conditions - status 2018-02-06 16:42:46 +01:00
Jens Ulferts e248322d43 implement destroying custom actions 2018-02-06 16:42:46 +01:00
Jens Ulferts 8d14f4b420 implement editing custom actions 2018-02-06 16:42:45 +01:00
Jens Ulferts 73d55f9e43 wip 2018-02-06 16:42:45 +01:00
Jens Ulferts 92ce554e53 configurable actions on custom actions 2018-02-06 16:42:45 +01:00
Jens Ulferts 7b197b49a7 add stub custom_action model 2018-02-06 16:42:45 +01:00
Jens Ulferts 126d2baf00 add custom_actions controller & routes
The models are only stubbed
2018-02-06 16:42:45 +01:00