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

51 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% block title %}Pengumuman{% endblock %}
{% block nav %}
<div class="menu">
{% if privilage != "" %}
<a href="/posts/entry" class="pseudo button">+ Pengumuman</a>
{% if privilage == 1 %}
<a href="/posts/category" class="pseudo button">+ Kategori</a>
{% endif %}
<a href="/logout" class="button error">Keluar</a>
{% else %}
<a href="/login" class="button">Masuk</a>
{% endif %}
</div>
{% endblock %}
{% block body %}
<main class="documentation">
<section>
<h1>List Pengumuman</h1>
{% for post in posts %}
{% if post.id %}
<h2>Pengumuman {{ post.id }}</h2>
{{ 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 %}
</section>
<section>
</section>
</main>
{% endblock %}