{$container_id = uniqid('f-source-info-')}

{sprintf('[`Source %s`]', $source->getName()|escape)}

[`Provider`]
{if $source->getIconUrl()} {else} {/if} {$source->getProviderName()|escape}
{$account_info_html = $source->getAccountInfoHtml()} {if $account_info_html}
[`Account`]
{$account_info_html}
{/if}
[`Owner`]
{$source->getOwner()->getName()|escape}
[`Mounted`]
{$source->getField('create_datetime')|wa_date:"humandate"|escape}
[`Mount point`]
isMounted()}style="display: none;"{/if}>sdfsdfsdf {if !$source->isMounted()}
[`Cancel`]
{/if}
{if !$source->hasValidToken()}
[`Source authorization code is canceled or expired`] {if $source->getContactId() == $wa->user()->getId()}
{if $source->hasAccountInfo()} [`Renew authorization code`] {else} [`Authorization code renewal is not possible. You need to unlink the source and connect it again.`] {/if}
{/if}
{/if} {if $source->inPause()}
[`Too many requests to external source service. Please try again in a few minutes.`]
{/if} {if $source->isMounted()} {/if}
{include file='./include.unmount.html' container_id=$container_id source_id=$source->getId() inline}