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. 25
      templates/user/archive.html
  2. 14
      templates/user/create-archive.html
  3. 14
      templates/user/create-page.html
  4. 24
      templates/user/edit-archive.html
  5. 24
      templates/user/edit-page.html
  6. 31
      templates/user/pages.html
  7. 35
      templates/user/storage.html

25
templates/user/archive.html

@ -4,7 +4,15 @@
<div class="be-main">
<div class="be-dashboard-section">
<h1>Archive Index</h1>
<div class="be-section-controls">
<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">
@ -12,7 +20,22 @@
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">

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>

14
templates/user/create-page.html

@ -5,6 +5,13 @@
<h1>Create Page</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 pages stored on the system"
href="/user/pages">
@ -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>

24
templates/user/edit-page.html

@ -5,6 +5,13 @@
<h1>Edit Page</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/page/{{db-data.slug}}">
@ -12,6 +19,13 @@
src="/images/icons/view-entry.png">
View Page
</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">
@ -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>

31
templates/user/pages.html

@ -4,15 +4,40 @@
<div class="be-main">
<div class="be-dashboard-section">
<h1>Pages Index</h1>
<div class="be-section-controls">
<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="Create New Page"
<img alt="New Page"
src="/images/icons/add-circle.png">
Add Page
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 %}

35
templates/user/storage.html

@ -1,9 +1,33 @@
{% extends "layouts/default.html" %}
{% block title %}Manage you archive.{% endblock %}
{% block content %}
<div>
<div class="be-main">
<h1>Storage 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 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"
@ -16,7 +40,6 @@
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">
@ -25,9 +48,8 @@
</button>
</form>
</div>
</div>
<div class="be-storage-section">
<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}}">
@ -53,7 +75,7 @@
title="Click to rename '{{item.name}}'"
type="submit">
<img alt="Rename {{item.name}}"
src="/images/icons/edit-entry.png">
src="/images/icons/save.png">
</button>
</form>
<form class="be-storage-delete"
@ -73,5 +95,6 @@
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endblock %}

Loading…
Cancel
Save