aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Router.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-25 15:59:01 +0100
committerArthurHoaro <arthur@hoa.ro>2017-05-25 15:25:04 +0200
commitaa4797ba3679b847adc895e2f817ac058779a171 (patch)
treed854a1ab8748911dd10e8bced31a2d9b80ccf57b /application/Router.php
parentbc988eb0420156219fdeb7af684fff37c8b33f4b (diff)
downloadShaarli-aa4797ba3679b847adc895e2f817ac058779a171.tar.gz
Shaarli-aa4797ba3679b847adc895e2f817ac058779a171.tar.zst
Shaarli-aa4797ba3679b847adc895e2f817ac058779a171.zip
Adds a taglist view with edit/delete buttons
* The tag list can be sort alphabetically or by most used tag * Edit/Delete are perform using AJAX, or fallback to 'do=changetag' page * New features aren't backported to vintage theme
Diffstat (limited to 'application/Router.php')
-rw-r--r--application/Router.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/Router.php b/application/Router.php
index f6896b1c..4df0387c 100644
--- a/application/Router.php
+++ b/application/Router.php
@@ -13,6 +13,8 @@ class Router
13 13
14 public static $PAGE_TAGCLOUD = 'tagcloud'; 14 public static $PAGE_TAGCLOUD = 'tagcloud';
15 15
16 public static $PAGE_TAGLIST = 'taglist';
17
16 public static $PAGE_DAILY = 'daily'; 18 public static $PAGE_DAILY = 'daily';
17 19
18 public static $PAGE_FEED_ATOM = 'atom'; 20 public static $PAGE_FEED_ATOM = 'atom';
@@ -79,6 +81,10 @@ class Router
79 return self::$PAGE_TAGCLOUD; 81 return self::$PAGE_TAGCLOUD;
80 } 82 }
81 83
84 if (startsWith($query, 'do='. self::$PAGE_TAGLIST)) {
85 return self::$PAGE_TAGLIST;
86 }
87
82 if (startsWith($query, 'do='. self::$PAGE_OPENSEARCH)) { 88 if (startsWith($query, 'do='. self::$PAGE_OPENSEARCH)) {
83 return self::$PAGE_OPENSEARCH; 89 return self::$PAGE_OPENSEARCH;
84 } 90 }