From b52018e61a91d1291622cbd36f4f4dfd0afdda29 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Apr 2012 21:32:53 +0200 Subject: [PATCH] Use a span instead of a div in the pretty logs Fixes #6. --- src/root/layout.tt | 4 ++-- src/root/static/css/logfile.css | 9 +++++---- src/xsl/log2html.xsl | 17 ++++++++++------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/root/layout.tt b/src/root/layout.tt index c7497d16..673051f7 100644 --- a/src/root/layout.tt +++ b/src/root/layout.tt @@ -61,7 +61,7 @@ /* Implementation of the expand all link. */ $(".logTreeExpandAll").click(function() { - $(".logTreeToggle", $(this).siblings(".toplevel")).map(function() { + $(".logTreeToggle", $(this).parent().siblings(".toplevel")).map(function() { $(this).siblings("ul").show(); $(this).text("-"); }); @@ -69,7 +69,7 @@ /* Implementation of the collapse all link. */ $(".logTreeCollapseAll").click(function() { - $(".logTreeToggle", $(this).siblings(".toplevel")).map(function() { + $(".logTreeToggle", $(this).parent().siblings(".toplevel")).map(function() { $(this).siblings("ul").hide(); $(this).text("+"); }); diff --git a/src/root/static/css/logfile.css b/src/root/static/css/logfile.css index 2aff8a0c..a49e2b00 100644 --- a/src/root/static/css/logfile.css +++ b/src/root/static/css/logfile.css @@ -81,6 +81,11 @@ em.storeref:hover span.popup { font-size: larger; } +span.code { + white-space: pre-wrap; + font-family: monospace; +} + .errorLine { color: #ff0000; font-weight: bold; @@ -94,7 +99,3 @@ em.storeref:hover span.popup { .prio3 { font-style: italic; } - -.code { - white-space: pre-wrap; -} diff --git a/src/xsl/log2html.xsl b/src/xsl/log2html.xsl index 3616ab96..e495d52a 100644 --- a/src/xsl/log2html.xsl +++ b/src/xsl/log2html.xsl @@ -7,8 +7,11 @@ doctype-system="http://www.w3.org/TR/html4/strict.dtd" /> - [Expand all] - [Collapse all] +

+ Expand all + + Collapse all +