Added css framework and implemented it on some page (not all yet)
This commit is contained in:
@@ -2,38 +2,49 @@
|
||||
|
||||
{% 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 %}
|
||||
<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 }}">
|
||||
<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>
|
||||
</a> (Belum aktif)
|
||||
{% else %}
|
||||
<strike>Edit</strike>
|
||||
(Nonaktif)
|
||||
(Nonaktif)
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
<br />
|
||||
<section>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
{% 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 %}
|
||||
|
||||
Reference in New Issue
Block a user