From: Iain Patterson Date: Mon, 5 Aug 2013 17:51:35 +0000 (+0100) Subject: Added report table class. X-Git-Tag: 2013-09-11~2 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;ds=sidebyside;h=b0347297ea5b4b7a8a4a5c2124c074b53539da6c;p=readifood.git Added report table class. Report tables have extra padding for legibility. --- diff --git a/lib/report.php b/lib/report.php index 2fabab4..b268440 100644 --- a/lib/report.php +++ b/lib/report.php @@ -79,7 +79,7 @@ $week = 1; $last_week = 0; $total = 0; - echo "\n"; + echo "
\n"; foreach ($rows as $row) { /* Convert week of year to date range. */ if (! $week_offset) $week_offset = $row->getWeek() - 1; @@ -111,7 +111,7 @@ $q->groupByRequesterId()->addDescendingOrderByColumn('count'); $rows = $q->find(); $total = 0; - echo "
\n"; + echo "
\n"; /* XXX Join! */ foreach ($rows as $row) { echo "\n"; diff --git a/www/style.css b/www/style.css index 627f878..84af4f4 100644 --- a/www/style.css +++ b/www/style.css @@ -93,3 +93,7 @@ a.delete { .smaller { font-size: 25%; } + +table.report > * > tr > td { + padding-right: 0.25em; +}