Nice formatting
This commit is contained in:
23
controllers/total/templates/total.html
Normal file
23
controllers/total/templates/total.html
Normal 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 %}
|
||||
26
controllers/total/templates/total.pug
Normal file
26
controllers/total/templates/total.pug
Normal 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}
|
||||
Reference in New Issue
Block a user