browse: Improve revision view with list of changed files and diffs
This commit adds the list of changed files in the revision view but also the diffs (unified and side-by-side) of each changed file. Those new features are reachable from the "Changes" tab in the revision view. Computation of file diffs will be requested once the user switch to that tab. Regarding the diffs, they are only computed for textual contents and diffs larger than 20 kB will not be computed by default (the user can still manually request it if needed). Related: D295
Showing
- swh/web/browse/utils.py 1 addition, 4 deletionsswh/web/browse/utils.py
- swh/web/browse/views/content.py 97 additions, 0 deletionsswh/web/browse/views/content.py
- swh/web/browse/views/revision.py 99 additions, 1 deletionswh/web/browse/views/revision.py
- swh/web/common/service.py 16 additions, 0 deletionsswh/web/common/service.py
- swh/web/static/css/style.css 43 additions, 2 deletionsswh/web/static/css/style.css
- swh/web/templates/includes/content-scripts.html 7 additions, 5 deletionsswh/web/templates/includes/content-scripts.html
- swh/web/templates/includes/readme-display.html 2 additions, 2 deletionsswh/web/templates/includes/readme-display.html
- swh/web/templates/revision.html 351 additions, 15 deletionsswh/web/templates/revision.html
Loading
Please register or sign in to comment