]> git.datanom.net - liogui.git/blob - webapp/templates/dashboard/index.html
Completed User Administration
[liogui.git] / webapp / templates / dashboard / index.html
1 {% extends 'base.html' %}
2
3 {% block header %}
4 <h1>{% block title %}Dashboard{% endblock %}</h1>
5 {% if g.user and perm == 'ADMIN' %}
6 <a class="action" href="{{ url_for('auth.register') }}">New User</a>
7 <a class="action" href="{{ url_for('auth.update') }}">Manage Users</a>
8 {% endif %}
9 {% endblock %}
10
11 {% block content %}
12 {% for post in posts %}
13 <article class="post">
14 <header>
15 <div>
16 <h1>{{ post['title'] }}</h1>
17 <div class="about">by {{ post['username'] }} on {{ post['created'].strftime('%Y-%m-%d') }}</div>
18 </div>
19 {% if g.user['id'] == post['author_id'] %}
20 <a class="action" href="{{ url_for('blog.update', id=post['id']) }}">Edit</a>
21 {% endif %}
22 </header>
23 <p class="body">{{ post['body'] }}</p>
24 </article>
25 {% if not loop.last %}
26 <hr>
27 {% endif %}
28 {% endfor %}
29 {% endblock %}
This page took 0.501376 seconds and 6 git commands to generate.