2019-01-25 01:38:34 +01:00

43 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CodiMD Notes</title>
<link rel="stylesheet" href="{{ url_for('static', filename='libs/bootstrap.min.css') }}">
<script src="{{ url_for('static', filename='js/file_reader.js') }}"></script>
</head>
<body class="bg-light">
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">
CodiMD Notes
</a>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col">
<button class="btn btn-success" onclick="sortByTitle()">Sort By Title</button>
</div>
</div>
<div id="sortable-wrapper" class="row">
{% for note in notes %}
{% if note[1] and note[2] %}
<div class="sortable col-12 col-sm-6 col-md-6 col-lg-4 col-xl-3 mb-2">
<a href="{{host}}/{{note[2]}}">
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">{{note[1]}}</h5>
{% if note[5] %}
<h6 class="card-subtitle mb-2 text-muted">LastChanged: {{note[5].strftime('%d.%m.%Y
%H:%M')}}</h6>
{% endif %}
<p class="card-text">ViewCount: {{note[4]}}</p>
</div>
</div>
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</body>
</html>