aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Sam Cohen <samc1213@gmail.com> 2023-09-13 14:58:10 -0600
committerGravatar GitHub <noreply@github.com> 2023-09-13 22:58:10 +0200
commit52d87c3eaa352b765e1be3c2c0b9a3ce0bfabdc8 (patch)
tree4443329f7649f9f95e410d201e4b0695455ad039 /app/views
parent0bf33abac8cf83dfece4ccd7f3146c373effae2c (diff)
Allow configuration of Base URL via website (#5656)
* Allow configuration of Base URL via website * Fix alphabetization of CREDITS * Apply suggestions from code review * Add Automatic recommendation --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/system.phtml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/configure/system.phtml b/app/views/configure/system.phtml
index 58879fc7e..fdd3d727e 100644
--- a/app/views/configure/system.phtml
+++ b/app/views/configure/system.phtml
@@ -22,6 +22,15 @@
</div>
<div class="form-group">
+ <label class="group-name" for="base-url"><?= _t('admin.system.base-url') ?></label>
+ <div class="group-controls">
+ <input type="text" id="base-url" name="base-url" value="<?= FreshRSS_Context::$system_conf->base_url ?>"
+ data-leave-validation="<?= FreshRSS_Context::$system_conf->base_url ?>"/>
+ <p class="help"><?= _i('help') ?> <?= _t('admin.system.base-url.recommendation', dirname(Minz_Request::guessBaseUrl())) ?></p>
+ </div>
+ </div>
+
+ <div class="form-group">
<label class="group-name" for="auto-update-url"><?= _t('admin.system.auto-update-url') ?></label>
<div class="group-controls">
<input type="text" id="auto-update-url" name="auto-update-url" value="<?= FreshRSS_Context::$system_conf->auto_update_url ?>"