Browse Source

add /user/pages.html template.

This template displays a list of pages stored in the system in the
/storage directory. It is very rough -- only bare basics to get the
page operational.
stable
Craig Oates 2 years ago
parent
commit
f0356b00f0
  1. 41
      templates/user/pages.html

41
templates/user/pages.html

@ -0,0 +1,41 @@
{% 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>
<a href="/edit/page/{{page}}">Edit</a>
<form action="/page/delete" method="post">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}">
<input required type="hidden" name="TITLE" value="{{page}}">
<input type="submit" value="Delete">
</form>
</div>
{% endfor %}
{% endblock %}
Loading…
Cancel
Save