54 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CodiMD notes</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.13/js/dataTables.bootstrap4.min.js"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='libs/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
</head>
<body>
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">
<h1>CodiMD notes</h1>
</a>
</nav>
<div class="container">
<table id="example" class="table table-striped table-inverse table-bordered table-hover" cellspacing="0" width="100%">
<thead>
<tr>
<th>id</th>
<th>title</th>
<th>alias</th>
<th>last change at</th>
<th>permission</th>
<th>content</th>
</tr>
</thead>
<tbody>
{% for note in notes %}
<tr>
<td scope="row"><a href="{{host}}/{{note['shortid']}}" target="_blank">{{note['shortid']}}</a></td>
<td>{{note['title']}}</td>
<td>{{note['alias']}}</td>
<td><span class="note-date">{{note['lastchangeAt'].strftime('%Y-%m-%d %H:%M')}}</span></td>
<td>{{note['permission']}}</td>
<td>{%if note['content']%}💬{%else%}❌{%endif%}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>