~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/filediff.pt

  • Committer: Matt Nordhoff
  • Date: 2009-04-16 22:28:17 UTC
  • mto: This revision was merged to the branch mainline in revision 331.
  • Revision ID: mnordhoff@mattnordhoff.com-20090416222817-jtd838gaj9n45ksw
Whoops. Test, *then* commit! Not the other way around!

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>