stable

Clone or download

Read-only

Include only needed script and stylesheets

Part of story #10410 have burning parrot pull requests Follow-up of https://gerrit.tuleap.net/#/c/tuleap/+/12496/ - Match the assets name with the plugin's name "pullrequest" - Remove the duplicate "/" in assets URL - Add a separate set of CSS stylesheets just for the git repository view, named "repository". They contain rules for the Create PR modal - Inline style for the button in Repository settings. I don't think it's worth it to add back a FlamingParrot stylesheet just for this one rule. - Set assets to the pull-request RPM package (not core). - Add an event to include the Git repository-related assets. Change-Id: I9b9a76062b431ec9db39b43f23051d9cc342554d

Modified Files

Name
A plugins/git/include/Git/Repository/CollectAssets.php +62 −0 Go to diff View file
M plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayer.php +16 −1 Go to diff View file
M plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayerBuilder.php +2 −1 Go to diff View file
M plugins/pullrequest/build-manifest.json +15 −3 Go to diff View file
M plugins/pullrequest/include/PullrequestDisplayer.php +13 −2 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.class.php +19 −18 Go to diff View file
M plugins/pullrequest/templates/repository-settings.mustache +1 −1 Go to diff View file
M plugins/pullrequest/www/scripts/package.json +1 −1 Go to diff View file
M plugins/pullrequest/www/scripts/webpack.config.js +1 −4 Go to diff View file
R plugins/pullrequest/www/themes/BurningParrot/css/pull-requests.scss Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/_repository.scss +34 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-blue-condensed.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-blue.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-green-condensed.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-green.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-grey-condensed.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-grey.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-orange-condensed.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-orange.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-purple-condensed.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-purple.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-red-condensed.scss +22 −0 Go to diff View file
A plugins/pullrequest/www/themes/BurningParrot/css/repository-red.scss +22 −0 Go to diff View file
M src/common/autoload.php +3 −2 Go to diff View file
M src/common/layout/CssAsset.php +2 −3 Go to diff View file
A src/common/layout/ScriptAsset.php +40 −0 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +1 −1 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +1 −1 Go to diff View file