aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-12-06 14:03:14 +0100
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-12-06 14:03:14 +0100
commit6cab59c3409f4edc9b309b76295cb4061bff3fd0 (patch)
treecca6eced766fcc8bc922e44ad043a193fdcafd01 /themes/default
parent2e2ebe5ec767dcbee90394d12b03298592c87805 (diff)
downloadwallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.tar.gz
wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.tar.zst
wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.zip
[add] edit tags page
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 }}