Change status display of posts
This commit is contained in:
parent
706b15d401
commit
05f213045e
@ -80,10 +80,12 @@
|
|||||||
|
|
||||||
<label>Status: </label>
|
<label>Status: </label>
|
||||||
<span>
|
<span>
|
||||||
{% if post.status == 0 %}
|
{% if post.status == 1 %}
|
||||||
Nonaktif
|
|
||||||
{% else %}
|
|
||||||
Aktif
|
Aktif
|
||||||
|
{% elseif post.status == 2 %}
|
||||||
|
Belum aktif
|
||||||
|
{% else %}
|
||||||
|
Nonaktif
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -9,13 +9,17 @@
|
|||||||
{% if post.id %}
|
{% if post.id %}
|
||||||
<h3>Pengumuman {{ post.id }}</h3>
|
<h3>Pengumuman {{ post.id }}</h3>
|
||||||
{% if status %}
|
{% if status %}
|
||||||
<a href="/posts/edit/{{ post.id }}">
|
|
||||||
{% if post.status == 1 %}
|
{% if post.status == 1 %}
|
||||||
|
<a href="/posts/edit/{{ post.id }}">
|
||||||
Edit
|
Edit
|
||||||
</a>
|
</a>
|
||||||
{% elseif (post.status == 0 or post.status == 2) %}
|
{% elseif post.status == 2 %}
|
||||||
|
<a href="/posts/edit/{{ post.id }}">
|
||||||
<strike>Edit</strike>
|
<strike>Edit</strike>
|
||||||
</a> (Nonaktif)
|
</a> (Belum aktif)
|
||||||
|
{% else %}
|
||||||
|
<strike>Edit</strike>
|
||||||
|
(Nonaktif)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>{{ post.content|raw }}</p>
|
<p>{{ post.content|raw }}</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user