- Code design

- Passing data from users table
This commit is contained in:
2017-09-05 11:30:11 +07:00
parent 1381593163
commit 47d455063f
6 changed files with 139 additions and 86 deletions

View File

@@ -7,7 +7,14 @@
{% for post in posts %}
<h3>Pengumuman {{ post.id }}</h3>
<a href="/posts/edit/{{ post.id }}">Edit</a>
<a href="/posts/edit/{{ post.id }}">
{% if post.status == 1 %}
Edit
</a>
{% else %}
<strike>Edit</strike>
</a> (Nonaktif)
{% endif %}
<p>{{ post.content }}</p>
{% endfor %}