~jamalta/launchpad/bug-127489

« back to all changes in this revision

Viewing changes to lib/lp/app/browser/tests/base-layout.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-08-01 00:18:15 UTC
  • mfrom: (9010.1.8 base-layout-bug-407052)
  • Revision ID: launchpad@pqm.canonical.com-20090801001815-qwlj0z3rodsklj2u
[r=abel][ui=none][bug 407052,
        407055] base-layout requries the callsite to pass the <h1> for the
        heading slot so that the title edit widget works. Created
        +related-pages to reuse NavigationMenus as an inline list.
        Currently listening to British Sea Power -- Boy Vertiginous.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
             <div id="lp-apps" ...
104
104
          <div id="maincontent" class="yui-main">
105
105
            <div class="yui-b" dir="ltr">
106
 
              <h1>Heading</h1>
 
106
              <h2>Waffles</h2>
107
107
              <!-- future breadcrumb rule -->
108
108
              <div class="top-portlet">
 
109
                <h1>Heading</h1>
109
110
                <p class="registered">
110
111
                  Registered on 2005-09-16
111
112
                  by <a class="sprite team" href="#">Illuminati team</a>
152
153
          </div><!--id="locationbar"-->
153
154
          <div id="maincontent" class="yui-main">
154
155
            <div class="yui-b" dir="ltr">
155
 
              <h1>Heading</h1>
 
156
              <h2>Waffles</h2>
156
157
              <!-- future breadcrumb rule -->
157
158
              <div class="top-portlet">
 
159
                <h1>Heading</h1>
158
160
                <p class="registered">
159
161
                  Registered on 2005-09-16
160
162
                  by <a class="sprite team" href="#">Illuminati team</a>
237
239
    >>> print content.h1
238
240
    <h1>Heading</h1>
239
241
 
240
 
The page heading slot's default behaviour is to use the context.title.
 
242
The page heading slot's default behaviour is to use the context.title and
 
243
place it in a <h2>.
241
244
 
242
245
    >>> class DefaultHeadingView(LaunchpadView):
243
246
    ...     """A simple view to test base-layout."""
251
254
 
252
255
    >>> view = DefaultHeadingView(user, request)
253
256
    >>> content = find_tag_by_id(view.render(), 'maincontent')
254
 
    >>> print content.h1
255
 
    <h1>Waffles</h1>
 
257
    >>> print content.h2
 
258
    <h2>Waffles</h2>
256
259
 
257
260
 
258
261
Public and private presentation