diff options
author | ubq323 <ubq323> | 2021-06-18 20:29:38 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-18 20:29:38 +0000 |
commit | c6491d055447cba9efc6a45df172e932ca6e9e80 (patch) | |
tree | 71fb2690d2e117ffd2362cab13519f5ae2c3441e /apioforum/templates | |
parent | 8ec18ae1d985aee2bcf146c1e4f783b91643406a (diff) | |
parent | 3f0aa4cbb7e217366c55f258fa2d4fc606498951 (diff) |
merge permissions (ie admin page) into trunk
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/admin/admin_page.html | 15 | ||||
-rw-r--r-- | apioforum/templates/base.html | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/apioforum/templates/admin/admin_page.html b/apioforum/templates/admin/admin_page.html new file mode 100644 index 0000000..f48c6c0 --- /dev/null +++ b/apioforum/templates/admin/admin_page.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% block header %} +<h1>{% block title %}admin page{% endblock %}</h1> +{% endblock %} + +{% block content %} +<h2>admins</h2> +<ul> + {% for admin in admins %} + <li>{{admin.username}}</li> + {% endfor %} +</ul> +<p>this page will have more things on it later, probably</p> +{% endblock %} + diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 5121b85..bf3748f 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -20,6 +20,11 @@ {% if g.user %} <p>{{ g.user }}</p> + + {% if is_admin %} + <p><a href="{{url_for('admin.admin_page')}}">admin</a></p> + {% endif %} + <p> <a href="{{ url_for('auth.logout',next=path_for_next) }}"> logout |