stable

Clone or download

Read-only

Branch/tag selector should keep context

Part of story #10416: burning parrot gloss on gitphp views Go to a folder or a file. With the selector choose another branch/tag. You should be redirected to the same folder or file, but on the selected branch/tag. If the resource does not exist on the new ref, then an error message is shown. The same for blame/history. If file has only one commit for the selected ref, then blame & history don't show empty page. Change-Id: Id2f10ddfea25eed9eb3fb6c5cc151f7700ae0643

Modified Files

Name
M plugins/git/include/Git/Repository/View/FilesHeaderPresenter.php +6 −1 Go to diff View file
M plugins/git/include/Git/Repository/View/FilesHeaderPresenterBuilder.php +23 −2 Go to diff View file
A plugins/git/include/GitPHP/NotFoundException.php +30 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blame.php +4 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blob.php +4 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_History.php +15 −5 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Tree.php +3 −0 Go to diff View file
M plugins/git/include/GitPHP/git/Blob.php +2 −0 Go to diff View file
M plugins/git/phpunit/Git/Repository/View/FilesHeaderPresenterBuilderTest.php +111 −20 Go to diff View file
M plugins/git/site-content-gitphp/fr_FR/LC_MESSAGES/gitphp.po +5 −2 Go to diff View file
M plugins/git/site-content-gitphp/gitphp.pot +3 −0 Go to diff View file
M plugins/git/templates/gitphp/tuleap/blob-header.tpl +5 −5 Go to diff View file
M plugins/git/templates/gitphp/tuleap/tree.tpl +2 −2 Go to diff View file
M plugins/git/templates/repository/gitphp/header.mustache +1 −0 Go to diff View file
M plugins/git/www/scripts/repository/branch-tag-selector/src/components/App.vue +4 −1 Go to diff View file
M plugins/git/www/scripts/repository/branch-tag-selector/src/components/BranchesSection.vue +7 −2 Go to diff View file
M plugins/git/www/scripts/repository/branch-tag-selector/src/components/TagsSection.vue +7 −2 Go to diff View file
A plugins/git/www/scripts/repository/branch-tag-selector/src/helpers/encodeData.js +26 −0 Go to diff View file
M plugins/git/www/scripts/repository/branch-tag-selector/src/index.js +3 −1 Go to diff View file