Skip to content

Commit

Permalink
Merge pull request #18981 from mattwire/extensionsuitweak
Browse files Browse the repository at this point in the history
Extensionsuitweak
  • Loading branch information
seamuslee001 authored Nov 18, 2020
2 parents 943cb2d + a015139 commit c7cdb84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
25 changes: 10 additions & 15 deletions templates/CRM/Admin/Page/ExtensionDetails.tpl
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
<table class="crm-info-panel">
{if $extension.name}
<tr>
<td class="label">{ts}Name (key){/ts}</td><td>{$extension.name} ({$extension.key})</td>
</tr>
{/if}
<tr>
<td class="label">{ts}Description{/ts}</td><td>{$extension.description}</td>
</tr>
<tr>
<td class="label">{ts}Download location{/ts}</td><td>{$extension.downloadUrl}</td>
</tr>
<tr>
<td class="label">{ts}Local path{/ts}</td><td>{$extension.path}</td>
</tr>
{foreach from=$extension.urls key=label item=url}
<tr><td class="label">{$label}</td><td><a href="{$url}">{$url}</a></td></tr>
{/foreach}
<tr>
<td class="label">{ts}Author{/ts}</td><td>{$extension.maintainer.author} (<a href="mailto:{$extension.maintainer.email}">{$extension.maintainer.email}</a>)</td>
</tr>
<tr>
<td class="label">{ts}Comments{/ts}</td><td>{$extension.comments}</td>
</tr>
<tr>
<td class="label">{ts}Version{/ts}</td><td>{$extension.version}</td>
</tr>
Expand Down Expand Up @@ -55,6 +44,12 @@
</td>
</tr>
<tr>
<td class="label">{ts}Comments{/ts}</td><td>{$extension.comments}</td>
<td class="label">{ts}Local path{/ts}</td><td>{$extension.path}</td>
</tr>
<tr>
<td class="label">{ts}Download location{/ts}</td><td>{$extension.downloadUrl}</td>
</tr>
<tr>
<td class="label">{ts}Key{/ts}</td><td>{$extension.key}</td>
</tr>
</table>
4 changes: 2 additions & 2 deletions templates/CRM/Admin/Page/Extensions/Main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
<table id="extensions" class="display">
<thead>
<tr>
<th>{ts}Extension name (key){/ts}</th>
<th>{ts}Name{/ts}</th>
<th>{ts}Status{/ts}</th>
<th>{ts}Version{/ts}</th>
<th>{ts}Type{/ts}</th>
Expand All @@ -21,7 +21,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
{foreach from=$localExtensionRows key=extKey item=row}
<tr id="extension-{$row.file}" class="crm-entity crm-extension-{$row.file}{if $row.status eq 'disabled'} disabled{/if}{if $row.status eq 'installed-missing' or $row.status eq 'disabled-missing'} extension-missing{/if}{if $row.upgradable} extension-upgradable{elseif $row.status eq 'installed'} extension-installed{/if}">
<td class="crm-extensions-label">
<a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label}</strong><br/>({$row.key})
<a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label}</strong><br/>{$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}
<div class="crm-extensions-upgrade">{ts 1=$upgradeURL}Version {$remoteExtensionRows[$extKey].version} is available. <a href="%1">Upgrade</a>{/ts}</div>
Expand Down

0 comments on commit c7cdb84

Please sign in to comment.