By decorating a page, Bitbucket Data Center plugins are able to inject data into preexisting page layouts.
Meta tags must be provided when listed, for example:
1 2<head> <meta name="decorator" content="bitbucket.project.general" /> <meta name="projectKey" content="{$project.key}" /> <meta name="activeTab" content="project-plugin-tab" /> <title>{$project.key} / Example Tab</title> </head>
The following decorators are available:
Decorator | Description | Since | Required Metadata |
---|---|---|---|
atl.general | Generic page layout | 4.0 | None |
atl.popup | Generic page layout | 4.0 | None |
atl.userprofile | User account decorator, same as bitbucket.users.account | 1.0 |
|
atl.admin | Admin layout | 4.0 | None |
bitbucket.form | Deprecated. Use a specific bitbucket.focused.* decorator instead. | 4.0 | None |
bitbucket.focused.small | Small form layout, for example the Bitbucket Data Center login page. | 4.0 | None |
bitbucket.focused.medium | The most widely used layout in Bitbucket Data Center, such as the create repository page. | 4.0 | None |
bitbucket.focused.large | A wide page layout. | 4.0 | None |
bitbucket.focused.xlarge | Close to full width page layout, for example the create pull request page. | 4.0 | None |
bitbucket.project.general | Project page layout | 4.0 |
|
bitbucket.project.settings | Project settings page layout | 4.0 |
|
bitbucket.repository.general | Repository page layout | 4.0 |
|
bitbucket.repository.settings | Repository settings layout | 4.0 |
|
bitbucket.users.account | User account layout, same as atl.userprofile | 4.0 |
|
bitbucket.users.profile | User profile layout | 4.0 |
|
Rate this page: