From 2f4164b3b77c76150718fdda07a45738d0f03c70 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Fri, 11 Oct 2013 10:37:55 +0200 Subject: [PATCH] Make seen reports visible, widgetize tables --- htdocs/crashes.php | 17 +++++---- htdocs/{ => css/singularity}/singularity.css | 28 ++++++++++++--- htdocs/lib/Layout.php | 36 +++++--------------- 3 files changed, 44 insertions(+), 37 deletions(-) rename htdocs/{ => css/singularity}/singularity.css (64%) diff --git a/htdocs/crashes.php b/htdocs/crashes.php index 901d639..0ac4fc0 100644 --- a/htdocs/crashes.php +++ b/htdocs/crashes.php @@ -4,6 +4,11 @@ define("SITE_ROOT", realpath(dirname(__file__))); require_once SITE_ROOT . "/lib/init.php"; $S->requireUser(); +function lk($id, $txt) +{ + echo '' . htmlentities($txt) . ''; +} + $filter = new SearchFilter(); $total = CrashReport::getTotal($filter); $reports = CrashReport::getReports($filter); @@ -23,12 +28,12 @@ $filter->render(); Grid (region) - - id ?> - client_channel . " " . $reports[$i]->client_version) ?> - os) ?> - gpu) ?> - grid . " (" . $reports[$i]->region . ")") ?> + + id, $reports[$i]->id) ?> + id, $reports[$i]->client_channel . " " . $reports[$i]->client_version) ?> + id, $reports[$i]->os) ?> + id, $reports[$i]->gpu) ?> + id, $reports[$i]->grid . " (" . $reports[$i]->region . ")") ?> diff --git a/htdocs/singularity.css b/htdocs/css/singularity/singularity.css similarity index 64% rename from htdocs/singularity.css rename to htdocs/css/singularity/singularity.css index 6a26ef8..6c0cb5c 100644 --- a/htdocs/singularity.css +++ b/htdocs/css/singularity/singularity.css @@ -47,6 +47,30 @@ td, th { border: none; } +tr.rowhighlight a { + display: block; + width: 100%; + height: 100%; +} + +table.jtable tr:hover, table.jtable th { + background: #2b3233 url(images/ui-bg_highlight-hard_20_2b3233_1x100.png) 50% 50% repeat-x; + color: #ffffff; +} + +table.jtable { + border-spacing: 0px; + border-collapse:collapse; + border: 1px solid #555555; + background: #1e1e1e url(images/ui-bg_flat_25_1e1e1e_40x100.png) 50% 50% repeat-x; + color: #c5c5c5; +} + +table.jtable a:visited { + color: #888; +} + + .hand { cursor: pointer; } @@ -57,7 +81,3 @@ pre { white-space: pre-wrap; word-wrap: break-word; } - -.jtable tr .ui-state-hover { -font-weight: normal; -} \ No newline at end of file diff --git a/htdocs/lib/Layout.php b/htdocs/lib/Layout.php index 6e85eed..87e6ab6 100644 --- a/htdocs/lib/Layout.php +++ b/htdocs/lib/Layout.php @@ -109,8 +109,8 @@ class Layout - - + + @@ -120,32 +120,14 @@ class Layout //