Plugin decorators
By decorating a page, Bitbucket Server plugins are able to inject data into pre-existing page layouts.
References
- Example reference plugin: bitbucket-example-plugin
- Tutorial: decorating the user profile
- Tutorial: decorating the user account
Decorators
Meta tags must be provided when listed, for example:
<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 Server login page. | 4.0 | None |
| bitbucket.focused.medium | The most widely used layout in Bitbucket Server, 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.pullrequest.view | Pull request layout | 4.0 |
|
| bitbucket.users.account | User account layout, same as atl.userprofile | 4.0 |
|
| bitbucket.users.profile | User profile layout | 4.0 |
|