Skip to content

Commit

Permalink
Add admin_tools.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilleece committed Mar 26, 2021
1 parent 2664df8 commit a7d2be8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ def logout():
session.pop("user")
return redirect(url_for("login"))


@app.route("/admin_tools")
def admin_tools():
return render_template("admin_tools.html")


# Below are the app routes for each individual filament section
@app.route("/pla")
def pla():
Expand Down
17 changes: 17 additions & 0 deletions templates/admin_tools.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

{% extends "base.html" %}
{% block content %}
<div class="row justify-content-center">
<div class="card mt-5 shadow" style="width: 18rem;">
<img src="https://raymanpc.com/wiki/script-en/images/1/15/Admin.png" class="card-img-top" alt="admin card photo">
<div class="card-body">
<h5 class="card-title">Hi there, Admin.</h5>
<p class="card-text">
There are currently no tools for admins, this is simply here as a place to put potential future tools.
However, accessing this part of the site should at least give you a slight feeling of exclusivity! Hurray!
</p>
</div>
</div>
</div>

{% endblock %}
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</li>
{% if session['user'] == 'admin' %}
<li class="nav-item">
<a class="nav-link" href="#">Admin Tools</a>
<a class="nav-link" href="{{ url_for('admin_tools') }}">Admin Tools</a>
</li>
{% endif %}
<li class="nav-item">
Expand Down

0 comments on commit a7d2be8

Please sign in to comment.