- Code design
- Passing data from users table
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user