Browse Source

add 'quicklist' section to multiple HTML templates.

This is a multi-file commit because the code is essentially the
same. Each HTML template has either had a 'quicklist' section added or
had links added to it.

'Quicklist' is just a section with a collection of links to other
parts of the website based on the context of the page/user's current
location.
stable
Craig Oates 2 years ago
parent
commit
5782362136
  1. 123
      templates/user/archive.html
  2. 14
      templates/user/create-archive.html
  3. 20
      templates/user/create-page.html
  4. 24
      templates/user/edit-archive.html
  5. 38
      templates/user/edit-page.html
  6. 125
      templates/user/pages.html
  7. 141
      templates/user/storage.html

123
templates/user/archive.html

@ -2,57 +2,80 @@
{% block title %}Manage the site's archive.{% endblock %}
{% block content %}
<div class="be-main">
<div class="be-dashboard-section">
<h1>Archive Index</h1>
<div class="be-section-controls">
<a class="be-gui-link"
title="Click to add a new archive entry"
href="/create/archive-entry">
<img alt="New Archive Entry"
src="/images/icons/add-circle.png">
Create Entry
</a>
<div class="be-dashboard-section">
<h1>Archive Index</h1>
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
<a class="be-gui-link"
title="Click to add a new archive entry"
href="/create/archive-entry">
<img alt="New Archive Entry"
src="/images/icons/add-circle.png">
Create Entry
</a>
<a class="be-gui-link"
title="Click to view files in Storage"
href="/storage/manage">
<img alt="Storage Index"
src="/images/icons/index.png">
Storage Index
</a>
<a class="be-gui-link"
title="Click to view your Pages Index"
href="/user/pages">
<img alt="Pages Index"
src="/images/icons/index.png">
Pages Index
</a>
</div>
<div class="be-section-entries">
{% for entry in archive-entries %}
<div class="be-section-entry">
<div class="be-section-image-title">
<img alt="{{entry.title}}"
src="/storage/thumb/archive/{{entry.slug}}">
<p>{{entry.title}}</p>
</div>
<div class="be-section-entries">
{% for entry in archive-entries %}
<div class="be-section-entry">
<div class="be-section-image-title">
<img alt="{{entry.title}}"
src="/storage/thumb/archive/{{entry.slug}}">
<p>{{entry.title}}</p>
</div>
<div class="be-entry-controls">
<a class="be-gui-link-no-text"
href="/view/archive/{{entry.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/view-entry.png">
</a>
<a class="be-gui-link-no-text"
href="/edit/archive/{{entry.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/edit-entry.png">
</a>
{% if roles.administrator %}
<form action="/archive/delete/entry"
method="post">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required type="hidden"
name="slug"
value="{{entry.slug}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{entry.title}}'"
type="submit">
<img alt="Rename {{entry.title}}"
src="/images/icons/delete-entry.png">
</button>
</form>
{% endif %}
</div>
</div>
{% endfor %}
<div class="be-entry-controls">
<a class="be-gui-link-no-text"
href="/view/archive/{{entry.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/view-entry.png">
</a>
<a class="be-gui-link-no-text"
href="/edit/archive/{{entry.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/edit-entry.png">
</a>
{% if roles.administrator %}
<form action="/archive/delete/entry"
method="post">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required type="hidden"
name="slug"
value="{{entry.slug}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{entry.title}}'"
type="submit">
<img alt="Rename {{entry.title}}"
src="/images/icons/delete-entry.png">
</button>
</form>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}

14
templates/user/create-archive.html

@ -5,6 +5,13 @@
<h1>Create Archive Entry</h1>
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
<a class="be-gui-link"
title="Click to view all archive entries stored on the system"
href="/user/archive">
@ -19,6 +26,13 @@
src="/images/icons/index.png">
Storage Index
</a>
<a class="be-gui-link"
title="Click to view your Pages Index"
href="/user/pages">
<img alt="Pages Index"
src="/images/icons/index.png">
Pages Index
</a>
</div>
<script src="/js/tinymce/tinymce.min.js" referrerpolicy="origin"></script>

20
templates/user/create-page.html

