List posts
This commit is contained in:
parent
4948195495
commit
099bcaadc6
6 changed files with 142 additions and 8 deletions
11
simple_text_board/templates/index.html.tera
Normal file
11
simple_text_board/templates/index.html.tera
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "base" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>simple text board</h1>
|
||||
<h2>index</h2>
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li>{{ loop.index }} - <a href="post/{{ post.id }}">{{ post.title }}</a> - {{ post.author }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue