%PDF- %PDF-
| Direktori : /proc/self/root/data/old/home/stash/atlassian-stash/static/page/users/profile/ |
| Current File : //proc/self/root/data/old/home/stash/atlassian-stash/static/page/users/profile/profile.soy |
{namespace stash.users.profile}
/**
* Used when showing the profile of some user other than the currently logged in one
* @param user
* @param project $user's personal project
*/
{template .othersProfile}
{webResourceManager_requireResourcesForContext('stash.page.user.profile.others')}
{webResourceManager_requireResourcesForContext('stash.page.user.profile')}
{call stash.layout.users.profile}
{{param windowTitle: getText('stash.web.users.profile.others.window.title', $user.displayName) /}}
{param activeNav: 'userprofile-repositories-tab' /}
{param user: $user /}
{param project: $project /}
{param content}
{call .repositoriesTabPane /}
{/param}
{param pageBottomContent}
<script>
require('page/users/profile').onReady('#repositories-table', '{$project.key|escapeJs}', false, '{$user.displayName|escapeJs}', {isFeatureEnabled('personal.repos')});
</script>
{/param}
{/call}
{/template}
/**
* Used when showing a user their own profile. For the moment it retains the edit buttons shown in the user edit screen.
* @param user
* @param project $user's personal project
*/
{template .ownProfile}
{webResourceManager_requireResourcesForContext('stash.page.user.profile.self')}
{webResourceManager_requireResourcesForContext('stash.page.user.profile')}
{webResourceManager_requireResourcesForContext('stash.page.userProfile')} // deprecated for 3.0
{call stash.layout.users.profile}
{param windowTitle: getText('stash.web.users.profile.own.window.title') /}
{param activeNav: 'userprofile-repositories-tab' /}
{param user: $user /}
{param project: $project /}
{param content}
{call .repositoriesTabPane /}
{/param}
{param pageBottomContent}
<script>
require('page/users/profile').onReady('#repositories-table', '{$project.key|escapeJs}', true, '', {isFeatureEnabled('personal.repos')});
</script>
{/param}
{/call}
{/template}
/**
*
*/
{template .repositoriesTabPane}
{call stash.feature.repository.repositoryTable}
{param id: 'repositories-table' /}
{param showPublicStatus: true /}
{/call}
{/template}
/**
* Used by the com.atlassian.stash.stash-web-plugin:userprofile-manage-account-button web panel
*/
{template .manageAccountButton}
{call stash.buttons.button}
{param buttonText: getText('stash.web.users.profile.manage.account.button.text') /}
{param href: nav_account() /}
{param title: getText('stash.web.users.profile.manage.account.button.title') /}
{/call}
{/template}
/**
* Used by the com.atlassian.stash.stash-web-plugin:userprofile-create-repository-button web panel
*
* @param project
*/
{template .createRepositoryButton}
{call stash.buttons.button}
{param buttonText: getText('stash.web.users.profile.create.repository.button.text') /}
{param href: nav_repo_create($project) /}
{param title: getText('stash.web.users.profile.create.repository.button.title') /}
{/call}
{/template}