On 25/05/2016 4:16 PM, RjOllos wrote:


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] <mailto:[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.

Agreed. You are jogging my memory and a long time ago I tried to get multiple projects happening on the same server and eventually gave up. That left my Trac instance in a somewhat ugly state but working.

As I write, I am also remembering that I don't really want to upgrade to the latest rev because that means I have invest time and effort in cleaning up my old mess.

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>

Thanks for that - maybe I'll make that effort now.

Cheers

Mike


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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

--
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.

Reply via email to