You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.3 KiB
69 lines
2.3 KiB
{% extends 'base.html' %} |
|
|
|
{% block header %} |
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> |
|
<div class="container-fluid"> |
|
<a href="{{ url_for('index') }}" class="navbar-brand" href="#">Eddsons Markdown Presenter</a> |
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation"> |
|
<span class="navbar-toggler-icon"></span> |
|
</button> |
|
<div class="collapse navbar-collapse" id="navbarColor02"> |
|
<ul class="navbar-nav me-auto"> |
|
|
|
<li class="nav-item"> |
|
<a type="button" href="{{ url_for('upload.upload_file') }}" class="btn btn-outline-light">Upload</a> |
|
</li> |
|
|
|
</ul> |
|
<form class="d-flex"> |
|
{% if g.user %} |
|
<a type="button" class="btn btn-outline-light">{{ g.user['username'] }}</a> |
|
<a class="btn btn-secondary my-2 my-sm-0" href="{{ url_for('auth.logout') }}">Log Out</a> |
|
{% else %} |
|
<a class="btn btn-secondary my-2 my-sm-0" href="{{ url_for('auth.register') }}">Register</a> |
|
<a class="btn btn-secondary my-2 my-sm-0" href="{{ url_for('auth.login') }}">Log In</a> |
|
{% endif %} |
|
</form> |
|
</div> |
|
</div> |
|
</nav> |
|
|
|
<h1>{% block title %}Markdown Files{% endblock %}</h1> |
|
|
|
{% endblock %} |
|
|
|
{% block content %} |
|
|
|
|
|
|
|
<table class="table table-secondary"> |
|
<thead> |
|
<tr> |
|
<th scope="col">ID</th> |
|
<th scope="col">Title</th> |
|
<th scope="col">UUID</th> |
|
<th scope="col">Created</th> |
|
<th scope="col"></th> |
|
<th scope="col"></th> |
|
<th scope="col"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
{% for file in mdFiles %} |
|
<tr class="table-dark"> |
|
<td>{{ file['id'] }}</td> |
|
<td>{{ file['title'] }}</td> |
|
<td>{{ file['uuid'] }}</td> |
|
<td>{{ file['created'] }}</td> |
|
<td><a type="button" href="{{ url_for('index.qrView', uuid=file['uuid']) }}" class="btn btn-primary">QR Code</a></td> |
|
<td><a type="button" href="{{ url_for('index.viewfile', uuid=file['uuid']) }}" class="btn btn-primary">View</a></td> |
|
<td><a type="button" href="{{ url_for('index.deletefile', uuid=file['uuid']) }}" class="btn btn-danger">Delete</a></td> |
|
</tr> |
|
{% endfor %} |
|
</tbody> |
|
</table> |
|
|
|
|
|
|
|
{% endblock %} |