stable

Clone or download

Read-only

Redirect user to already forked repository

Part of story #10409: have a burning parrot git repository view If current user has already one ore more forks of current repository, then click on the [fork] button should open a modal instead of letting the user create a new fork. User can still create a new fork of the same repository with the regular «fork repositories» page. Change-Id: Ib41abffe0cce68c0bfc1c2e2737820b9335f889d

Modified Files

Name
M plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayerBuilder.php +1 −0 Go to diff View file
A plugins/git/include/Git/Repository/View/ForkedRepositoryPresenter.php +43 −0 Go to diff View file
M plugins/git/include/Git/Repository/View/RepositoryHeaderPresenter.php +22 −13 Go to diff View file
M plugins/git/include/Git/Repository/View/RepositoryHeaderPresenterBuilder.php +24 −0 Go to diff View file
M plugins/git/include/GitDao.class.php +12 −0 Go to diff View file
M plugins/git/include/gitPlugin.class.php +0 −17 Go to diff View file
M plugins/git/site-content/fr_FR/LC_MESSAGES/tuleap-git.po +8 −2 Go to diff View file
M plugins/git/site-content/tuleap-git.pot +6 −0 Go to diff View file
A plugins/git/templates/repository/fork-button.mustache +63 −0 Go to diff View file
M plugins/git/templates/repository/header.mustache +1 −12 Go to diff View file
A plugins/git/www/scripts/repository/already-forked-modal.js +34 −0 Go to diff View file
M plugins/git/www/scripts/repository/index.js +2 −0 Go to diff View file