Merge lp://staging/~michael.nelson/ubuntu-webcatalog/962140-display-video-demos-pt-2 into lp://staging/ubuntu-webcatalog
Proposed by
Michael Nelson
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Łukasz Czyżykowski | ||||
Approved revision: | 126 | ||||
Merged at revision: | 117 | ||||
Proposed branch: | lp://staging/~michael.nelson/ubuntu-webcatalog/962140-display-video-demos-pt-2 | ||||
Merge into: | lp://staging/ubuntu-webcatalog | ||||
Diff against target: |
180 lines (+116/-4) 5 files modified
src/webcatalog/models/applications.py (+15/-4) src/webcatalog/static/css/webcatalog.css (+9/-0) src/webcatalog/templates/webcatalog/application_detail.html (+8/-0) src/webcatalog/tests/test_models.py (+73/-0) src/webcatalog/tests/test_views.py (+11/-0) |
||||
To merge this branch: | bzr merge lp://staging/~michael.nelson/ubuntu-webcatalog/962140-display-video-demos-pt-2 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Canonical Consumer Applications Hackers | Pending | ||
Review via email: mp+104714@code.staging.launchpad.net |
Commit message
Add videos to the application detail page.
Description of the change
Overview
========
Adds videos to the application detail page, to look like this:
http://
Note:
* The video we have on staging is no longer allowed to be embedded (that's an option set by the author)
* I've also tweaked the style for the sharing options so that the facebook options are aligned.
`fab test`
To post a comment you must log in.
Why using setattr, gettattr, hasattr for media caching instead of just plain dict (self._media_cache = {}). Or other than doing per request cache, maybe it would be better to push that to django cache layer?