lepisi-pengumuman/App/Views/Data/pengumuman.html

40 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}Pengumuman{% endblock %}
{% block body %}
<h2>List Pengumuman</h2>
{% for post in posts %}
{% if post.id %}
<h3>Pengumuman {{ post.id }}</h3>
{{ post.content | raw }}
<br />
{% if status %}
{% if post.status == 1 %}
<a href="/posts/edit/{{ post.id }}">
Edit
</a>
{% elseif post.status == 2 %}
<a href="/posts/edit/{{ post.id }}">
<strike>Edit</strike>
</a> (Belum aktif)
{% else %}
<strike>Edit</strike>
(Nonaktif)
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
<br />
{% if privilage != "" %}
<a href="/posts/entry">+ Tambah Pengumuman</a>
{% if privilage == 1 %}
<a href="/posts/category">+ Tambah Kategori</a>
{% endif %}
<a href="/logout">Keluar</a>
{% endif %}
{% endblock %}