rhymix/modules/issuetracker/skins/xe_issuetracker/source_compare.html

49 lines
1.2 KiB
HTML

<!--#include("source_header.html")-->
<h3>Diff between revs {$brev} to revs {$erev}</h3>
<ol>
<li>[<a href="{getUrl('type','log','path',urlencode($path),'erev',$erev,'brev',$brev)}">view log</a>]</li>
</ol>
<!--@if($comp)-->
<!--@foreach($comp as $item)-->
<table>
<col width="40" />
<col width="40" />
<col width="*" />
<thead>
<tr>
<th colspan="3" class="filename">{$item->filename}</th>
</tr>
</thead>
<tbody class="diff">
<tr class="revision">
<td class="before">{$item->before_revision}</td>
<td class="after">{$item->after_revision}</td>
<td></td>
</tr>
{@ $bStart = true }
<!--@foreach($item->blocks as $block)-->
<!--@if(!$bStart)-->
<tr>
<td>...</td>
<td>...</td>
<td></td>
</tr>
<!--@endif-->
<!--@foreach($block->lines as $line)-->
<tr>
<td>{$line->before_line_number}</td>
<td>{$line->after_line_number}</td>
<td <!--@if($line->type)-->class="{$line->type}"<!--@endif--> >{nl2br(str_replace("\t","&nbsp;&nbsp;&nbsp;&nbsp;",str_replace(' ','&nbsp;',htmlspecialchars($line->data))))}</td>
</tr>
<!--@endforeach-->
{@ $bStart = false }
<!--@endforeach-->
</tbody>
</table>
<!--@end-->
<!--@end-->
<!--#include("source_footer.html")-->