~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/filediff.pt

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 01:00:32 UTC
  • mto: This revision was merged to the branch mainline in revision 426.
  • Revision ID: john@arbash-meinel.com-20110210010032-3c1ngxr9rlnlla6o
Avoid getting a lazy object error by instantiating an
http transport before we do any other work.
Add a script which works against multiple concurrent services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<div>
 
2
  <div class="pseudotable unified"
 
3
       tal:repeat="chunk chunks">
 
4
 
 
5
    <tal:block condition="not:repeat/chunk/start">
 
6
      <div class="pseudorow context-row">
 
7
        <div class="lineNumber separate"></div>
 
8
        <div class="lineNumber second separate"></div>
 
9
        <div class="code separate"></div>
 
10
        <div class="clear"><!-- --></div>
 
11
      </div>
 
12
    </tal:block>
 
13
 
 
14
    <div tal:repeat="line chunk/diff"
 
15
         tal:attributes="class string:pseudorow ${line/type}-row">
 
16
      <div class="lineNumber first"
 
17
           tal:content="structure python:util.fill_div(line.old_lineno)"></div>
 
18
      <div class="lineNumber second"
 
19
           tal:content="structure python:util.fill_div(line.new_lineno)"></div>
 
20
      <div tal:attributes="class string:code ${line/type}"
 
21
           tal:content="structure python:util.fill_div(util.html_clean(line.line))"></div>
 
22
      <div class="clear"><!-- --></div>
 
23
    </div>
 
24
  </div>
 
25
</div>