From 2eb5a432d2229788ce2fdb09f36c6f4bebdea813 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 7 Feb 2020 09:44:59 +0100 Subject: Initial commit --- templates/index.twig | 13 +++++++++++++ templates/macros.twig | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ templates/new_note.twig | 5 +++++ templates/note.twig | 15 +++++++++++++++ templates/search.twig | 23 +++++++++++++++++++++++ templates/skeleton.twig | 35 ++++++++++++++++++++++++++++++++++ 6 files changed, 141 insertions(+) create mode 100644 templates/index.twig create mode 100644 templates/macros.twig create mode 100644 templates/new_note.twig create mode 100644 templates/note.twig create mode 100644 templates/search.twig create mode 100644 templates/skeleton.twig (limited to 'templates') diff --git a/templates/index.twig b/templates/index.twig new file mode 100644 index 0000000..7f905ee --- /dev/null +++ b/templates/index.twig @@ -0,0 +1,13 @@ +{% extends "skeleton.twig" %} +{% import "macros.twig" as macros %} + +{% block body %} + {% if tagcloud %} +
+

Tagcloud

+ {{ macros.tagcloud(tagcloud) }} +
+ {% endif %} + + {{ macros.new_note() }} +{% endblock %} diff --git a/templates/macros.twig b/templates/macros.twig new file mode 100644 index 0000000..dc7e721 --- /dev/null +++ b/templates/macros.twig @@ -0,0 +1,50 @@ +{% macro taglink(tag) %} + {{ tag }} +{% endmacro %} + +{% macro tagcloud(tagcloud) %} + +{% endmacro %} + +{% macro searchbox(query="") %} +
+ + +
+{% endmacro %} + +{% macro note_form_content(note) %} +
+ +
+ +
+
+
+ Tags + {% for tag in note.tags %} + + {% endfor %} + {% for i in 0..10 %} + + {% endfor %} +
+{% endmacro %} + +{% macro new_note() %} +
+

New Note

+
+ {{ _self.note_form_content({}) }} + +
+
+{% endmacro %} \ No newline at end of file diff --git a/templates/new_note.twig b/templates/new_note.twig new file mode 100644 index 0000000..df9a320 --- /dev/null +++ b/templates/new_note.twig @@ -0,0 +1,5 @@ +{% extends "skeleton.twig" %} +{% import "macros.twig" as macros %} +{% block body %} + {{ macros.new_note() }} +{% endblock %} \ No newline at end of file diff --git a/templates/note.twig b/templates/note.twig new file mode 100644 index 0000000..14989aa --- /dev/null +++ b/templates/note.twig @@ -0,0 +1,15 @@ +{% extends "skeleton.twig" %} +{% import "macros.twig" as macros %} +{% block body %} +
+ {{ macros.note_form_content(note) }} + + +
+{% endblock %} \ No newline at end of file diff --git a/templates/search.twig b/templates/search.twig new file mode 100644 index 0000000..be8ce54 --- /dev/null +++ b/templates/search.twig @@ -0,0 +1,23 @@ +{% extends "skeleton.twig" %} +{% import "macros.twig" as macros %} + +{% block body %} + {% if error %} +
{{ error }}
+ {% else %} + + {% endif %} + +{% endblock %} diff --git a/templates/skeleton.twig b/templates/skeleton.twig new file mode 100644 index 0000000..e91223f --- /dev/null +++ b/templates/skeleton.twig @@ -0,0 +1,35 @@ + +{% import "macros.twig" as macros %} + + +{% block head %} + + + + + + + + + {% block title %}micropoly{% endblock %} +{% endblock %} + + + {% block header %} +
+ + +
+ {% endblock %} + {% block body %} + {% endblock %} + + \ No newline at end of file -- cgit v1.2.3-70-g09d2