Nice formatting

This commit is contained in:
Thomas Forgione
2017-09-23 22:38:12 +00:00
parent dae9643cd0
commit 042ac0f9d3
8 changed files with 330 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
{% extends "pyade/base.html" %}
{% block content %}
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>Course name</th>
<th>Count in hours</th>
</tr>
</thead>
<tbody>
{% for key, value in total_by_course.items %}
<tr>
<td>{{ key }}</td>
<td>{{ value }}</td>
</tr>
{% endfor %}
<tr class="table-active">
<td><strong>Total</strong></td>
<td><strong>{{ total }}</strong></td>
</tr>
</tbody>
</table>
{% endblock %}

View File

@@ -0,0 +1,26 @@
extends ../../../templates/base.pug
block content
table.table.table-bordered.table-striped.table-hover
thead
tr
th Course name
th Detected type
th Count in hours
th Count in TD equivalent
tbody
each course in courses
tr
td #{course.name}
td #{course.type}
td #{course.time}
td #{course.tdEquivalent}
tr
td
strong #{total.name}
td
strong #{total.type}
td
strong #{total.time}
td
strong #{total.tdEquivalent}