diff --git a/src/Module/Settings/Addons.php b/src/Module/Settings/Addons.php index 4212b72150..b1bbecff59 100644 --- a/src/Module/Settings/Addons.php +++ b/src/Module/Settings/Addons.php @@ -60,7 +60,7 @@ class Addons extends BaseSettings '$addon' => $data['addon'], '$title' => $data['title'], '$open' => ($this->parameters['addon'] ?? '') === $data['addon'], - '$html' => $data['html'] ?? '', + '$html' => $data['html'] ?? '', '$submit' => $data['submit'] ?? $this->t('Save Settings'), ]); } @@ -68,10 +68,10 @@ class Addons extends BaseSettings $tpl = Renderer::getMarkupTemplate('settings/addons.tpl'); return Renderer::replaceMacros($tpl, [ - '$form_security_token' => BaseSettings::getFormSecurityToken('settings_addon'), - '$title' => $this->t('Addon Settings'), - '$no_addons_settings_configured' => $this->t('No Addon settings configured'), - '$addon_settings_forms' => $addon_settings_forms, + '$form_security_token' => BaseSettings::getFormSecurityToken('settings_addon'), + '$title' => $this->t('Addon Settings'), + '$no_addon_settings_configured' => $this->t('None of the addons installed on this server have any settings.'), + '$addon_settings_forms' => $addon_settings_forms, ]); } } diff --git a/src/Module/Settings/OAuth.php b/src/Module/Settings/OAuth.php index 12737599ab..7875a89cb7 100644 --- a/src/Module/Settings/OAuth.php +++ b/src/Module/Settings/OAuth.php @@ -59,6 +59,7 @@ class OAuth extends BaseSettings '$website' => $this->t('Home Page'), '$created_at' => $this->t('Created'), '$delete' => $this->t('Remove authorization'), + '$no_connected_apps' => $this->t('You have no connected apps.'), '$apps' => $applications, ]); } diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index 0721106fc9..684a68cec6 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2025.07-rc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-06-21 13:03+0200\n" +"POT-Creation-Date: 2025-06-21 14:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -9545,7 +9545,7 @@ msgid "Addon Settings" msgstr "" #: src/Module/Settings/Addons.php:73 -msgid "No Addon settings configured" +msgid "None of the addons installed on this server have any settings." msgstr "" #: src/Module/Settings/Channels.php:134 @@ -10180,6 +10180,10 @@ msgstr "" msgid "Remove authorization" msgstr "" +#: src/Module/Settings/OAuth.php:62 +msgid "You have no connected apps." +msgstr "" + #: src/Module/Settings/Profile/Index.php:126 msgid "Display Name is required." msgstr "" diff --git a/view/templates/settings/oauth.tpl b/view/templates/settings/oauth.tpl index 227646630c..66147d7255 100644 --- a/view/templates/settings/oauth.tpl +++ b/view/templates/settings/oauth.tpl @@ -6,31 +6,35 @@ *}}

{{$title}}

-
- - - - - - - - - - - - {{foreach $apps as $app}} - - - - - - - {{/foreach}} - -
{{$name}}{{$website}}{{$created_at}}
{{$app.name}}{{$app.website}}{{$app.created_at}} - -
-
+ {{if !$apps}} + {{$no_connected_apps}} + {{else}} +
+ + + + + + + + + + + + {{foreach $apps as $app}} + + + + + + + {{/foreach}} + +
{{$name}}{{$website}}{{$created_at}}
{{$app.name}}{{$app.website}}{{$app.created_at}} + +
+
+ {{/if}}
diff --git a/view/theme/frio/templates/settings/addons.tpl b/view/theme/frio/templates/settings/addons.tpl index df90740d43..205d908d1b 100644 --- a/view/theme/frio/templates/settings/addons.tpl +++ b/view/theme/frio/templates/settings/addons.tpl @@ -15,7 +15,7 @@ {{$addon_settings_form nofilter}} {{foreachelse}} - + {{$no_addon_settings_configured}} {{/foreach}} diff --git a/view/theme/frio/templates/settings/oauth.tpl b/view/theme/frio/templates/settings/oauth.tpl index 1d8ff8fe78..637fe23412 100644 --- a/view/theme/frio/templates/settings/oauth.tpl +++ b/view/theme/frio/templates/settings/oauth.tpl @@ -7,31 +7,36 @@
{{* include the title template for the settings title *}} {{include file="section_title.tpl" title=$title}} -
- - - - - - - - - - - - {{foreach $apps as $app}} - - - - - - - {{/foreach}} - -
{{$name}}{{$website}}{{$created_at}}
{{$app.name}}{{$app.website}}{{$app.created_at}} - -
-
+ + {{if !$apps}} + {{$no_connected_apps}} + {{else}} +
+ + + + + + + + + + + + {{foreach $apps as $app}} + + + + + + + {{/foreach}} + +
{{$name}}{{$website}}{{$created_at}}
{{$app.name}}{{$app.website}}{{$app.created_at}} + +
+
+ {{/if}}