aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/edit-tags.twig18
-rw-r--r--themes/default/view.twig2
2 files changed, 19 insertions, 1 deletions
diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig
new file mode 100644
index 00000000..0bd1aba7
--- /dev/null
+++ b/themes/default/edit-tags.twig
@@ -0,0 +1,18 @@
1{% extends "layout.twig" %}
2{% block title %}edit tags{% endblock %}
3{% block menu %}
4{% include '_menu.twig' %}
5{% endblock %}
6{% block content %}
7{% if tags is empty %}
8no tags
9{% endif %}
10<ul>
11{% for tag in tags %}<li>{{ tag.value }} <a href="#">✘</a></li>{% endfor %}
12</ul>
13<form method="post" action="#">
14 <label for="value">New tags: </label><input type="text" id="value" name="value" required="required" />
15 {% trans "you can type several tags, separated by comma" %}<br />
16 <input type="submit" value="add tags" />
17</form>
18{% endblock %} \ No newline at end of file
diff --git a/themes/default/view.twig b/themes/default/view.twig
index 5a7c9165..9f9e23c8 100644
--- a/themes/default/view.twig
+++ b/themes/default/view.twig
@@ -21,7 +21,7 @@
21 <h1>{{ entry.title|raw }}</h1> 21 <h1>{{ entry.title|raw }}</h1>
22 </header> 22 </header>
23 <aside class="tags"> 23 <aside class="tags">
24 tags: {% for tag in tags %}<a href="#">{{ tag.value }}</a> {% endfor %}<a href="#" title="{% trans "edit tags" %}">✎</a> 24 tags: {% for tag in tags %}<a href="#">{{ tag.value }}</a> {% endfor %}<a href="./?&amp;view=edit-tags&amp;id={{ entry.id|e }}" title="{% trans "edit tags" %}">✎</a>
25 </aside> 25 </aside>
26 <article> 26 <article>
27 {{ content | raw }} 27 {{ content | raw }}