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>
Merge branch 'dev' into feature/api-work-package-description-formatting
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>
Localise macro errors visible to end-user

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Update ng templates for HTML comments, description

n.b. this disables the expandable/collapsable description pane (inc.
truncation).

Bug # 13560

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge pull request #1550 from opf/feature/api-work-package-description-formatting

API work package description/activity comments formatting