From a0c8dfa348903745be1484398ae90039d8c29c26 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 16 Nov 2020 21:11:41 +0000 Subject: [PATCH] Tweak information displayed by extensions list so it's aimed more at the end-user rather than the developer --- templates/CRM/Admin/Page/ExtensionDetails.tpl | 25 ++++++++----------- templates/CRM/Admin/Page/Extensions/Main.tpl | 4 +-- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/templates/CRM/Admin/Page/ExtensionDetails.tpl b/templates/CRM/Admin/Page/ExtensionDetails.tpl index dcaa59e829d2..a7535309e882 100644 --- a/templates/CRM/Admin/Page/ExtensionDetails.tpl +++ b/templates/CRM/Admin/Page/ExtensionDetails.tpl @@ -1,24 +1,13 @@ - {if $extension.name} - - - - {/if} - - - - - - - - - {foreach from=$extension.urls key=label item=url} {/foreach} + + + @@ -55,6 +44,12 @@ - + + + + + + +
{ts}Name (key){/ts}{$extension.name} ({$extension.key})
{ts}Description{/ts}{$extension.description}
{ts}Download location{/ts}{$extension.downloadUrl}
{ts}Local path{/ts}{$extension.path}
{$label}{$url}
{ts}Author{/ts}{$extension.maintainer.author} ({$extension.maintainer.email})
{ts}Comments{/ts}{$extension.comments}
{ts}Version{/ts}{$extension.version}
{ts}Comments{/ts}{$extension.comments}{ts}Local path{/ts}{$extension.path}
{ts}Download location{/ts}{$extension.downloadUrl}
{ts}Key{/ts}{$extension.key}
diff --git a/templates/CRM/Admin/Page/Extensions/Main.tpl b/templates/CRM/Admin/Page/Extensions/Main.tpl index 88875c8573ee..5e87242afb5a 100644 --- a/templates/CRM/Admin/Page/Extensions/Main.tpl +++ b/templates/CRM/Admin/Page/Extensions/Main.tpl @@ -10,7 +10,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl - + @@ -21,7 +21,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl {foreach from=$localExtensionRows key=extKey item=row}
{ts}Extension name (key){/ts}{ts}Name{/ts} {ts}Status{/ts} {ts}Version{/ts} {ts}Type{/ts}
-  {$row.label}
({$row.key}) +  {$row.label}
{$row.description} {if $extAddNewEnabled && $remoteExtensionRows[$extKey] && $remoteExtensionRows[$extKey].is_upgradeable} {capture assign='upgradeURL'}{crmURL p='civicrm/admin/extensions' q="action=update&id=$extKey&key=$extKey"}{/capture}
{ts 1=$upgradeURL}Version {$remoteExtensionRows[$extKey].version} is available. Upgrade{/ts}