[add] page which lists entries for a tag

This commit is contained in:
Nicolas Lœuillet
2013-12-06 14:22:29 +01:00
parent 74ec445a66
commit 4886ed6d36
6 changed files with 65 additions and 3 deletions

View File

@ -437,6 +437,14 @@ class Poche
'tags' => $tags,
);
break;
case 'tag':
$entries = $this->store->retrieveEntriesByTag($id);
$tag = $this->store->retrieveTag($id);
$tpl_vars = array(
'tag' => $tag,
'entries' => $entries,
);
break;
case 'tags':
$tags = $this->store->retrieveAllTags();
$tpl_vars = array(