]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fancy URLs should remember page
authorEvan Prodromou <evan@prodromou.name>
Sun, 15 Jun 2008 03:50:12 +0000 (23:50 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 15 Jun 2008 03:50:12 +0000 (23:50 -0400)
darcs-hash:20080615035012-84dde-0450954528a270f46a4ac5d2b077af793ba8c1f3.gz

doc/roadmap
lib/settingsaction.php
lib/util.php

index dcad5e39370adbb23ac3ab7d11a5f4f1e56ff60d..65f2750f05c5d9f61ce25f2a3a171a4fee1cfd26 100644 (file)
@@ -151,10 +151,16 @@ Release 0.4
 + AGPL notification
 - Check licenses of all libraries for compatibility
 - jQuery for as much as possible
+- forward notices to Jabber
+- receive notices from Jabber
+- forward notices to other IM
+- forward notices to mobile phone
+- receive notices from other IM
+- receive notices from mobile phone
 - microid for profile page
 - format times per user
 - timezone preferences in Profile settings
-- email notification on subscriptions
++ email notification on subscriptions
 - content negotiation for interface language
 - user preference for interface language
 - gettext
@@ -167,7 +173,7 @@ Release 0.4
 - content negotiation for encoding
 - If-Modified-Since support
 - Vary
-- site logo
++ site logo
 - check license compatibility for remote subscribe
 - optional FOAF URL in openmicroblogging exchange
 - subscribe/unsubscribe on subscriptions page
@@ -196,8 +202,6 @@ Release 0.5
 - stay logged in between sessions
 - use RSS as a subscription
 - license per attachment
-- forward notices to Jabber
-- receive notices from Jabber
 
 Release 0.6
 -----------
@@ -206,10 +210,6 @@ Release 0.6
 - image notices
 - video notices
 - audio notices
-- forward notices to other IM
-- forward notices to mobile phone
-- receive notices from other IM
-- receive notices from mobile phone
 - machine tags
 
 Release 1.0
index 8f3b1e6be8631c352d2db9588163b8039c1ef495..0255fc6426ba245a9cf83f3af063e20f08848ecd 100644 (file)
@@ -64,6 +64,20 @@ class SettingsAction extends Action {
                                                 _t('Password'), 
                                                 _t('Change your password'),
                                                 $action == 'password');
+               if (false) {
+                       common_menu_item(common_local_url('emailsettings'),
+                                                        _t('Email'),
+                                                        _t('Address and preferences'),
+                                                        $action == 'emailsettings');
+                       common_menu_item(common_local_url('imsettings'),
+                                                        _t('IM'), 
+                                                        _t('Notifications by instant messenger'),
+                                                        $action == 'imsettings');
+                       common_menu_item(common_local_url('phonesettings'),
+                                                        _t('Phone'), 
+                                                        _t('Notifications by phone'),
+                                                        $action == 'phonesettings');
+               }
                common_element_end('ul');
        }
 }
index ff992141e318e7432d34821a75375f1c755145fa..1c6bbaf16ad9ad0b9d539021db73f987f942abf9 100644 (file)
@@ -509,7 +509,11 @@ function common_local_url($action, $args=NULL) {
 function common_fancy_url($action, $args=NULL) {
        switch (strtolower($action)) {
         case 'public':
-               return common_path('');
+               if ($args && $args['page']) {
+                       return common_path('?page=' . $args['page']);
+               } else {
+                       return common_path('');
+               }
         case 'publicrss':
                return common_path('rss');
         case 'doc':
@@ -529,18 +533,27 @@ function common_fancy_url($action, $args=NULL) {
                return common_path('notice/new');
         case 'shownotice':
                return common_path('notice/'.$args['notice']);
-        case 'subscriptions':
-        case 'subscribed':
         case 'xrds':           
-        case 'all':
         case 'foaf':
                return common_path($args['nickname'].'/'.$action);
+        case 'subscriptions':
+        case 'subscribed':
+        case 'all':
+               if ($args && $args['page']) {
+                       return common_path($args['nickname'].'/'.$action.'?page=' . $args['page']);
+               } else {
+                       return common_path($args['nickname'].'/'.$action);
+               }
         case 'allrss':
                return common_path($args['nickname'].'/all/rss');
         case 'userrss':
                return common_path($args['nickname'].'/rss');
         case 'showstream':
-               return common_path($args['nickname']);
+               if ($args && $args['page']) {
+                       return common_path($args['nickname'].'?page=' . $args['page']);
+               } else {
+                       return common_path($args['nickname']);
+               }
         default:
                return common_simple_url($action, $args);
        }