aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-06-13 22:40:28 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-13 22:40:28 +0200
commit3fe68a3285e0a9f5268a64414cd6e7bb2aa8f178 (patch)
tree333495dfd955c2f1cb2805a813e2e73c550ce236 /app
parent3d9e0c47ecb19fea4f194d3a4a81d7d931e2bc0b (diff)
Allow deep link to extension configuration (#5449)
* Allow deep link to extension configuration Full screen * Support slider * Add aside_configure Fix https://github.com/FreshRSS/FreshRSS/pull/5449#issuecomment-1588089769
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/extensionController.php2
-rw-r--r--app/views/helpers/extension/configure.phtml9
2 files changed, 8 insertions, 3 deletions
diff --git a/app/Controllers/extensionController.php b/app/Controllers/extensionController.php
index 4b440327d..a5eec8f21 100644
--- a/app/Controllers/extensionController.php
+++ b/app/Controllers/extensionController.php
@@ -80,7 +80,7 @@ class FreshRSS_extension_Controller extends FreshRSS_ActionController {
public function configureAction(): void {
if (Minz_Request::paramBoolean('ajax')) {
$this->view->_layout(null);
- } else {
+ } elseif (Minz_Request::paramBoolean('slider')) {
$this->indexAction();
$this->view->_path('extension/index.phtml');
}
diff --git a/app/views/helpers/extension/configure.phtml b/app/views/helpers/extension/configure.phtml
index 34da8a535..e3a6b1b0c 100644
--- a/app/views/helpers/extension/configure.phtml
+++ b/app/views/helpers/extension/configure.phtml
@@ -1,4 +1,9 @@
-<?php /** @var FreshRSS_View $this */ ?>
+<?php
+ /** @var FreshRSS_View $this */
+ if (!Minz_Request::paramBoolean('ajax')) {
+ $this->partial('aside_configure');
+ }
+?>
<div class="post">
<h2>
<?= $this->extension->getName() ?> (<?= $this->extension->getVersion() ?>) —
@@ -11,7 +16,7 @@
<form id="form-extension" method="post">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<div class="form-group form-actions">
- <div class="group-controls">
+ <div class="group-controls">
<button class="btn btn-attention confirm" form="form-extension" formaction="<?= _url('extension', 'remove', 'e', urlencode($this->extension->getName())) ?>"><?= _t('gen.action.remove') ?></button>
</div>
</div>