Spaces:
Sleeping
Sleeping
File size: 2,347 Bytes
e24c25f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Predicted Mapping</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 10px;
text-align: left;
}
.top-1 { background-color: red; }
.top-2 { background-color: blue; }
.top-3 { background-color: green; }
</style>
</head>
<body>
<h1>Predicted Mapping</h1>
<h2>Course: {{ course_name }}</h2>
<table>
<tr>
<th>Course Learning Outcome</th>
<th>PLO1</th>
<th>PLO2</th>
<th>PLO3</th>
<th>PLO4</th>
<th>PLO5</th>
<th>PLO6</th>
</tr>
{% for result in results %}
<tr>
<td>{{ result.course_outcome }}</td>
<td class="{% if 0 in result.best_matches[:1] %}top-1{% elif 0 in result.best_matches[1:2] %}top-2{% elif 0 in result.best_matches[2:3] %}top-3{% endif %}">{{ 'β' if 0 in result.best_matches else '' }}</td>
<td class="{% if 1 in result.best_matches[:1] %}top-1{% elif 1 in result.best_matches[1:2] %}top-2{% elif 1 in result.best_matches[2:3] %}top-3{% endif %}">{{ 'β' if 1 in result.best_matches else '' }}</td>
<td class="{% if 2 in result.best_matches[:1] %}top-1{% elif 2 in result.best_matches[1:2] %}top-2{% elif 2 in result.best_matches[2:3] %}top-3{% endif %}">{{ 'β' if 2 in result.best_matches else '' }}</td>
<td class="{% if 3 in result.best_matches[:1] %}top-1{% elif 3 in result.best_matches[1:2] %}top-2{% elif 3 in result.best_matches[2:3] %}top-3{% endif %}">{{ 'β' if 3 in result.best_matches else '' }}</td>
<td class="{% if 4 in result.best_matches[:1] %}top-1{% elif 4 in result.best_matches[1:2] %}top-2{% elif 4 in result.best_matches[2:3] %}top-3{% endif %}">{{ 'β' if 4 in result.best_matches else '' }}</td>
<td class="{% if 5 in result.best_matches[:1] %}top-1{% elif 5 in result.best_matches[1:2] %}top-2{% elif 5 in result.best_matches[2:3] %}top-3{% endif %}">{{ 'β' if 5 in result.best_matches else '' }}</td>
</tr>
{% endfor %}
</table>
<a href="/">Back to Input</a>
</body>
</html>
|