aboutsummaryrefslogtreecommitdiff
path: root/cherry_lesana/data
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-10-29 14:54:38 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-10-29 14:54:38 +0100
commit7163dfa3d0252067de90e8c088ea90d0b0f7d059 (patch)
tree11fa27982ff2c328435a128df3a8ab44b25593f7 /cherry_lesana/data
parenta5fbd781ccc9b64483cc499c375fa6e0e99ade1d (diff)
Load a collection from command line and show a list of items
Diffstat (limited to 'cherry_lesana/data')
-rw-r--r--cherry_lesana/data/static/style.css0
-rw-r--r--cherry_lesana/data/templates/base.html14
-rw-r--r--cherry_lesana/data/templates/list.html10
3 files changed, 24 insertions, 0 deletions
diff --git a/cherry_lesana/data/static/style.css b/cherry_lesana/data/static/style.css
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/cherry_lesana/data/static/style.css
diff --git a/cherry_lesana/data/templates/base.html b/cherry_lesana/data/templates/base.html
new file mode 100644
index 0000000..232a76e
--- /dev/null
+++ b/cherry_lesana/data/templates/base.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{% block title %}{% endblock %}</title>
+ <link rel="stylesheet" href="/static/style.css" />
+ {% block head %}
+ {% endblock %}
+ </head>
+ <body>
+ <div id="content">{% block content %}{% endblock %}</div>
+ <div id="footer">
+ </div>
+ </body>
+</html>
diff --git a/cherry_lesana/data/templates/list.html b/cherry_lesana/data/templates/list.html
new file mode 100644
index 0000000..2fbe14c
--- /dev/null
+++ b/cherry_lesana/data/templates/list.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% block title %}CherryLesana{% endblock %}
+{% block content %}
+<h1>{{ collection.settings.name }}</h1>
+<ul>
+ {% for item in items %}
+ <li>{{ item }}</li>
+ {% endfor %}
+</ul>
+{% endblock %}