%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/home/stash/atlassian-stash/static/page/admin/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/home/stash/atlassian-stash/static/page/admin/license.soy

{namespace stash.admin}

/**
* @param serverId
* @param license
* @param usersRemainingMessage
* @param overLimitMessage
* @param canEdit
* @param? saved
*/
{template .license}
{webResourceManager_requireResourcesForContext('stash.page.admin.license')}
{call stash.layout.admin}
    {param activeTab: 'admin-settings-licensing' /}
    {param content}
        <header class="aui-page-header">
            <div class="aui-page-header-inner">
                <div class="aui-page-header-main">
                    <h2>{getText('stash.web.license.title')}</h2>
                </div>
            </div>
        </header>
        {call widget.aui.group.group}
            {param content}
                {call widget.aui.group.item}
                    {param content}
                        {if $saved}
                            {call widget.aui.message.success}
                                {param content}
                                    {getText('stash.web.license.saved')}
                                {/param}
                            {/call}
                        {/if}
                        {call widget.aui.form.form}
                            {param action: ''/}
                            {param longLabels: true /}
                            {param content}
                                <input type='hidden' name='edit' value='true'/>

                                {if $overLimitMessage}
                                    {call widget.aui.message.error}
                                        {param extraClasses: 'over-limit'/}
                                        {param content}
                                            {$overLimitMessage}<br/>
                                            {{getText('stash.web.license.over.limit.resolve',
                                                nav_admin_global_perms(), 'https://my.atlassian.com/purchase')|noAutoescape}}
                                        {/param}
                                    {/call}
                                {/if}

                                {if $license == null}
                                    {call widget.aui.message.error}
                                        {param extraClasses: 'no-license'/}
                                        {param content}
                                            {{getText('stash.web.license.nolicense',
                                                'https://my.atlassian.com/purchase/product/stash')|noAutoescape}}
                                        {/param}
                                    {/call}
                                {elseif $license.evaluation}
                                    {if $license.expired}
                                        {call widget.aui.message.error}
                                            {param extraClasses: 'eval-expired'/}
                                            {param content}
                                                {{getText('stash.web.license.evaluation.expired',
                                                    format_date($license.expiryDate, 'short'), 'https://my.atlassian.com/purchase/product/stash')|noAutoescape}}
                                            {/param}
                                        {/call}
                                    {else}
                                        {call widget.aui.message.warning}
                                            {param extraClasses: 'eval-notexpired'/}
                                            {param content}
                                                {{getText('stash.web.license.evaluation',
                                                    format_date($license.expiryDate, 'short'), 'https://my.atlassian.com/purchase/product/stash')|noAutoescape}}
                                            {/param}
                                        {/call}
                                    {/if}
                                {else}
                                    {if $license.maintenanceExpired}
                                        {call widget.aui.message.error}
                                            {param extraClasses: 'commercial-expired'/}
                                            {param content}
                                                {{getText('stash.web.license.maintenance.expired',
                                                    format_date($license.maintenanceExpiryDate, 'short'), 'https://my.atlassian.com/purchase')|noAutoescape}}
                                            {/param}
                                        {/call}
                                    {elseif $license.expired}
                                        {call widget.aui.message.error}
                                            {param extraClasses: 'commercial-expired'/}
                                            {param content}
                                                {{getText('stash.web.license.expired',
                                                    format_date($license.expiryDate, 'short'), 'https://my.atlassian.com/')|noAutoescape}}
                                            {/param}
                                        {/call}
                                    {else}
                                        <p class="description">
                                            {{getText('stash.web.license.maintenance',
                                                format_date($license.maintenanceExpiryDate, 'short'), 'https://my.atlassian.com/purchase')|noAutoescape}}
                                        </p>
                                    {/if}
                                {/if}

                                {call widget.aui.form.fieldValue}
                                    {param id: 'serverid' /}
                                    {param labelContent: getText('stash.web.config.serverid') /}
                                    {param valueContent: $serverId/}
                                {/call}

                                {if $license != null}
                                    <h3>{getText('stash.web.license')}</h3>
                                    {if $license.description != null}
                                        {call widget.aui.form.fieldValue}
                                            {param id: 'license-description' /}
                                            {param labelContent: getText('stash.web.config.license') /}
                                            {param valueContent: $license.description/}
                                        {/call}
                                    {/if}
                                    {call widget.aui.form.fieldValue}
                                        {param id: 'license-owner' /}
                                        {param labelContent: getText('stash.web.config.licensee') /}
                                        {param valueContent: $license.organisation.name == null ? '' : $license.organisation.name/}
                                    {/call}
                                    {call widget.aui.form.fieldValue}
                                        {param id: 'license-sen' /}
                                        {param labelContent: getText('stash.web.config.sen') /}
                                        {param valueContent: $license.supportEntitlementNumber == null ? 'Unknown' : $license.supportEntitlementNumber/}
                                    {/call}
                                    {if $license.expiryDate != null}
                                        {call widget.aui.form.fieldValue}
                                            {param id: 'license-expiry' /}
                                            {param labelContent: getText('stash.web.config.license.expires') /}
                                            {param valueContent}
                                                {call widget.date.short}
                                                    {param date: $license.expiryDate/}
                                                {/call}
                                            {/param}
                                        {/call}
                                    {else}
                                        {call widget.aui.form.fieldValue}
                                            {param id: 'license-maintenance-expiry' /}
                                            {param labelContent: getText('stash.web.config.license.maintexpires') /}
                                            {param valueContent}
                                                {call widget.date.short}
                                                    {param date: $license.maintenanceExpiryDate/}
                                                {/call}
                                            {/param}
                                        {/call}
                                    {/if}
                                    {call widget.aui.form.fieldValue}
                                        {param id: 'license-users' /}
                                        {param labelContent: getText('stash.web.config.licence.userlimit') /}
                                        {param valueContent}
                                            {if $license.unlimitedNumberOfUsers}
                                                {{getText('stash.web.license.unlimited')}}
                                            {else}
                                                {$license.maximumNumberOfUsers} {if $usersRemainingMessage}({$usersRemainingMessage}){/if}
                                            {/if}
                                        {/param}
                                    {/call}
                                    {call stash.admin.licenseEditButton}
                                        {param id: 'license-edit'/}
                                        {param label: getText('stash.web.config.license.edit')/}
                                        {param canEdit: $canEdit/}
                                    {/call}
                                {else}
                                    {call stash.admin.licenseEditButton}
                                        {param id: 'license-add'/}
                                        {param label: getText('stash.web.config.license.add')/}
                                        {param canEdit: $canEdit/}
                                    {/call}
                                {/if}
                            {/param}
                        {/call}
                    {/param}
                {/call}
            {/param}
        {/call}
    {/param}
{/call}
{/template}

/**
* @param id
* @param canEdit
* @param label
*/
{template .licenseEditButton}
    {call widget.aui.form.buttons}
        {param content}
            {if $canEdit}
                {call stash.buttons.button}
                    {param id: $id /}
                    {param isPrimary: true /}
                    {param buttonText: $label /}
                    {param href: nav_admin_license_edit() /}
                {/call}
            {else}
                <span class="disabled">
                    {{getText('stash.web.license.sysadminonly')}}
                <span>
            {/if}
        {/param}
    {/call}
{/template}

Zerion Mini Shell 1.0