terça-feira, 15 de outubro de 2013

Edgewall TRAC: add a custon HTML code (like a menu) at the top of TRAC page

How to add custon HTML code like a menu/link in the TRAC interface.
In this case, users can return to the main page using a link.

Create the file "/path/to/env/templates/site.html" with the following content:
  <!--! Add site-specific style sheet -->
  <head py:attrs="select('@*')" py:match="head">
    <link href="${'site/style.css')}" rel="stylesheet" type="text/css"></link>

  <body py:attrs="select('@*')" py:match="body">

    <!--! MY LINK/MENU -->
<a href="PORTAL_LINK">Back to The Portal</a></center>

    <div id="siteheader">
    <div id="sitefooter">

You can add items in the header and footer of the TRAC page, inserting HTML code within DIV "siteheader" and "sitefooter"  respectively.

More information: