From 92ab42de32b71ca35006502cf4dc6b0189b7705d Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Tue, 7 Aug 2012 23:45:31 +1000 Subject: [PATCH] add 'td.report' to css file and use it in report_output.html so that table entries are centered. By @kotowicz in b4fe8bd91f291c042a08b48311b9c25e76ecf804 --- helpdesk/static/helpdesk/helpdesk.css | 5 +++++ helpdesk/templates/helpdesk/report_output.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/helpdesk/static/helpdesk/helpdesk.css b/helpdesk/static/helpdesk/helpdesk.css index 8b3cc408..42f65e9a 100644 --- a/helpdesk/static/helpdesk/helpdesk.css +++ b/helpdesk/static/helpdesk/helpdesk.css @@ -154,6 +154,11 @@ td { font-size: 10pt; } +td.report { + font-size: 10pt; + text-align: center; +} + .hover { background-color: #bcd4ec; } diff --git a/helpdesk/templates/helpdesk/report_output.html b/helpdesk/templates/helpdesk/report_output.html index 47bf49ac..60f4076e 100644 --- a/helpdesk/templates/helpdesk/report_output.html +++ b/helpdesk/templates/helpdesk/report_output.html @@ -33,7 +33,7 @@ {{ title }} {% for h in headings %}{% if forloop.first %}{{ h|title }}{% else %}{{ h }}{% endif %}{% endfor %} {% for d in data %} -{% for f in d %}{{ f }}{% endfor %}{% endfor %} +{% for f in d %}{{ f }}{% endfor %}{% endfor %}