Beautify the web

This commit is contained in:
2017-09-12 14:30:42 +07:00
parent 1f62a24c80
commit 5b1b546dc5
12 changed files with 6048 additions and 208 deletions

View File

@@ -3,15 +3,20 @@
{% block title %}Pengumuman{% endblock %}
{% block nav %}
<input type="checkbox" id="bmenug" class="show">
<label for="bmenug" class="burger pseudo button"><i class="fa fa-bars" aria-hidden="true"></i></label>
<div class="menu">
{% if privilage != "" %}
<a href="/posts/entry" class="pseudo button">+ Pengumuman</a>
<a href="/posts/entry" class="pseudo button" data-tooltip="Pengumuman Baru"><i class="fa fa-newspaper-o" aria-hidden="true"></i></a>
{% if privilage == 1 %}
<a href="/posts/category" class="pseudo button">+ Kategori</a>
<a href="/posts/category" class="pseudo button" data-tooltip="Kategori"><i class="fa fa-list-ul" aria-hidden="true"></i></a>
<a href="/register" class="pseudo button" data-tooltip="User Baru"><i class="fa fa-user-plus" aria-hidden="true"></i></a>
{% endif %}
<a href="/logout" class="button error">Keluar</a>
<a href="/logout" class="pseudo button" data-tooltip="Keluar"><i class="fa fa-sign-out" aria-hidden="true"></i></a>
{% else %}
<a href="/login" class="button">Masuk</a>
<a href="/login" class="pseudo button" data-tooltip="Masuk">
<i class="fa fa-sign-in" aria-hidden="true"></i>
</a>
{% endif %}
</div>
{% endblock %}
@@ -22,23 +27,27 @@
<h1>List Pengumuman</h1>
{% for post in posts %}
{% if post.id %}
<h2>Pengumuman {{ post.id }}</h2>
<h2>
Pengumuman {{ post.id }}
<span class="shyFont">
{% if status %}
{% if post.status == 1 %}
<a href="/posts/edit/{{ post.id }}" data-tooltip="Ubah">
<i class="fa fa-edit" aria-hidden="true"></i>
</a>
{% elseif post.status == 2 %}
<a href="/posts/edit/{{ post.id }}" data-tooltip="Ubah (Belum aktif)">
<strike><i class="fa fa-edit" aria-hidden="true"></i></strike>
</a> (Belum aktif)
{% else %}
<strike data-tooltip="Tidak dapat diubah (Tidak aktif)"><i class="fa fa-edit" aria-hidden="true"></i></strike>
(Nonaktif)
{% endif %}
{% endif %}
</span>
</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>