Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

#11564 closed defect (duplicate)

Wiki PageOutline does not display correctly for pages rendered in the source browser mimeview

Reported by: simon.knibbs@… Owned by:
Priority: normal Milestone:
Component: version control/browser Version: 1.1.1dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The PageOutline / TracGuideToc in wiki pages under version control does not render correctly in the html preview.

See http://trac.edgewall.org/demo-1.1/browser/trunk/trac/wiki/default-pages/WikiMacros for an example.

This seems to be because wiki.css is not included on this page.

Attachments (0)

Change History (1)

comment:1 by Ryan J Ollos, 10 years ago

Resolution: duplicate
Status: newclosed

You are right. As proof, the page renders correctly with the following patch:

  • trac/versioncontrol/web_ui/browser.py

    diff --git a/trac/versioncontrol/web_ui/browser.py b/trac/versioncontrol/web_ui/
    index d04c4f8..fc0fd84 100644
    a b class BrowserModule(Component):  
    487487                add_ctxtnav(req, _('Repository URL'), href=path_url)
    488488
    489489        add_stylesheet(req, 'common/css/browser.css')
     490        add_stylesheet(req, 'common/css/wiki.css')
    490491        return 'browser.html', data, None
    491492
    492493    # Internal methods

As a workaround, you could write a simple IRequestFilter that adds wiki.css to pages in the browser realm.

With the work that is on-going in #10672, the CSS will be combined to a single file and made available on every page. That should resolve this issue (comment:28:ticket:10672).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.