Spaces:
Sleeping
Sleeping
<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> | |