~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/filediff.pt

  • Committer: Robert Collins
  • Date: 2012-02-02 05:07:53 UTC
  • mfrom: (464.1.1 mod-wsgi)
  • Revision ID: robertc@robertcollins.net-20120202050753-2d8f8r6m24lglbz5
    - Add a script and documentation for running under mod_wsgi.
      (Stuart Colville, Toshio Kuratomi)

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>