November 2018
Intermediate to advanced
404 pages
10h 16m
English
The main.stencil file contains the template for displaying all journal entries in a single page:
{% include "header.stencil" %}[ <a class="fas fa-plus-square" href="/journal/create"> Add New Entry</a> ]<P>{% for entry in entries %}<!--Section {{ forloop.counter0 }}--><section class="sec{{ forloop.counter0 }}" id="sec{{ forloop.counter0 }}"><div class="Container entry"><h2>{{ entry.title }}</h2>{{ entry.content }}<BR> [ ID: {{ entry.id }}: <a class="fas fa-edit" href="/journal/get/{{ forloop.counter0 }}"> Edit</a>| <a class="fas fa-trash-alt" href="/journal/remove/{{ forloop.counter0 }}"> Remove</a> ]</div></section>{% endfor %}Total: {{ count }};{% include "footer.stencil" %}
The new main template replaces the Edit and Remove ...
Read now
Unlock full access