Indefero

Indefero Commit Details


Date:2011-10-27 16:32:18 (13 years 1 month ago)
Author:Thomas Keller
Branch:develop, feature.wiki-default-page, release-1.2, release-1.3
Commit:d2db3b16d2c15d6b9b40f27dda02e6c0e6e13a7d
Parents: ae11b1de4ab4bebdc2292cc52b341f676ce846b9
Message:Fix issue 748.

Changes:

File differences

src/IDF/Diff.php
182182
183183
184184
185
185
186186
187187
188188
189189
190
190
191191
192192
193193
194
195
196
197
198
199
200
201
202
203
204
205
194206
195
207
196208
197209
198210
list($added, $removed) = end($file['chunks_def']);
$added = $added[0] + $added[1];
$leftwidth = 1;
$leftwidth = 0;
if ($added > 0)
$leftwidth = ((ceil(log10($added)) + 1) * 8) + 12;
$removed = $removed[0] + $removed[1];
$rightwidth = 1;
$rightwidth = 0;
if ($removed > 0)
$rightwidth = ((ceil(log10($removed)) + 1) * 8) + 12;
// we need to correct the width of a single column a little
// to take less space and to hide the empty one
$class = '';
if ($leftwidth == 0) {
$class = 'left-hidden';
$rightwidth -= floor(log10($removed));
}
else if ($rightwidth == 0) {
$class = 'right-hidden';
$leftwidth -= floor(log10($added));
}
$inner_linecounts =
'<table class="diff-linecounts">' ."\n".
'<table class="diff-linecounts '.$class.'">' ."\n".
'<colgroup><col width="'.$leftwidth.'" /><col width="'. $rightwidth.'" /></colgroup>' ."\n".
'<tr class="line">' .
implode('</tr>'."\n".'<tr class="line">', $offsets).
www/media/idf/css/style.css
666666
667667
668668
669
670
671
672
673
669674
670675
671676
border-left: 1px solid #d3d7cf;
}
table.diff-linecounts.left-hidden tr > td:first-child,
table.diff-linecounts.right-hidden tr > td + td {
display: none;
}
table.diff-contents td {
line-height: 12px;
padding: 2px;

Archive Download the corresponding diff file

Page rendered in 0.08035s using 14 queries.