From 071be418564827e42085e18c39520420f3b9d7ef Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 27 May 2007 03:34:42 +0000 Subject: Bug 218618: Show line numbers on patch attachments when viewing them in "diff" mode - Patch by Frédéric Buclin r=justdave a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/attachment/diff-header.html.tmpl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'template/en/default/attachment/diff-header.html.tmpl') diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl index 97a6d0527..a5f05f1bb 100644 --- a/template/en/default/attachment/diff-header.html.tmpl +++ b/template/en/default/attachment/diff-header.html.tmpl @@ -37,7 +37,6 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %] font-size: 1em; background-color: #c3c3c3; border: 1px solid black; - width: 100%; } .file_head a { @@ -51,7 +50,6 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %] } .section_head { - width: 100%; background-color: #f0f0f0; border: 1px solid black; text-align: left; @@ -70,7 +68,6 @@ table.file_table { tbody.file td { border-left: 1px dashed black; border-right: 1px dashed black; - width: 50%; } tbody.file pre { @@ -95,6 +92,13 @@ tbody.file pre:empty { background-color: #FFCC99; } +.num { + background-color: #ffe9ae; + text-align:right; + padding: 0 0.3em; + width: 3em; +} + .warning { color: red } @@ -196,7 +200,7 @@ tbody.file pre:empty { return twisty.parentNode.parentNode.parentNode.nextSibling; } function get_twisty_from_tbody(tbody) { - return tbody.previousSibling.firstChild.firstChild.firstChild; + return tbody.previousSibling.firstChild.nextSibling.firstChild.firstChild; } [% END %] -- cgit v1.2.3-24-g4f1b