diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-29 18:41:34 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-29 18:41:34 -0800 |
commit | 8c87f32b381ec0be066cdd0e6ca4fe50079bbd16 (patch) | |
tree | 945ee8080a92c1d7124034f7946583d375402b2a /Zotlabs | |
parent | 0cf6c6c132dda695853ce52089f6745a9c4b29dc (diff) | |
download | volse-hubzilla-8c87f32b381ec0be066cdd0e6ca4fe50079bbd16.tar.gz volse-hubzilla-8c87f32b381ec0be066cdd0e6ca4fe50079bbd16.tar.bz2 volse-hubzilla-8c87f32b381ec0be066cdd0e6ca4fe50079bbd16.zip |
This isn't the most elegant solution as it requires a bit of arcane knowledge, but provide a way to step through connections with a specific tab/panel open in the connection editor. It does not close the default panel, but merely opens the one specified by a §ion= URL parameter (closing the default panel would require a major refactoring of the default panel logic). Valid choices for section currently are affinity, filter, and perms. This tab/panel selection should persist across form posting and 'prev/next'.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Connedit.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Siteinfo.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 47e1ce167..5968ccde6 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -398,6 +398,7 @@ class Connedit extends \Zotlabs\Web\Controller { return login(); } + $section = ((array_key_exists('section',$_REQUEST)) ? $_REQUEST['section'] : ''); $channel = \App::get_channel(); $my_perms = get_channel_default_perms(local_channel()); $role = get_pconfig(local_channel(),'system','permissions_role'); @@ -779,6 +780,7 @@ class Connedit extends \Zotlabs\Web\Controller { '$header' => (($self) ? t('Connection Default Permissions') : sprintf( t('Connection: %s'),$contact['xchan_name'])), '$autoperms' => array('autoperms',t('Apply these permissions automatically'), ((get_pconfig(local_channel(),'system','autoperms')) ? 1 : 0), t('Connection requests will be approved without your interaction'), $yes_no), '$addr' => $contact['xchan_addr'], + '$section' => $section, '$addr_text' => t('This connection\'s primary address is'), '$loc_text' => t('Available locations:'), '$locstr' => $locstr, diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php index 61d08a2e7..461db1752 100644 --- a/Zotlabs/Module/Siteinfo.php +++ b/Zotlabs/Module/Siteinfo.php @@ -28,7 +28,7 @@ class Siteinfo extends \Zotlabs\Web\Controller { '$prj_header' => t('Software and Project information'), '$prj_name' => t('This site is powered by $Projectname'), '$prj_transport' => t('Federated and decentralised networking and identity services provided by Zot'), - '$transport_link' => 'http://zotlabs.com', + '$transport_link' => '<a href="http://zotlabs.com">http://zotlabs.com</a>', '$prj_version' => ((get_config('system','hidden_version_siteinfo')) ? '' : sprintf( t('Version %s'), \Zotlabs\Lib\System::get_project_version())), '$prj_linktxt' => t('Project homepage'), '$prj_srctxt' => t('Developer homepage'), |