%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/home/stash/atlassian-stash/static/widget/user/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/home/stash/atlassian-stash/static/widget/user/user-link.soy

{namespace stash.widget}

/**
 * @param user
 * @param? href the href for the link. If not specified it defaults to the user's profile
 * @param? extraClasses use "secondary-link" to lower the visual priority
 */
{template .userLink}
    {let $displayName: personDisplayName($user) /}
    {if $href or ($user.type == 'NORMAL' and $user.slug and isAuthenticated())}
        //User profiles only available to authenticated users
        //Crowd user or normal Stash user
        <a href="{$href ? $href : nav_user($user.slug)}" {if $extraClasses}class="{$extraClasses}"{/if} title="{$displayName}">
            {$displayName|truncate: 100, true}
        </a>
    {else}
        //Service user, commit author or some other type of user we don't expect to handle
        <span {if $extraClasses}class="{$extraClasses}"{/if} title="{$displayName}">
            {$displayName|truncate: 100, true}
        </span>
    {/if}
{/template}

Zerion Mini Shell 1.0