Merge lp:~wgrant/launchpad/html-wtf into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | William Grant on 2012-03-07 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14916 |
| Proposed branch: | lp:~wgrant/launchpad/html-wtf |
| Merge into: | lp:launchpad |
| Diff against target: |
419 lines (+94/-80) 13 files modified
lib/lp/app/templates/base-layout-macros.pt (+16/-17) lib/lp/app/templates/base-layout.pt (+15/-28) lib/lp/app/templates/root-index.pt (+1/-1) lib/lp/bugs/stories/guided-filebug/xx-bug-reporting-tools.txt (+10/-6) lib/lp/bugs/stories/guided-filebug/xx-ubuntu-filebug.txt (+8/-0) lib/lp/services/webapp/adapter.py (+3/-3) lib/lp/services/webapp/errorlog.py (+8/-10) lib/lp/services/webapp/tests/test_user_requested_oops.py (+19/-12) lib/lp/soyuz/stories/soyuz/xx-builder-page.txt (+4/-1) lib/lp/soyuz/stories/soyuz/xx-buildfarm-index.txt (+2/-0) lib/lp/soyuz/stories/soyuz/xx-builds-pages.txt (+2/-1) lib/lp/soyuz/stories/soyuz/xx-private-builds.txt (+5/-1) lib/lp/translations/stories/buildfarm/xx-build-summary.txt (+1/-0) |
| To merge this branch: | bzr merge lp:~wgrant/launchpad/html-wtf |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Kowalik (community) | code | 2012-03-06 | Approve on 2012-03-07 |
|
Review via email:
|
|||
Commit Message
[r=stevenk][no-qa] Fix various bits of invalid HTML in the base template.
Description of the Change
This branch fixes some invalid HTML in the base template, with a convenient improvement as fallout.
- Fixed the size attribute of the front page search box from "25%" to "25", since it's not a percentage. Browsers just ignored the %.
- Removed the empty <noscript> from base-layout.pt. This was invalid markup which caused mechanise to fail to detect <meta http-equiv=
- Fixed the HTML for the debug timeline, and moved the conditional up a level to stop the anchor from being rendered even when the timeline was not meant to be shown.
- Made the debug timeline valid by moving it into the body. This brought it up to before the summarize_requests comment, causing the UserRequestOops ID to never show up in the comment. I adjusted the UserRequestOops code to function correctly when called multiple times, which has the handy side-effect of showing the OOPS ID in the visible_

Aside from the disgusting use of structure() in tal:replace thanks to IE (but it isn't your fault), this looks great.