~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/templates/base-layout-macros.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-14 07:47:38 UTC
  • mfrom: (14452.5.2 show-timeline)
  • Revision ID: launchpad@pqm.canonical.com-20111214074738-3sjnc60uba24ymbt
[r=mbp][bug=886996] Show timeline in footer of page when
        visible_render_time is true

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
  </div>
287
287
</metal:site-message>
288
288
 
 
289
 
 
290
<metal:debug-timeline define-macro="debug-timeline">
 
291
  <a name="debug_timeline" 
 
292
    id="debug_timeline"
 
293
    class="hidden"
 
294
    >
 
295
    <table 
 
296
      tal:condition="request/features/visible_render_time"
 
297
      tal:define="timeline_actions modules/canonical.launchpad.webapp.adapter/get_timeline_actions"
 
298
      class="debug-timeline listing"
 
299
      >
 
300
      <thead>
 
301
        <th>Duration</th>
 
302
        <th>Action</th>
 
303
      </thead>
 
304
      <tr tal:repeat="action timeline_actions">
 
305
        <td class="amount" tal:content="action/duration/fmt:millisecondduration"/>        
 
306
        <td style="font-family: monospace; text-align: left;">
 
307
          <pre class="wrap"><span class="action-category" tal:content="action/category"/>: <span class="action-details" tal:content="action/detail"/></pre>
 
308
        </td>
 
309
      </tr>
 
310
    </table>
 
311
  </a>
 
312
</metal:debug-timeline>
 
313
 
 
314
 
289
315
<metal:plural-msg define-macro="plural-message">
290
316
  <tal:comment condition="nothing">
291
317
    Expected variables to be defined in a containing tag or global:
302
328
    condition="python: count != 1"
303
329
    replace="l_plural" /></metal:plural-msg>
304
330
</macros>
 
331