stable

Clone or download

Read-only

Add the Diff toggle button and store user preference

part of story #11667 display diff side by side This commit adds a button bar next to the "Modified files" title in the files view. For the moment it does nothing but setting the user preference for diff display mode. How to test: - Log in with a user who never switched the diff display mode --> By default the selected mode is 'unified diff' - Click on 'side by side diff' --> the button is marked as active - Press F5 --> 'side by side' button remains active - click on 'unified diff' --> the button is marked as active - Press F5 --> 'unified diff' button remains active Change-Id: Ie03fb88e30f626cc32f538d3a161f4789fcd80f3

Modified Files

Name
M plugins/pullrequest/www/scripts/po/fr.po +12 −2 Go to diff View file
M plugins/pullrequest/www/scripts/po/template.pot +8 −0 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/files/files-controller.js +54 −2 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/files/files.tpl.html +38 −5 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/user-rest-service.js +24 −1 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/user-rest-service.spec.js +62 −7 Go to diff View file
M plugins/pullrequest/www/themes/BurningParrot/css/includes/_files.scss +8 −0 Go to diff View file