43 Commits

Author SHA1 Message Date
Dombi Attila 0f06d11c4f [#72374] User can get edit budget permissions without view budget permissions
https://community.openproject.org/work_packages/72374
2026-02-23 16:41:51 +02:00
Andrej Sandorf ab2c0719ff Merge pull request #20087 from opf/feature/formatters-for-budget-columns
[#67064] PDF/XLS export of new budget columns in project list export
2025-09-01 12:20:02 +02:00
Klaus Zanders 19674526f0 Add permission check and tests for budget columns 2025-08-29 10:10:23 +02:00
as-op b1eb507830 create budget columns export formmatters for PDF,XLS,CSV export of project list 2025-08-28 17:21:17 +02:00
Klaus Zanders de5c417277 Remove budget relations and state 2025-08-25 14:05:13 +02:00
Klaus Zanders a03bc8836e Budget Relations UI (#19576)
* UI starts here

* add inherited by children to project show

* Add UI to edit relation between budgets

* Make views nice and add german translations

* fix styling
2025-08-25 11:28:32 +02:00
Klaus Zanders 75ebb91cab Budget Relations & Fixed Budgets (#19543)
* Add BudgetRelation, fixed budget

* Add fixed_budget editing to budget form

* Show and allow setting the budget state

* Rename fixed_budget to supplementary_amount to make it a factor of the budget

* Add an `available` method so we don't have to calculate this all the time

* Add a section to the show budget page to display amounts

* Highlight totals

* Add tests and allocation + spent for children

* Show budget allocated to children in budget show

* Add an allocated to children column

* show children in the page

* Implement bottom->up addition approach

* remove unused DB column and make sure each budget only has one parent

* Add budget relation controller

* Remove names for budgets in specs

* Refactor tests to use `have_attributes`

* re-add appropriate names for spec factories
2025-08-25 11:28:31 +02:00
Christophe Bliard 96fed646ed [65783] Add budgets info to projects list columns
Added projects columns are:
  - Budget planned
  - Budget spent
  - Budget spent ratio
  - Budget available (remaining budget)
2025-08-25 11:28:30 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Henriette Darge 4f2b8d39c2 Replace old icons with Octicons inside the main menu 2024-06-11 12:46:23 +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
Klaus Zanders e9d1deadff Fix all other usages of authorize methods in API 2023-10-30 11:50:55 +01:00
ulferts a7130f212e Merge remote-tracking branch 'origin/release/13.0' into dev 2023-09-04 14:36:32 +02:00
Christophe Bliard 3871a47546 Internationalize plugins name and description 2023-09-04 12:06:15 +02:00
Aaron Contreras 3eaf1a9e36 Set permissible_on definitions on budgets module 2023-08-31 08:34:17 -05:00
Eric Schubert 4d05975675 [#47362] Replace spot-icon with boxed icons
- https://community.openproject.org/work_packages/47362
- added new icon font for spot icons
- replaced container containing spot-icon with `inline-flex`
2023-04-25 09:43:03 +02:00
Mir Bhatia 273691ca09 Exclude budgets in a cleaner way 2023-03-27 13:23:07 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
ulferts 0eb22698b4 default value for latest project activity timestamp column 2022-12-13 07:29:46 +01:00
Christophe Bliard 444a561437 Refactor: rename for more clarity and less confusion
ProjectActivity class has nothing to do with managing project journals. It is used to compute the value of the latest activity among changesets, work package, wiki content, news, meetings, time logs, forum messages, and budgets.
2022-12-07 18:03:48 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
ulferts 6ad2713141 avoid autoloading ApplicationHelper during initialization 2022-04-04 16:04:46 +02:00
ulferts aedfa6ba2c avoid reference to Project in initializer 2022-04-04 16:04:46 +02:00
ulferts ee652cb6b4 Merge pull request #10254 from opf/fix/alternate-filter-registration
Refactor: register query filters without repeating query arg
2022-03-18 09:00:50 +01: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
Christophe Bliard 6b962c3605 stop autoloading Project during initialization 2022-03-08 09:43:25 +01:00
Christophe Bliard a403a89867 refactor: use Queries::Register.register helper to avoid repetition 2022-03-07 09:16:51 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther 5e61db5f84 Fix zeitwerk check 2022-02-03 20:52:33 +01:00
ulferts 5882a82119 alter default for project id param in menu 2021-11-01 15:56:43 +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
Henriette Darge 5008824622 Reassign budgets of WPs before the budget is deleted. 2021-07-21 13:53:26 +02:00
Henriette Darge 2ee3a06c63 * Remove dead links (#9453)
* Use .org website address consistently
* Remove community address as homepage as it does not really offer any value
2021-07-14 15:51:09 +02:00
ulferts 5cb227796c Fix/hook service to openproject (#9214)
* move specs from legacy

* move Hook into OpenProject namespace

* replace class variables
2021-05-03 20:58:15 +02:00
Oliver Günther 0a84a0b671 [36296] Add PlaceholderUsers API (#9033)
* Add PlaceholderUsers API

* Fix remarks in apib

* Add deduce_element_decorator to collection

* Remove unnecessary path
2021-02-23 11:18:05 +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
Benjamin Bädorf e848d44dea Fix/update wysiwyg styles (#8844)
This is a refactoring of the CSS classes in the WYSIWYG editor. The classes now use proper BEM and are almost completely independent of other CSS. It also includes small style refactorings, like a reduction of heading size in attribute fields, and an increase in heading size in all other instances.

* Initial class definitions

* Added more classes

* Added Table of Contents basics

* CkEditor applying custom CSS classes to p, h1, h2, h3, h4, h5, h6, li and blockquote

* CKEditorInspector removed

* op css class for headings

* op css class for paragraphs

* op css class for code/code block

* adapt specs to altered markdown/html generation

* adapt grid/budget representers to altered signature

* op css class for lists

* op css class for toc

* op css class for links

* Start working on typography css

* op css class for tables

* Fixing more typography, trying out larger headers

* Applying custom classes to li, a, blockquote, figure, table, tr, td, th, image, codeblock, figcaption and macros

* adapt specs to altered link classes

* op css class for images

* apply user content container class throughout application

* CSS alignment custom classes applied to table

* op css class for task list checkbox

* Added task checkbox class

* amend list checkbox class in backend

* op css class for table thead element

* adapt specs on image html generation

* Updated table and typography styles

* Update typography and figure styles

* Figure overflow handling

* Table alignment styles + ckEditor styles removed

* rename wiki-anchor to op-uc-link_permalink

* wrap table in div as well as figure

* Updated code-block

* Update permalinks

* Fixed a lot about tables

* Removed Description header from work-packages page

* Fix frontend styles

* Add placeholder styling, fix toc

* Fixed figure print

* working with table aligns

* Custom class add to task lists

* Custom classes applied to theads

* op-uc-container custom class added to container

* Codeblocks inside pre elements

* Fix: single <code> and <a> tags

* explicitly require overwritten gem class

Apparently, the gem is not loaded yet when it is registered as a filter when in eager loading mode

* adapt spec expectation to altered toc rendering

* CkInspector removed

* Latest ckeditor changes

* remove highlight css class from wiki content

* allow html pipleline to handle macros with additional classes

* Fixed a lot of print css for tables

* Add general print css back in

* Update Table of Contents styling

* Custom classes on ul, ol, li and task-lists

* Revert "Custom classes on ul, ol, li and task-lists"

This reverts commit 0d27d28137.

* Custom classes on ul, ol, li and task-lists

* Custom classes on column's th

* remove placeholder class when rendering

* WOrking on task lists

* Changing task-list classes, changed tests

* Updated list styles

* Remove unused todo list styles

* remove checked in binstubs

* Fix table of contents

* adapt todo list handing in backend pipeline

* adapt specs to altered css classes

* Add numbers to table of contents

* Better comments in table of contents

* Fix: wrap single <table> with a <figure>

* Fixes to todo list design

* Updated todo list scss to fix nested lists

* adapt selectors in table spec

* Update table styles

* Improve table borders more

* Custom classes specs

* Fix: no need to remove regular list classes when its type changes

* Add modifier for inline headings

* Update table editing styles

* Remove break-word tests

* wrap images just like tables

* Update figure content styles

* Fix: All tests passing (ul.op-uc-list_task-list)

* div.op-uc-figure--content wrapping tables

* Specs for figures wrappers div.op-uc-figure--content

* Fix: add custom classes to links and codes again

* Table wrapper div reverted + specs

* Fix inline palceholders

* Custom macro type classes

* Add basic macro placeholder changes

* Move heading permalink after text

* Fix word-break spec

* Sending figure styles to the backend (width)

* extend test to take ckeditor placeholder into account

* avoid adding bem classes multiple times

* attempt to fix flickering spec

* Removing image spinner when uploading finishes

* adapt spec expectations

Co-authored-by: Aleix Suau <info@macrofonoestudio.es>
Co-authored-by: ulferts <jens.ulferts@googlemail.com>
2020-12-04 12:25:26 +00:00
ulferts 05de0a6b3c employ view_budgets permission check for budgets resource 2020-09-16 08:45:21 +02:00
Markus Kahl caa4bd14c2 added missing prepare endpoints for budgets and documents (direct uploads) 2020-09-11 10:11:44 +01:00
ulferts 6826f90ee2 Feature/remove timelog (#8557)
* rename costs, introduce budgets

* move files from costs to budgets

* rename cost_object to budget

* remove unused code

* move hook - should be turned into standard code in the long run

* move type attributes change over to budgets

* move patch to work_package proper

* move budget menu item up

* combine reporting, time and cost module

* remove rails based time_entries & reports code

* rename cost object filter

* adapt menu spec expectations

* use cost project module name in administration

* include timeline labels in migration

* properly place budget linking method

* fix permitted params

* remove outdated routing spec

* adapt budget request specs

* ensure order of descendent updates

* remove outdated specs

* fix checking for reporting to be enabled

* fix displaying spent units

* fix time entries activity event url

* reenable current rate tab

* fix path on budget page

* allow bulk editing of budgets only in one project scenario

* fix sanitizing reference in controller

* include module required for format_date

* fix reference to correct units from work package spent units

* linting

* remove outdated spec

* remove outdated views and permission references

* remove acts_as_event from time_entries

There is no atom link for time entries

* remove acts_as_event from projects

There are no atom links for projects

* introduce budget filter for cost reports

* remove actions added to removed controller

* move time entries to the costs module

* factor in view_own permission when calculating time entry visibility

* linting

* move mounting of time entries

* include budgets into api v3 documentation
2020-08-18 08:24:34 +02:00