@ -5,9 +5,16 @@
<h1>Create Page</h1>
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view all pages stored on the system"
href="/user/pages">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
<a class="be-gui-link"
title="Click to view all pages stored on the system"
href="/user/pages">
<img alt="Pages Index"
src="/images/icons/index.png">
Pages Index
@ -19,6 +26,13 @@
src="/images/icons/index.png">
Storage Index
</a>
<a class="be-gui-link"
title="Click to view all archive entries stored on the system"
href="/user/archive">
<img alt="Archive Index"
src="/images/icons/index.png">
Archive Index
</a>
</div>
<script src="/js/tinymce/tinymce.min.js" referrerpolicy="origin"></script>

24
templates/user/edit-archive.html

@ -5,6 +5,13 @@
<h1>Edit Archive Entry</h1>
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
<a class="be-gui-link"
title="Click to view '{{db-data.title}}'"
href="/view/archive/{{db-data.slug}}">
@ -12,6 +19,13 @@
src="/images/icons/view-entry.png">
View Entry
</a>
<a class="be-gui-link"
title="Click to add a new archive entry"
href="/create/archive-entry">
<img alt="New Archive Entry"
src="/images/icons/add-circle.png">
Create Entry
</a>
<a class="be-gui-link"
title="Click to view all archive entries stored on the system"
href="/user/archive">
@ -27,11 +41,11 @@
Storage Index
</a>
<a class="be-gui-link"
title="Click to add a new archive entry"
href="/create/archive-entry">
<img alt="New Archive Entry"
src="/images/icons/add-circle.png">
Create Entry
title="Click to view your Pages Index"
href="/user/pages">
<img alt="Pages Index"
src="/images/icons/index.png">
Pages Index
</a>
</div>

38
templates/user/edit-page.html

@ -5,16 +5,30 @@
<h1>Edit Page</h1>
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view '{{db-data.title}}'"
href="/view/page/{{db-data.slug}}">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
<a class="be-gui-link"
title="Click to view '{{db-data.title}}'"
href="/view/page/{{db-data.slug}}">
<img alt="View Page"
src="/images/icons/view-entry.png">
View Page
</a>
<a class="be-gui-link"
title="Click to view all pages stored on the system"
href="/user/pages">
</a>
<a class="be-gui-link"
title="Click to create a new page"
href="/create/page">
<img alt="New Page"
src="/images/icons/add-circle.png">
Create Page
</a>
<a class="be-gui-link"
title="Click to view all pages stored on the system"
href="/user/pages">
<img alt="Pages Index"
src="/images/icons/index.png">
Pages Index
@ -27,11 +41,11 @@
Storage Index
</a>
<a class="be-gui-link"
title="Click to create a new page"
href="/create/page">
<img alt="New Page"
src="/images/icons/add-circle.png">
Create Page
title="Click to view all archive entries stored on the system"
href="/user/archive">
<img alt="Archive Index"
src="/images/icons/index.png">
Archive Index
</a>
</div>

125
templates/user/pages.html

@ -2,57 +2,82 @@
{% block title %}A list of the site's pages.{% endblock %}
{% block content %}
<div class="be-main">
<div class="be-dashboard-section">
<h1>Pages Index</h1>
<div class="be-section-controls">
<a class="be-gui-link"
title="Click to create a new page"
href="/create/page">
<img alt="Create New Page"
src="/images/icons/add-circle.png">
Add Page
</a>
</div>
<div class="be-section-entries">
{% for page in pages %}
{% if page.can-delete == 1 %}
<div class="be-section-entry">
<p>{{page.title}}</p>
<div class="be-entry-controls">
<a class="be-gui-link-no-text"
title="Click to view '{{page.title}}'"
href="/view/page/{{page.slug}}">
<img alt="{{page.title}}"
src="/images/icons/view-entry.png">
</a>
<a class="be-gui-link-no-text"
href="/edit/page/{{page.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/edit-entry.png">
</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}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{entry.title}}'"
type="submit">
<img alt="Rename {{entry.title}}"
src="/images/icons/delete-entry.png">
</button>
</form>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
<div class="be-dashboard-section">
<h1>Pages Index</h1>
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
<a class="be-gui-link"
title="Click to create a new page"
href="/create/page">
<img alt="New Page"
src="/images/icons/add-circle.png">
Create Page
</a>
<a class="be-gui-link"
title="Click to view files in Storage"
href="/storage/manage">
<img alt="Storage Index"
src="/images/icons/index.png">
Storage Index
</a>
<a class="be-gui-link"
title="Click to view all archive entries stored on the system"
href="/user/archive">
<img alt="Archive Index"
src="/images/icons/index.png">
Archive Index
</a>
</div>
<div class="be-section-entries">
{% for page in pages %}
{% if page.can-delete == 1 %}
<div class="be-section-entry">
<p>{{page.title}}</p>
<div class="be-entry-controls">
<a class="be-gui-link-no-text"
title="Click to view '{{page.title}}'"
href="/view/page/{{page.slug}}">
<img alt="{{page.title}}"
src="/images/icons/view-entry.png">
</a>
<a class="be-gui-link-no-text"
href="/edit/page/{{page.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/edit-entry.png">
</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}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{entry.title}}'"
type="submit">
<img alt="Rename {{entry.title}}"
src="/images/icons/delete-entry.png">
</button>
</form>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}

