Lay out wp attributes using CSS flexible boxes

This implementation stops long attribute values from "breaking" the
layout.

Bug # 14596

Signed-off-by: Alex Coles <alex@alexbcoles.com>
API v2 PE index: Allow disabling parent rewiring

Allow disabling rewiring - this exposes parent IDs of work packages invisible
to the user.
When requesting single work packages via IDs, the rewiring fails as it assumes
that all visible work packages are loaded, which they might not be. For a work
package with a parent visible to the user, but not included in the requested IDs,
the parent_id would thus be nil.
Disabling rewiring allows fetching work packages with their parent_ids
even when the parents are not included in the list of requested work packages.

There's also a case when rewiring is not used at all: When not providing a project
id and requesting via /api/v2/planning_elements.json?ids=[...]. In this case
parent_ids were and are always shown. This is pretty inconsistent, but that's
the way API v2 is. Btw, planning_elements.json returns 404 when not giving an ids
parameter.

Apparently, the way custom fields are returned is also different between
the general planning elements endpoint and the project-specific one. I didn't
look into this, though.
Do not allow wp attribute values to wrap

Bug # 14596

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Use explicit classes for attribute labels, values

* Do not use <label> outside of an HTML form context.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Add small right padding to wp attributes

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Add more padding to icon in more-menu

- Add more padding to icon in more-menu
Revert "Mark index pagination Cuke wip (fails on Travis)"

Failures most likely due to Xvfb settings (see 1267a944)

This reverts commit 5f4a2281bf78c3f372cb21e32bdf70d612f95f1d.
Merge pull request #1886 from opf/hotfix/api_v2_parent_rewiring

API v2 PE index: Allow disabling parent rewiring
Merge branch 'release/3.0' into dev
Merge pull request #1907 from opf/feature/details-pane-more-functions-button

Add more padding to icon in more-menu
API v2: Change boolean value to use true/false

While this is not the OpenProject API, we use true/false for other APIs and for other parameters in the application, like `layout=false`. true/false also seems more intuitive.
API v2: Document some useless code
Rework classes to avoid truncating user attributes

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Use explicit classes for empty attributes too

See 6f05439a.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge pull request #1896 from opf/fix/14596-details-pane-long-attributes

Fixes for wp attributes layout with long values
Merge pull request #1905 from opf/fix/reenable-index-pagination-cuke

Revert "Mark index pagination Cuke wip (fails on Travis)"
Merge pull request #1911 from opf/hotfix/api_v2_rewire_parents_value

API v2: Use true/false as rewire parents value
Merge branch 'release/3.0' into dev
Merge with finn rails3

--HG--
branch : gh-bb-chili-mix-hg-git
Merge with finn rails3

--HG--
branch : gh-bb-chili-mix-hg-git