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.
21 lines
630 B
21 lines
630 B
{% extends "layouts/default.html" %} |
|
{% block title %}A list of the site's pages.{% endblock %} |
|
{% block content %} |
|
<h1>Pages</h1> |
|
{% for page in pages %} |
|
{% if page.can-delete == 1 %} |
|
<div> |
|
<a href="/view/page/{{page.slug}}">{{page.title}}</a> |
|
<a href="/edit/page/{{page.slug}}">Edit</a> |
|
{% if roles.administrator %} |
|
<form action="/page/delete" method="post"> |
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input required type="hidden" name="slug" value="{{page.slug}}"> |
|
<input type="submit" value="Delete"> |
|
</form> |
|
{% endif %} |
|
</div> |
|
{% endif %} |
|
{% endfor %} |
|
|
|
{% endblock %}
|
|
|