-
- Downloads
browse: Improve browsing an origin with multiple visit types
Some origins in the archive can have multiple visit types since recently and could lead to confusing display in browse interface as the latest visit is selected by default. So add a select element at the top right part of the UI enabling to switch the visit type for the browsed origin and update links by adding the visit_type query parameter to keep visit type context when navigating. Related to #4786.
Showing
- swh/web/browse/assets/browse/browse-utils.js 7 additions, 0 deletionsswh/web/browse/assets/browse/browse-utils.js
- swh/web/browse/snapshot_context.py 15 additions, 2 deletionsswh/web/browse/snapshot_context.py
- swh/web/browse/templates/includes/snapshot-context.html 19 additions, 0 deletionsswh/web/browse/templates/includes/snapshot-context.html
- swh/web/browse/tests/views/test_origin.py 47 additions, 1 deletionswh/web/browse/tests/views/test_origin.py
- swh/web/browse/views/content.py 2 additions, 0 deletionsswh/web/browse/views/content.py
- swh/web/browse/views/directory.py 1 addition, 0 deletionsswh/web/browse/views/directory.py
- swh/web/browse/views/origin.py 7 additions, 2 deletionsswh/web/browse/views/origin.py
- swh/web/browse/views/release.py 4 additions, 3 deletionsswh/web/browse/views/release.py
- swh/web/browse/views/revision.py 17 additions, 10 deletionsswh/web/browse/views/revision.py
- swh/web/browse/views/snapshot.py 3 additions, 1 deletionswh/web/browse/views/snapshot.py
- swh/web/conftest.py 32 additions, 1 deletionswh/web/conftest.py
- swh/web/utils/archive.py 27 additions, 11 deletionsswh/web/utils/archive.py
- swh/web/utils/origin_visits.py 32 additions, 9 deletionsswh/web/utils/origin_visits.py
- swh/web/utils/tests/test_archive.py 3 additions, 3 deletionsswh/web/utils/tests/test_archive.py
- swh/web/webapp/assets/webapp/webapp.css 4 additions, 0 deletionsswh/web/webapp/assets/webapp/webapp.css
Loading
Please register or sign in to comment