JIRA 5.0 milestone 4 includes significant changes to markup, CSS and decorators. We're moving towards a common markup pattern and theme for all our applications. This will provide a baseline which each product can build upon.
Some of the key points regarding these changes are:
Atlassian intends to adopt this new template across all products, this will provide a much more consistent user experience when moving from one product to another as well as lower the learning curve for plugin writers when writing a plugin for an app they're not familiar with. In the future there may be the potential for a cross product plugin which only needs a single set of markup.
Some side-by-side comparisons of various page structures in JIRA are shown below (click to enlarge). You can see that the markup is now a lot more consistent. In order to change how the template displays on certain pages we now use a CSS class of "page-type-foo" on the body. This replaces all the old classes like "nl", "type-a", "type-aa", etc. All pages now get a common look and feel, the baseline of which will be soon provided by AUI. JIRA will then extend the baseline styles with the customisations required. This method of changing how the template behaves is also recommended for plugins.
The nodes highlighted in blue are where most of the "content" starts. The new markup is longer in most cases due to the inclusion of a new wrapping div (<div id="page">). This is primarily there as a styling hook for people theming our products but it also brings JIRA more inline with some of the other products. You'll notice that there are now 3 distinct areas - #header, #content and #footer. This is now consistent across all of JIRA (some decorators don't include the header/footer - see the section on decorators below).
We realize that these changes will be extensive for plugins which provide additional UI elements inside of JIRA. However we believe that this new approach will make JIRA much easier to work with going forward. Because of the scale of the changes, we are providing a migration guide so you know exactly how to migrate from JIRA 4.4 markup to JIRA 5.0.
The table below shows the old and new decorators side-by-side. The example images use the following markup and simply change the decorator applied.
1 2<html> <head> <title>Title element in header</title> <meta name="decorator" content="none" /> </head> <body> <h1>h1 text in the body</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eros turpis, adipiscing quis molestie ut, convallis nec turpis. Quisque sollicitudin purus dui. Integer nec lectus in velit volutpat pulvinar et a nunc. Etiam a nisl sed mauris ultrices scelerisque semper vitae lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis fermentum auctor luctus. Cras augue leo, sodales mattis tempor ut, condimentum ut erat. Quisque a libero vitae massa bibendum consequat. Aliquam laoreet enim ut arcu eleifend venenatis. Morbi in adipiscing arcu. Vestibulum mollis, nisi ac hendrerit scelerisque, leo enim lacinia erat, vel bibendum nisi ligula sed purus. Nunc a dui dui. Vestibulum pharetra convallis urna, et accumsan mi feugiat at. Duis tincidunt, massa vitae imperdiet faucibus, augue augue ultrices eros, quis condimentum ligula erat quis nibh. Sed urna ante, cursus vel vestibulum vitae, consectetur ut mauris.</p> <p>Maecenas ultrices elit placerat lacus porta at interdum dui dictum. Quisque aliquet tincidunt justo, ac iaculis magna volutpat congue. Vestibulum suscipit justo sed justo posuere porttitor. Nullam ac purus sed quam porttitor bibendum in ut orci. Vivamus fermentum tempor venenatis. Etiam turpis urna, egestas quis rhoncus id, bibendum a justo. Mauris eu ligula et eros auctor facilisis sit amet in enim. Integer et felis ipsum. Nam dictum dictum gravida. Donec nec odio vel purus dapibus sodales at non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla facilisi. Integer eu tincidunt nisl. Aenean enim ligula, blandit et hendrerit nec, dictum vitae massa. Sed in mauris elit, eget malesuada mauris. </p> </body> </html>
JIRA 4.4.x |
| JIRA 5 |
|
---|---|---|---|
Decorator name | Contexts applied | Decorator name | Contexts applied |
atl.admin | atl.admin | atl.admin | atl.admin |
atl.general | atl.general | atl.general | atl.general |
atl.popup | atl.popup | atl.popup | atl.popup |
atl.userprofile | atl.userprofile | atl.userprofile | atl.userprofile |
none | -- | none | -- |
admin | atl.admin | admin | atl.admin |
general | atl.general | general | atl.general |
main | atl.general | main | atl.general |
insecure | atl.general | insecure | atl.general |
frontpage | atl.general | frontpage | atl.general |
notitle | atl.general | notitle | atl.general |
setup | -- | setup | -- |
setupgh | -- | setupgh | -- |
dialog | -- | dialog | -- |
dialog-iframe | -- | dialog-iframe | -- |
error | atl.error | error | atl.error |
message | atl.message | message | atl.message |
issueaction | atl.general | issueaction | atl.general |
navigator | jira.navigator | navigator | jira.navigator |
printable | atl.general | printable | atl.general |
popup | atl.popup | popup | atl.popup |
issuesummary | atl.general | -- | -- |
genericaction | atl.general | generication | atl.general |
inline | atl.inline.dialog | Not changed | atl.inline.dialog |
|
| login | -- |
|
| panel-general | atl.general |
|
| panel-admin | atl.admin |
|
| blank | -- |
|
| content-panel-only | -- |
Rate this page: