TwoColumnTicketLayout: Difference between revisions
Jump to navigation
Jump to search
m (4 revisions imported) |
(No difference)
|
Revision as of 15:39, 6 April 2016
With a little CSS the ticket display page can be switched to a two-column layout, with history and metadata side by side. Use one of these methods. This customization is found to work on RT 4.0.x.
Using a callback
Place this code in Callbacks/TwoColumnTicketLayout/Ticket/Display.html/Initial:
<style type="text/css">
.summary { margin-top: 1em; width: 35%; float: right; }
.history { width: 64%; }
div#body > br { display: none; }
div.history hr.clear { clear: none; }
table.ticket-summary td.boxcontainer { display: block; }
table.ticket-summary td.boxcontainer:first-child { width: auto; }
table.ticket-summary input#NewReminder-Subject { width: 100%; }
div#ticket-history div.downloadattachment { display: none; }
</style>
Using the theme editor
- Login to RT with a admin account, 'root' for example
- Open the Theme editor : Tools → Configuration → Tools → Theme
- Add this bit of CSS code :
/* Two column ticket layout */ body#comp-Ticket-Display .summary { margin-top: 1em; width: 35%; float: right; } body#comp-Ticket-Display .history { width: 64%; } body#comp-Ticket-Display div#body > br { display: none; } body#comp-Ticket-Display div.history hr.clear { clear: none; } table.ticket-summary td.boxcontainer { display: block; } table.ticket-summary td.boxcontainer:first-child { width: auto; } table.ticket-summary input#NewReminder-Subject { width: 100%; } div#ticket-history div.downloadattachment { display: none; }