Public archive for the Return to Ritherdon project.
https://www.nicolaellisandritherdon.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
987 B
36 lines
987 B
2 years ago
|
{% extends "layouts/default.html" %}
|
||
|
{% block title %}A list of the site's pages.{% endblock %}
|
||
|
{% block content %}
|
||
|
<h1>Pages</h1>
|
||
|
<div>
|
||
|
{% if roles.logged-in %}
|
||
|
<a href="/dashboard">Dashboard</a>
|
||
|
<a href="/user/edit">Edit Account</a>
|
||
|
<form action="/logout" method="post">
|
||
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}">
|
||
|
<input type="submit" value="logout">
|
||
|
</form>
|
||
|
<form action="/user/delete" method="post">
|
||
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}">
|
||
|
<input type="submit" value="Delete Account">
|
||
|
</form>
|
||
|
<a href="/create/page">Create Page</a>
|
||
|
<a href="/pages">View Pages</a>
|
||
|
{% if roles.administrator %}
|
||
|
<a href="/site-settings">Site Settings</a>
|
||
|
<a href="/users">Users</a>
|
||
|
{% endif %}
|
||
|
{% else %}
|
||
|
<a href="/">Home</a>
|
||
|
<a href="/login">Log-in</a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
{% for page in pages %}
|
||
|
<div>
|
||
|
<a href="/view/page/{{page}}">{{page}}</a>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
|
||
|
{% endblock %}
|