ver 1
This commit is contained in:
30
src/html/boards.html
Normal file
30
src/html/boards.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Boards</h1>
|
||||
<h5>Page {{ page }}</h5>
|
||||
<br>
|
||||
<ul class="posts">
|
||||
{% for board in boards %}
|
||||
<li>
|
||||
<h3>/{{ board.name }}/</h3>
|
||||
<h6>created at {{ board.created_at }}</h6>
|
||||
<p>{{ board.description }}</p>
|
||||
<h6><a href="/boards/{{ board.name }}">View Board</a></h6>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if boards|length == 0 %}
|
||||
<li>No boards found.</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<div id="nav">
|
||||
<h5>Page {{ page }}</h5>
|
||||
{% if page > 1 %}
|
||||
<h5><a href="/boards?page={{ page - 1 }}">Previous Page</a></h5>
|
||||
{% endif %}
|
||||
|
||||
{% if boards|length == 10 %}
|
||||
<h5><a href="/boards?page={{ page + 1 }}">Next Page</a></h5>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user