Merge lp:~sinzui/launchpad/registering-header into lp:launchpad

Proposed by Curtis Hovey
Status: Merged
Merged at revision: not available
Proposed branch: lp:~sinzui/launchpad/registering-header
Merge into: lp:launchpad
Diff against target: None lines
To merge this branch: bzr merge lp:~sinzui/launchpad/registering-header
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+12212@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

This is my branch to move the registering slot to above the line in
the header.

    lp:~sinzui/launchpad/registering-header
    Diff size: 101
    Launchpad bug: https://bugs.launchpad.net/bugs/434399
    Test command: ./bin/test -vvt "base-layout"
    Pre-implementation: beuno
    Target release: 3.1.0

= Move the registering slot to above the line in the header =

The design show that the registering slot goes above the horizontal line
aligned right in roman text.

Celso did not place it there because the name of deep objects like
DSPs do not appear above the line, causing the registration information
to appear with the the pillar name, not the context name.

It was decided that while this point is true, the position under the
line cause more problems than it solves.

== Rules ==

    * Move the registering slot over the line
    * Remove the italics from the CSS

== QA ==

See http://launchpadlibrarian.net/32250265/registering.png

== Lint ==

Linting changed files:
  lib/canonical/launchpad/icing/style-3-0.css
  lib/lp/app/browser/tests/base-layout.txt
  lib/lp/app/templates/base-layout.pt

== Test ==

    * lib/lp/app/browser/tests/base-layout.txt
      * Updated the test to verify the location of the registering slot.

== Implementation ==

    * lib/canonical/launchpad/icing/style-3-0.css
      * Removed the italics rule.
    * lib/lp/app/templates/base-layout.pt
      * Moved the slot.

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Great improvement—on the .dev page that's mentioned in the bug, for me, it also fixes an ugly line break in the h1. And good to be rid of the IE workaround, too.

Not much code change to look at. Wholeheartedly r=jtv.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/icing/style-3-0.css'
2--- lib/canonical/launchpad/icing/style-3-0.css 2009-09-18 14:53:15 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css 2009-09-22 10:11:21 +0000
4@@ -542,7 +542,6 @@
5 padding-top: 10px;
6 font-size: 85%;
7 color: #666;
8- font-style: italic;
9 }
10
11 /* Side content exceptions */
12
13=== modified file 'lib/lp/app/browser/tests/base-layout.txt'
14--- lib/lp/app/browser/tests/base-layout.txt 2009-09-17 23:46:39 +0000
15+++ lib/lp/app/browser/tests/base-layout.txt 2009-09-22 10:11:21 +0000
16@@ -84,6 +84,8 @@
17 <img alt="" width="64" height="64" src="/@@/person-logo" />
18 <h2>Waffles</h2>
19 <BLANKLINE>
20+ <div class="registering">
21+ </div>
22 <!-- Application Menu -->
23 <ul>
24 <BLANKLINE>
25@@ -93,8 +95,6 @@
26 ...
27 <div class="yui-b" dir="ltr">
28 <div>
29- <div class="registering">
30- </div>
31 <h2>Heading</h2>
32 <ol class="breadcrumbs" xmlns="http://www.w3.org/1999/xhtml">
33 ...
34@@ -191,8 +191,6 @@
35 <BLANKLINE>
36 <div class="yui-b" dir="ltr">
37 <div>
38- <div class="registering">
39- </div>
40 <BLANKLINE>
41 <ol class="breadcrumbs" xmlns="http://www.w3.org/1999/xhtml">
42 <BLANKLINE>
43@@ -290,6 +288,8 @@
44 <div class="watermark-apps-portlet top-portlet">
45 <img alt="" width="64" height="64" src="/@@/person-logo" />
46 <h2>Waffles</h2>
47+ <div class="registering">
48+ </div>
49 <BLANKLINE>
50 <!-- Application Menu -->
51 <ul>
52@@ -311,8 +311,6 @@
53 <BLANKLINE>
54 <div class="yui-b" dir="ltr">
55 <div>
56- <div class="registering">
57- </div>
58 <BLANKLINE>
59 <ol class="breadcrumbs" xmlns="http://www.w3.org/1999/xhtml">
60 <BLANKLINE>
61
62=== modified file 'lib/lp/app/templates/base-layout.pt'
63--- lib/lp/app/templates/base-layout.pt 2009-09-18 03:48:00 +0000
64+++ lib/lp/app/templates/base-layout.pt 2009-09-22 10:11:21 +0000
65@@ -45,15 +45,6 @@
66 </style>
67
68 <tal:comment condition="nothing">
69- Internet Explorer apparently doubles the horizontal margins of the
70- application tabs, which causes the 'Answers' tab to wrap onto a second
71- row. To work around this, we give IE some speshul CSS:
72- </tal:comment>
73- <!--[if lte IE 7]>
74- <style type="text/css">#lp-apps span {margin: 0 0.125%;}</style>
75- <![endif]-->
76-
77- <tal:comment condition="nothing">
78 This CSS collapses the contents of collapsible fieldsets,
79 without the flashing that would result from doing it in JavaScript.
80 activateCollapsibles() removes the class="collapsed" from fieldsets, to
81@@ -89,6 +80,9 @@
82 <h2 tal:replace="structure view/watermark:heading">
83 Celso Providelo
84 </h2>
85+ <div class="registering">
86+ <metal:registering define-slot="registering" />
87+ </div>
88 <metal:heading_nav
89 use-macro="context/@@+base-layout-macros/application-buttons"/>
90 </div>
91@@ -112,9 +106,6 @@
92 xml:lang view/lang|default_language|default;
93 dir view/dir|string:ltr">
94 <div tal:condition="view/macro:pagehas/applicationtabs">
95- <div class="registering">
96- <metal:registering define-slot="registering" />
97- </div>
98 <h1
99 tal:condition="view/label|nothing"
100 tal:content="view/label"
101