Browse Source
It was getting out of hand and difficult to navigate around the pages when viewing them in the browser.stable
Craig Oates
2 years ago
9 changed files with 35 additions and 115 deletions
@ -1,32 +1,7 @@
|
||||
{% extends "layouts/default.html" %} |
||||
{% block title %}View page.{% endblock %} |
||||
{% block content %} |
||||
<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="/user/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 %} |
||||
<main> |
||||
{{data | safe}} |
||||
</main> |
||||
</div> |
||||
<main> |
||||
{{data | safe}} |
||||
</main> |
||||
{% endblock %} |
||||
|
Loading…
Reference in new issue