AI-smart-notes / templates /history.html
Vargock
First commit
5cdaf63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>History - Smart Notes</title>
<link rel="stylesheet" href="{{ url_for('static', filename='normalize.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<h1>History</h1>
<a href="/" class="btn">← Back</a>
{% if notes %}
<table>
<thead>
<tr>
<th>#</th>
<th>Original Text</th>
<th>Summary</th>
<th>Tags</th>
<th>Sentiment</th>
<th>Created</th>
</tr>
</thead>
<tbody>
{% for note in notes %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ note[0][:150] }}{% if note[0]|length > 150 %}...{% endif %}</td>
<td>{{ note[1] }}</td>
<td>{{ note[2] }}</td>
<td>{{ note[3] }}</td>
<td>{{ note[4][:19] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No notes yet. Try creating one!</p>
{% endif %}
</body>
</html>