{namespace JIRA.Templates.Headers} /** * @param mainContent the actual header. Should include an element. Can also add breadcrumbs etc. here. * @param? imageContent optional container for avatars / images / etc. Appears to the left of the main content. * @param? actionsContent optional container for buttons / links / etc. Appears to the right of the main content. * @param? helpContent optional help link. * @param? id optional identifier for the page header. * @param? tagName optional name for the root tag. Default is 'header'. */ {template .pageHeader} <{$tagName ? $tagName : 'header'} class="aui-page-header"{if $id} id="{$id}"{/if}>
{if $imageContent}
{$imageContent|noAutoescape}
{/if}
{$mainContent|noAutoescape}
{if $actionsContent or $helpContent}
{if $actionsContent}{$actionsContent|noAutoescape}{/if} {if $helpContent}{$helpContent|noAutoescape}{/if}
{/if}
{/template} /** * Render a project avatar, optionally with the project shortcuts enabled. * @param? id the ID of the project avatar section. * @param avatarAlt the alternative text for the avatar image. * @param avatarUrl the (absolute or root-relative) location of the avatar. If relative, ensure the baseUrl is already prepended. * @param? isSystemAvatar set to true if the avatar is a system-supplied avatar as opposed to a user-uploaded / custom one. * @param? projectTypeIcon A base64 representation of the image for the type of the project. */ {template .projectAvatar} {getText('admin.common.words.project.uploaded.image', $avatarAlt)} {if $projectTypeIcon} {/if} {/template}