Merge lp:~michael.nelson/ubuntu-webcatalog/788207-paginator into lp:ubuntu-webcatalog
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Łukasz Czyżykowski | ||||
Approved revision: | 70 | ||||
Merged at revision: | 53 | ||||
Proposed branch: | lp:~michael.nelson/ubuntu-webcatalog/788207-paginator | ||||
Merge into: | lp:ubuntu-webcatalog | ||||
Diff against target: |
232 lines (+101/-26) 7 files modified
src/webcatalog/static/css/webcatalog.css (+3/-0) src/webcatalog/templates/webcatalog/application_detail.html (+25/-0) src/webcatalog/templates/webcatalog/application_review_list.html (+1/-16) src/webcatalog/templates/webcatalog/application_review_list_snippet.html (+18/-0) src/webcatalog/tests/test_views.py (+33/-1) src/webcatalog/utilities.py (+10/-1) src/webcatalog/views.py (+11/-8) |
||||
To merge this branch: | bzr merge lp:~michael.nelson/ubuntu-webcatalog/788207-paginator | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Canonical ISD hackers | Pending | ||
Review via email: mp+75556@code.launchpad.net |
Commit message
Load reviews snippet via ajax and add to details page.
Description of the change
Overview
========
Contrary to the name, this doesn't add pagination for the reviews - that can wait :), instead it adds the ajax reviews to the app details page.
Some points:
* I removed the caching on the reviews view and added it to the rnr api call - so that we can provide different responses with the one view for normal and json requests.
* I'm pulling in the YUI components from the local server (STATIC_URL) rather than from yui (I'll land the YUI code in the following branch)[1]
* Using just io-base and node-base seems to result in 14 requests - I'm assuming we should update to use a combo loader (actually, I'll check to see if there's standard combos already provided)
Test: `fab bootstrap && fab test`
[1] https:/