141
templates/user/storage.html

@ -1,77 +1,100 @@
{% extends "layouts/default.html" %}
{% block title %}Manage you archive.{% endblock %}
{% block content %}
<div>
<div class="be-main">
<h1>Storage Index</h1>
<div class="be-storage-section-upload">
<form action="/storage/multi-upload"
method="POST"
enctype="multipart/form-data">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required
type="file"
name="STORAGE-FILES"
multiple>
<!-- <input type="submit" value="Upload Files"/> -->
<button class="be-gui-button-no-text"
title="Click to upload files to storage"
type="submit">
<img alt="Upload to Storage"
src="/images/icons/up-arrow.png">
</button>
</form>
</div>
</div>
<div class="be-storage-section">
{% for item in files %}
<div class="be-storage-entry">
<img class="file-thumbnail" src="{{ item | build-thumbnail-path }}" alt="{{item.name}}">
<a class="be-gui-link-no-text"
title="Click to view '{{item.name}}'"
href="/storage/view/media/{{item.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/view-entry.png">
<div class="be-quicklist">
<a class="be-gui-link"
title="Click to view your Dashboard"
href="/dashboard">
<img alt="Dashboard"
src="/images/icons/dashboard.png">
View Dashboard
</a>
{% if roles.administrator %}
<form class="be-storage-rename"
action="/storage/rename/{{item.slug}}"
method="POST">
<a class="be-gui-link"
title="Click to view your Archive Index"
href="/user/archive">
<img alt="Archive Index"
src="/images/icons/index.png">
Archive Index
</a>
<a class="be-gui-link"
title="Click to view your Pages Index"
href="/user/pages">
<img alt="Pages Index"
src="/images/icons/index.png">
Pages Index
</a>
</div>
<div class="be-storage-section-upload">
<form action="/storage/multi-upload"
method="POST"
enctype="multipart/form-data">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required
type="text"
name="NEW-FILE-NAME"
value="{{item.name}}">
type="file"
name="STORAGE-FILES"
multiple>
<button class="be-gui-button-no-text"
title="Click to rename '{{item.name}}'"
type="submit">
<img alt="Rename {{item.name}}"
src="/images/icons/edit-entry.png">
</button>
</form>
<form class="be-storage-delete"
action="/storage/delete/{{item.slug}}"
method="POST">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{item.name}}'"
title="Click to upload files to storage"
type="submit">
<img alt="Delete {{item.name}}"
src="/images/icons/delete-entry.png">
<img alt="Upload to Storage"
src="/images/icons/up-arrow.png">
</button>
</form>
{% endif %}
</div>
{% endfor %}
<div class="be-storage-section">
{% for item in files %}
<div class="be-storage-entry">
<img class="file-thumbnail" src="{{ item | build-thumbnail-path }}" alt="{{item.name}}">
<a class="be-gui-link-no-text"
title="Click to view '{{item.name}}'"
href="/storage/view/media/{{item.slug}}">
<img alt="{{entry.title}}"
src="/images/icons/view-entry.png">
</a>
{% if roles.administrator %}
<form class="be-storage-rename"
action="/storage/rename/{{item.slug}}"
method="POST">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required
type="text"
name="NEW-FILE-NAME"
value="{{item.name}}">
<button class="be-gui-button-no-text"
title="Click to rename '{{item.name}}'"
type="submit">
<img alt="Rename {{item.name}}"
src="/images/icons/save.png">
</button>
</form>
<form class="be-storage-delete"
action="/storage/delete/{{item.slug}}"
method="POST">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{item.name}}'"
type="submit">
<img alt="Delete {{item.name}}"
src="/images/icons/delete-entry.png">
</button>
</form>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endblock %}

Loading…
Cancel
Save