From c89d7f92f6eeb687649ae479e8e29693d02e4a24 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 28 Mar 2020 15:12:50 +0100 Subject: [PATCH] Dashboard: Merge s9y and plugin update notifications. Display either or both in one section. Set dashboard_widget class to aid formatting. Signed-off-by: Thomas Hochstein --- templates/2k11/admin/overview.inc.tpl | 47 ++++++++++----------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/templates/2k11/admin/overview.inc.tpl b/templates/2k11/admin/overview.inc.tpl index 8306b7a72..314b355e4 100644 --- a/templates/2k11/admin/overview.inc.tpl +++ b/templates/2k11/admin/overview.inc.tpl @@ -13,37 +13,26 @@
{/if} - {if $updateCheck == "stable" || $updateCheck == "beta"} - {if $curVersion == -1} -
-

{$CONST.UPDATE_NOTIFICATION}

- - {$CONST.UPDATE_FAILMSG} -
- - {$token} - -
-
-
- {else if $update} -
-

{$CONST.UPDATE_NOTIFICATION}

- - {$CONST.NEW_VERSION_AVAILABLE} {$curVersion|escape} - {$updateButton} -
-
- {/if} - {/if} - - {if $pluginUpdates} -
+ {if (($updateCheck == "stable" || $updateCheck == "beta") && ($curVersion == -1 || $update)) || $pluginUpdates} +

{$CONST.UPDATE_NOTIFICATION}

- - {$pluginUpdates|escape} + {if $updateCheck == "stable" || $updateCheck == "beta"} + {if $curVersion == -1} + {$CONST.UPDATE_FAILMSG} +
+ + {$token} + +
+ {else if $update} + {$CONST.NEW_VERSION_AVAILABLE} {$curVersion|escape} + {$updateButton} + {/if} + {/if} + {if $pluginUpdates} + {$pluginUpdates} + {/if}
-
{/if} {if $no_create !== true}