add 'td.report' to css file and use it in report_output.html so that table entries are centered.

This commit is contained in:
Andreas Kotowicz 2012-03-12 14:38:21 +01:00
parent f19115ffd3
commit b4fe8bd91f
2 changed files with 6 additions and 1 deletions

View File

@ -149,6 +149,11 @@ td {
font-size: 10pt;
}
td.report {
font-size: 10pt;
text-align: center;
}
.hover {
background-color: #bcd4ec;
}

View File

@ -33,7 +33,7 @@
<tr class='row_tablehead'><td colspan='{{ headings|length }}'>{{ title }}</td></tr>
<tr class='row_columnheads'>{% for h in headings %}<th>{% if forloop.first %}{{ h|title }}{% else %}{{ h }}{% endif %}</th>{% endfor %}</tr>
{% for d in data %}
<tr class='row_{% cycle odd,even %}'>{% for f in d %}<td>{{ f }}</td>{% endfor %}</tr>{% endfor %}
<tr class='row_{% cycle odd,even %}'>{% for f in d %}<td class="report">{{ f }}</td>{% endfor %}</tr>{% endfor %}
</table>
<div class='jqPlot' id='placeholder' style='width: 600px; height: 400px;'></div>