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" %} |
{% extends "layouts/default.html" %} |
||||||
{% block title %}View page.{% endblock %} |
{% block title %}View page.{% endblock %} |
||||||
{% block content %} |
{% block content %} |
||||||
<div> |
<main> |
||||||
{% if roles.logged-in %} |
{{data | safe}} |
||||||
<a href="/dashboard">Dashboard</a> |
</main> |
||||||
<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> |
|
||||||
{% endblock %} |
{% endblock %} |
||||||
|
Loading…
Reference in new issue