mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-19 01:05:52 +00:00
Chapter 5
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Hi, {{ user.username }}!</h1>
|
||||
{% for post in posts %}
|
||||
<div><p>{{ post.author.username }} says: <b>{{ post.body }}</b></p></div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
<h1>Hi, {{ current_user.username }}!</h1>
|
||||
{% for post in posts %}
|
||||
<div>
|
||||
<p>
|
||||
{{ post.author.username }} says: <b>{{ post.body }}</b>
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user