Merge lp://staging/~mbp/launchpad/meta-description into lp://staging/launchpad
Status: | Merged |
---|---|
Approved by: | Martin Pool |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14362 |
Proposed branch: | lp://staging/~mbp/launchpad/meta-description |
Merge into: | lp://staging/launchpad |
Diff against target: |
336 lines (+139/-17) 11 files modified
lib/canonical/launchpad/webapp/publisher.py (+18/-0) lib/lp/app/browser/stringformatter.py (+12/-0) lib/lp/app/templates/base-layout.pt (+4/-0) lib/lp/bugs/browser/bug.py (+4/-0) lib/lp/bugs/browser/bugtask.py (+4/-0) lib/lp/bugs/browser/tests/test_bug_views.py (+38/-13) lib/lp/code/browser/tests/test_branchmergeproposal.py (+17/-0) lib/lp/registry/browser/person.py (+10/-0) lib/lp/registry/browser/tests/test_person_view.py (+21/-0) lib/lp/services/utils.py (+7/-3) lib/lp/testing/factory.py (+4/-1) |
To merge this branch: | bzr merge lp://staging/~mbp/launchpad/meta-description |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+82769@code.staging.launchpad.net |
Commit message
[r=rvb][no-qa] add meta description for bugs and bmps
Description of the change
Google sometimes generates lame page summaries for Launchpad pages, containing garbage that occurs near the start of the page.
We can give it a better clue by putting in meta description tags.
For an actual search it will often but not always generate its own summary looking at the page text, but the meta description is sometimes used there. The meta description seems to be very often used when sharing a link on g+ and facebook and at the moment it looks awful.
See:
http://
g+ before: https:/
after: https:/
fb before: https:/
after: https:/
(apparently you must log in even to see fb "public" posts)
hooray!
We could do this for other pages too, but we can start with bugs and merge proposals.
If there's a more zopey way to write this, let me know. I was going to try to make all view objects provide a page_description property, but I was defeated.