stable

Clone or download

Read-only

Use mustache to display cross references

This is part of story #17180 take into account gitlab commits This patch aims to use mustache for cross reference instead of HTML writing in PHP file. This will simplify next developments. Cross references are displayed in 3 spaces: - In Tracker => artifact -> cross reference field - In Document => When you referenced an artifact in the description of a document => Then you can go to "References" in property of this doc - In SVN => When you referenced an artifact in commit SVN => The go to revision of this commit How to test: - Have some cross refs (bidirectionnel, referenced by and referenced to) on: - artifact - document - svn Expected results: - No technicals changes - You can click on the cross ref - You can delete the cross ref - Tooltip are still displayed Change-Id: I96e44f111df66e4ec257eb9bc9e36e372d81f9c4

Modified Files

Name
A src/common/reference/CrossReferenceByNatureCollection.php +65 −0 Go to diff View file
A src/common/reference/CrossReferenceCollection.php +95 −0 Go to diff View file
M src/common/reference/CrossReferenceFactory.class.php +49 −176 Go to diff View file
A src/common/reference/Presenters/CrossReferenceByNaturePresenter.php +47 −0 Go to diff View file
A src/common/reference/Presenters/CrossReferenceByNaturePresenterBuilder.php +79 −0 Go to diff View file
A src/common/reference/Presenters/CrossReferenceFieldPresenter.php +69 −0 Go to diff View file
A src/common/reference/Presenters/CrossReferenceLinkListPresenter.php +61 −0 Go to diff View file
A src/common/reference/Presenters/CrossReferenceLinkListPresenterBuilder.php +58 −0 Go to diff View file
A src/common/reference/Presenters/CrossReferenceLinkPresenter.php +73 −0 Go to diff View file
A src/common/reference/Presenters/CrossReferenceLinkPresenterCollectionBuilder.php +85 −0 Go to diff View file
A src/templates/common/cross_reference.mustache +50 −0 Go to diff View file
A tests/unit/common/Reference/Presenters/CrossReferenceByNaturePresenterBuilderTest.php +241 −0 Go to diff View file
A tests/unit/common/Reference/Presenters/CrossReferenceLinkPresenterCollectionBuilderTest.php +175 −0 Go to diff View file