On Monday, May 16, 2016 at 7:12:37 PM UTC-7, Mike Dewhirst wrote: > > On 17/05/2016 7:43 AM, Ryan Ollos wrote: > > > > > > > > From: [email protected] > > Sent: Monday, May 16, 5:40 PM > > Subject: [Trac] Expanding the width of the TRAC ticket form > > To: Trac Users > > > > Does anyone know the setting which needs to be changed to expand the > > width of the actual TRAC ticket form. I have attached a pic of what I'd > > like to expand. There is so much whitespace around the actual ticket. > > (1) In /var/www/trac/myproject/templates/site.html ... > > <!--! Add site-specific style sheet --> > <head py:match="head" py:attrs="select('@*')"> > ${select('*|comment()|text()')} > <link rel="stylesheet" type="text/css" > href="${href.chrome('site/myproject.css')}" /> > </head> > > That will insert myproject.css into the page *after* all the trac css. > > > (2) In /var/www/trac/htdocs/site/myproject/myproject.css ... > > #content.ticket { > > width: 58em; > > max-width: 100%; > > margin-left: auto; > > margin-right: auto; > > } > > > I copied this stanza from /var/www/trac/htdocs/common/css/ticket.css > which I found by looking in my Apache trac_vhost.conf where I saw ... > > Alias /chrome/common /var/www/trac/htdocs/common > Alias /chrome/site /var/www/trac/htdocs/site/myproject >
The second Alias directive looks odd. If you generated /var/www/trac with "trac-admin $env deploy /var/www/trac", then you'd get a director structure: /var/www/trac/htdocs/common /var/www/trac/htdocs/site /var/www/trac/htdocs/<plugin> I guess you might have /var/www/trac/htdocs/site/myproject if you nested a myproject directory in $env/htdocs. > > (3) Adjust 58em; to something wider as desired and refresh your page! > > Cheers > > Mike > To reiterate since my previous message was formatted badly, I just want to note that all those steps are documented: https://trac.edgewall.org/wiki/CookBook/SiteStyleCss#Unlimitedticketwidth https://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance I recently reworked the documentation on Alias following discussion many months ago. Basically, subject to a few caveats that have been documented, you can use a single Alias directive: Alias /chrome /var/www/trac/htdocs See https://trac.edgewall.org/wiki/TracInstall#MappingStaticResources for more info. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
