Merge lp:~elachuni/ubuntu-webcatalog/breadcrumbs into lp:ubuntu-webcatalog
Status: | Merged |
---|---|
Approved by: | Anthony Lenton |
Approved revision: | 25 |
Merged at revision: | 24 |
Proposed branch: | lp:~elachuni/ubuntu-webcatalog/breadcrumbs |
Merge into: | lp:ubuntu-webcatalog |
Diff against target: |
375 lines (+183/-27) 11 files modified
src/webcatalog/models.py (+20/-0) src/webcatalog/static/css/webcatalog.css (+55/-0) src/webcatalog/templates/webcatalog/application_detail.html (+5/-2) src/webcatalog/templates/webcatalog/application_overview_snippet.html (+11/-0) src/webcatalog/templates/webcatalog/breadcrumbs_snippet.html (+6/-0) src/webcatalog/templates/webcatalog/department_overview.html (+3/-11) src/webcatalog/templates/webcatalog/index.html (+1/-0) src/webcatalog/templates/webcatalog/search_results.html (+2/-11) src/webcatalog/tests/test_models.py (+57/-0) src/webcatalog/urls.py (+2/-3) src/webcatalog/views.py (+21/-0) |
To merge this branch: | bzr merge lp:~elachuni/ubuntu-webcatalog/breadcrumbs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matthew Nuzum (community) | Approve | ||
Review via email: mp+65682@code.launchpad.net |
Commit message
Add a small breadcrumbs display at the top of the page, similar to software-center's
Description of the change
Overview
========
Add a small breadcrumbs display at the top of the page, similar to software-center's
Details
=======
The breadcrumbs shown at the top of the pages are currently different to the ones displayed within USC. They don't display the path you've walked through the application, but a canonical path for each page. For example, if after searching for "Foo" I click on "bygfoot", the breadcrumbs won't display "Get Software > Search results > bygfoot". They'll instead display "Get software > Games > bygfoot", as bygfoot is in the Games department.
We *could* switch to the former behaviour by sticking the breadcrumbs in the session, and keeping track of the pages the user has visited. That would be tricky (what happens if the user starts visiting arbitrary urls? the breadcrumb machine needs to realize what's a "valid path" within the site...) That's not what this branch does :)
Looks good. You did implement this the right way in my opinion. There is a back button to get people back to the search results, however this lets them go up a level to see related products.