From 57addc0af857b5052a1d9005e1efd8452d4fbe3a Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Thu, 23 Aug 2012 15:46:22 +0200 Subject: [PATCH] #17 long urls breaks td, temporary solution --- report/velocity/header.vm | 5 +++++ report/velocity/page.vm | 22 +++++++++++----------- report/velocity/pages.vm | 14 ++++++++------ 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/report/velocity/header.vm b/report/velocity/header.vm index 24a6190e1..ec5832206 100644 --- a/report/velocity/header.vm +++ b/report/velocity/header.vm @@ -27,6 +27,11 @@ line-height: 38px; font-weight:bold; } + .nobreak { + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; + } diff --git a/report/velocity/page.vm b/report/velocity/page.vm index 53231abad..04ba1c11c 100644 --- a/report/velocity/page.vm +++ b/report/velocity/page.vm @@ -1,4 +1,3 @@ - #parse("report/velocity/header.vm")
@@ -9,6 +8,7 @@

Yslow scores below 100

+ @@ -27,7 +27,7 @@ -
$message.getName() $message.getChild("score").getValue() $message.getChild("message").getValue() + #foreach ($item in $message.getChild("components").getChildren("item"))

$item.getValue()

#end @@ -39,6 +39,7 @@
+

Page assets

@@ -52,17 +53,16 @@ #foreach ($asset in $document.getRootElement().getChild("comps").getChildren()) - +$asset.getChild("url").getValue() diff --git a/report/velocity/pages.vm b/report/velocity/pages.vm index 038094f34..62588c70b 100644 --- a/report/velocity/pages.vm +++ b/report/velocity/pages.vm @@ -79,18 +79,20 @@ #set($yslow = $results.getChild("o").getValue()) - + + + $results.getChild("u").getValue() +
- $asset.getChild("url").getValue() - + + - #end - "> - +
+ #end + "> -
$asset.getChild("type").getValue() $asset.getChild("size").getValue()
+ #set($file = $results.getAttribute("filename").getValue()) #set($file = $file.concat(".html")) - $results.getChild("u").getValue() - - #end + #end "> - - #if($!{results.getChild("stats").getChild("js").getChild("r")}) $results.getChild("stats").getChild("js").getChild("r").getValue()