aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
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 /inc/poche
parent2e2ebe5ec767dcbee90394d12b03298592c87805 (diff)
downloadwallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.tar.gz
wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.tar.zst
wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.zip
[add] edit tags page
Diffstat (limited to 'inc/poche')
-rw-r--r--inc/poche/Poche.class.php7
-rw-r--r--inc/poche/Tools.class.php3
2 files changed, 10 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 802ec542..5d368842 100644
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -430,6 +430,13 @@ class Poche
430 ); 430 );
431 Tools::logm('config view'); 431 Tools::logm('config view');
432 break; 432 break;
433 case 'edit-tags':
434 # tags
435 $tags = $this->store->retrieveTagsByEntry($id);
436 $tpl_vars = array(
437 'tags' => $tags,
438 );
439 break;
433 case 'tags': 440 case 'tags':
434 $tags = $this->store->retrieveAllTags(); 441 $tags = $this->store->retrieveAllTags();
435 $tpl_vars = array( 442 $tpl_vars = array(
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index 5bb65fe9..9d911699 100644
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -106,6 +106,9 @@ class Tools
106 case 'tags': 106 case 'tags':
107 $tpl_file = 'tags.twig'; 107 $tpl_file = 'tags.twig';
108 break; 108 break;
109 case 'edit-tags':
110 $tpl_file = 'edit-tags.twig';
111 break;
109 case 'view': 112 case 'view':
110 $tpl_file = 'view.twig'; 113 $tpl_file = 'view.twig';
111 break; 114 break;