Use HTML description in Work Package API Resource

Alias the untextilized description as rawDescription.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
[wip] Extract text formatting helpers into Modules

Extract a number of ApplicationHelper methods (namely `textilizable`
and its dependencies) into OpenProject::TextFormatting/ObjectLinking
modules. This should enable this functionality to be more easily used
outside of the Rails controller/view context – for instance, from
Grape-based API code.

Also updates WorkPackageModel to include TextFormatting, rather than
ApplicationHelper.

Note: Only RSpecs have been updated thus far.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Prune unnecessary includes in TextFormatting spec

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix constant name in (empty) ObjectLinking spec

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge branch 'dev' into feature/api-work-package-description-formatting
Make UrlHelpers soft-dependencies of TextFormatting

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Add missing I18n include to TextFormatting

Signed-off-by: Alex Coles <alex@alexbcoles.com>
[wip] Handle macros outside Rails' view_context

This presents a more graceful notice, rather than rendering an error.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Test macro rendering in work package resource spec

* Fix additional missing soft/implicit dependencies of WorkPackageModel

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge branch 'dev' into feature/api-work-package-description-formatting
Use HTML comments in Activity API resource

Alias the untextilized comments as rawComment.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Added name property to api user representer. Using this in wp overview header.
updated spec for new user name property.
Add media queries to hide detail-pane

- added media queries to hide detail-pane and view-button for small
resolutions
Merge branch 'dev' into feature/api-work-package-description-formatting
Remove file after its about 10th merge-related resurrection
Rename TextFormatting#textilizable to #format_text

* deprecate_alias textilizable, textilize

In the future, other markup types will be supported.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Add default output for empty work package properties…


According to the specification there are properties on the embedded overview tab, which are rendered in a fixed order even if empty. For those ‘-‘ should be rendered as a default if empty.
Update date property output if only a start OR due date is given
Remove redundant work package properties from overview tab