stable
Clone or download
Read-only
When we access an artifact document https://example.com/artidoc/:id, we should have the breadcrumb in the header so that we know where the document is located (like for an embedded file for example). If the document is located deep down in the folder hierarchy, then an ellipsis is displayed to not clutter the interface, and only the last folders are displayed (like in the vue app). This is the PHP counterpart of plugins/document/scripts/document/components/Breadcrumb/DocumentBreadcrumb.vue Part of story #37542: display a read only Document Change-Id: Idad1550461558fd30e9970d62a2e7a7ada866d8b
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/artidoc/include/Artidoc/ArtidocController.php | +5 | −3 | Go to diff View file |
A | plugins/artidoc/include/Artidoc/Document/ArtidocBreadcrumbsProvider.php | +129 | −0 | Go to diff View file |
M | plugins/artidoc/include/artidocPlugin.php | +4 | −1 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/package.json | +1 | −1 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/pnpm-lock.yaml | +22 | −22 | Go to diff View file |
M | plugins/artidoc/site-content/fr_FR/LC_MESSAGES/tuleap-artidoc.po | +10 | −0 | Go to diff View file |
A | plugins/artidoc/tests/unit/Artidoc/Document/ArtidocBreadcrumbsProviderTest.php | +206 | −0 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/BreadCrumb.php | +39 | −24 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/BreadCrumbCollection.php | +3 | −3 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/BreadCrumbLinkCollection.php | +1 | −1 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/BreadCrumbPresenter.php | +7 | −20 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/BreadCrumbPresenterBuilder.php | +1 | −28 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/BreadCrumbSubItems.php | +2 | −2 | Go to diff View file |
A | src/common/Layout/BreadCrumbDropdown/EllipsisBreadCrumb.php | +35 | −0 | Go to diff View file |
A | src/common/Layout/BreadCrumbDropdown/EllipsisBreadCrumbPresenter.php | +38 | −0 | Go to diff View file |
A | src/common/Layout/BreadCrumbDropdown/PresentableBreadCrumb.php | +26 | −0 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/SubItemsSection.php | +7 | −22 | Go to diff View file |
M | src/common/Layout/BreadCrumbDropdown/SubItemsUnlabelledSection.php | +1 | −1 | Go to diff View file |
M | src/templates/common/breadcrumbs/breadcrumbs.mustache | +40 | −24 | Go to diff View file |