summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-09-04 11:11:31 +0100
committerlsces <lester@lsces.co.uk>2025-09-04 11:11:31 +0100
commitae6f3235397c3e13e835d6eff9d2047ea6acf9f4 (patch)
treef2fb03b92c75b3a7424fe633a9b94d1e7d199e69 /templates
parent83c5cbfacee24f14e8f446674c85cf797c51aa36 (diff)
downloadkernel-ae6f3235397c3e13e835d6eff9d2047ea6acf9f4.tar.gz
kernel-ae6f3235397c3e13e835d6eff9d2047ea6acf9f4.tar.bz2
kernel-ae6f3235397c3e13e835d6eff9d2047ea6acf9f4.zip
Modernize code with defaults and code style.
Diffstat (limited to 'templates')
-rwxr-xr-x[-rw-r--r--]templates/admin_server.tpl8
-rwxr-xr-x[-rw-r--r--]templates/admin_sitemaps.tpl2
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/admin_server.tpl b/templates/admin_server.tpl
index aa31686..c36c436 100644..100755
--- a/templates/admin_server.tpl
+++ b/templates/admin_server.tpl
@@ -6,7 +6,7 @@
{jstabs}
{jstab title="Server Settings"}
<div class="form-group">
- {formfeedback warning="After changing the browser title, you might have to login again."}
+ {formfeedback warning="After changing the browser title, you might have to login again."}<br/>
{formlabel label="Site title" for="site_title"}
{forminput}
<input class="form-control" type="text" name="site_title" id="site_title" value="{$gBitSystem->getConfig('site_title')|escape}" />
@@ -61,7 +61,7 @@
{jstab title="Miscellaneous"}
<div class="form-group">
- {formfeedback warning="Please make sure you know what you are doing as setting this wrongly could prevent you from logging in again."}
+ {formfeedback warning="Please make sure you know what you are doing as setting this wrongly could prevent you from logging in again."}<br/>
{formlabel label="Server name" for="kernel_server_name"}
{forminput}
<input class="form-control" type="text" name="kernel_server_name" id="kernel_server_name" value="{$gBitSystem->getConfig('kernel_server_name')|escape}" />
@@ -141,13 +141,13 @@
<div class="form-group">
{formlabel label="Message to display when site is closed" for="site_closed_msg"}
{forminput}
- <input type="text" name="site_closed_msg" id="site_closed_msg" value="{$gBitSystem->getConfig('site_closed_msg')|escape}" class="form-control" />
+ <input type="text" name="site_closed_msg" id="site_closed_msg" value="{$gBitSystem->getConfig('site_closed_msg')|default:''|escape}" class="form-control" />
{/forminput}
</div>
<div class="form-group">
{forminput label="checkbox"}
- {html_checkboxes name="site_load_threshold" values="y" checked=$BitSystemPrefs.site_load_threshold labels=false id="site_load_threshold"} {tr}Disallow access when load is above the threshold{/tr}
+ {html_checkboxes name="site_load_threshold" values="y" checked=$BitSystemPrefs.site_load_threshold|default:'' labels=false id="site_load_threshold"} {tr}Disallow access when load is above the threshold{/tr}
{formhelp note="Disallow access when load is above the threshold (except for those with permission)"}
{/forminput}
</div>
diff --git a/templates/admin_sitemaps.tpl b/templates/admin_sitemaps.tpl
index 1dea78f..adc839e 100644..100755
--- a/templates/admin_sitemaps.tpl
+++ b/templates/admin_sitemaps.tpl
@@ -11,7 +11,7 @@
{foreach from=$gSiteMapHash item=mapHash key=package}
<dt>{$package}</dt>
<dd>{tr}URL{/tr}: <a href="{$mapHash.loc}">{$mapHash.loc}</a></dd>
- <dd>{tr}Last Modified{/tr}: {$mapHash.lastMod}</dd>
+ <dd>{tr}Last Modified{/tr}: {$mapHash.lastMod|default:'Not Set'}</dd>
{foreachelse}
<dt>{tr}No sitemaps found.{/tr}</dt>
{/foreach}