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

35 lines
1012 B
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>
{% 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 %}
<p>{{ post.content|raw }}</p>
{% endif %}
{% endfor %}
{% if status %}
<a href="/posts/entry">+ Tambah Pengumuman</a>
<a href="/posts/category">+ Tambah Kategori</a>
<a href="/logout">Keluar</a>
{% endif %}
{% endblock %}