# Ticket #8818 (closed defect: fixed)

Opened 2 years ago

Reported by: Assigned to: panos@grekos.com hasienda normal WikiTicketCalendarMacro normal CSS rjollos 0.11

I have installed WikiTicketCalendar and I am happy with what it shows however it does not seem to read its own css and as a result it appears so flat that it makes it difficult to read. Its just a bunch of text in the background with no line separating the tiles of the table etc.

I have changed, through the Admin->Theme->Customize, the colors of the default theme as follows:

/* Warning: this file is auto-generated. If you edit it, changes will be lost the next time you use the simple customizer. */
body, .milestone .info h2 *:link, .milestone .info h2 *:visited {
color: #000000;
}

body {
background-color: #C7CDD1;
}

color: #003366;
}

color: #555555;
}

#mainnav {
background-color: #FFFFFF;
}

#mainnav .active *:link, #mainnav .active *:visited {
background-color: #000000;
}

background-color: #CCCCCC;
}


I am attaching a jpg so that you can see how the WTC appears on the Wiki Page.

## Change History

### 05/19/11 15:53:41 changed by panos@grekos.com

Wiki Ticket Calendar - Broken View

### (follow-up: ↓ 2 ) 05/19/11 20:01:26 changed by hasienda

• keywords set to needinfo CSS.
• summary changed from CSS not read to CSS definitions not read.

Would you be so kind as to refer to the exact version, or even better: try the latest code from WikiCalenderPlugin? trunk. I've merged sources back to the origin and will support both macros in a single package. Since I use it myself in production and it worksforme, you really need to tell me more about your environment (how to reproduce). Thanks for taking care.

### (in reply to: ↑ 1 ) 05/19/11 20:03:11 changed by hasienda

Would you be so kind as to refer to the exact version, or even better: try the latest code from WikiCalenderPlugin? trunk.

sorry, correct: WikiCalendarMacro

### 05/20/11 08:46:53 changed by panos@grekos.com

Hello. I installed this "wikiticketcalendarmacro-r10217.zip" on Trac package "Trac-0.12.2-py2.6.egg". I am using the default theme but have changed the colors a little. What do you mean by trunk? I dont think I have installed such a version of wtc. How do I do this?

Thank you for you support!

### 05/20/11 19:32:00 changed by hasienda

Please re-read correctly: WikiCalendarMacro is the predecessor to WikiTicketCalendarMacro. Both lacked maintenance for quite some time resulting in a variety of patched versions without moderation and versioning.

I started to cleanup the version mess for WikiTicketCalendarMacro last year. Afterwards rjollos and I decided that it would be a win-win situation for users and future development, if I merged both, so pending issues for WikiCalendarMacro could be resolved same way as done for the sister plugin, you see? I speak of WikiCalendarMacro as the place, where the functionality of both former independent code trees will be developed from now on. Install one, get two macros.

Beware, there are single-file and packaged versions. Full capabilities are only available with the packaged (Python egg) version.

trunk is the name commonly used in software development for the active development repository tree. So this is you link, if you care to help improve the latest version. http://trac-hacks.org/changeset/latest/wikicalendarmacro?old_path=/&filename=wikicalendarmacro&format=zip

Hope, this makes the situation clearer for you now. Please don't hesitate to ask more questions, if not.

### 05/24/11 10:24:07 changed by panos@grekos.com

Hello. As per your recommendation I removed wikiticketcalendarmacro-r10217.zip and have installed the trunk version included within wikicalendarmacro-r10223.zip. I still get the same visual result... Any ideas?

### 05/24/11 19:08:39 changed by hasienda

At first glance it looks like working in a theme admin menu (as mentioned above) would be a common procedure.

Happens I've never done so, even don't know, what plugin provides such a functionality. At least it's not a native Trac's functionality and you really need to present more details on your customization approach. What you should take for granted is, that the plugin regardless of branch (single-file vs. packaged - Python egg version) generally works and produces visual results similar to what is reproduced in the wiki page. CSS is even embedded into the single-file version (0.11 branch), so it can hardly be missed. Try this, if you missed it by now.

Anyway I suspect, it's about how you changed the CSS styles that interferes with the common procedure done by add_stylesheet() from trac.web.chrome. Even if it really looks like a local installation/configuration issue I'll try to help as much as I can, but entirely depending on best possible insight into your setup.

### 07/20/12 03:03:32 changed by hasienda

• keywords changed from needinfo CSS to CSS.
• cc set to rjollos.
• release changed from 0.12 to 0.11.

I was able to reproduce this with Trac 0.11 now.

Seems like an issue with late style-sheet file addition, that is done by jQuery.loadStyleSheet (see t:#8005 for a similar issue). While embedding the CSS into the page might help, this would clutter up the rendered HTML significantly, not to mention unneeded duplication on multiple macro calls per page. I hope there'll be another solution.

### 07/20/12 15:44:21 changed by rjollos

• description changed.

### 07/21/12 21:55:50 changed by hasienda

(In [11746]) WikiCalendarMarco?: Optionally embed CSS styles instead of using add_stylesheet, refs #8818.

This introduces a new option internal_css for the equally new upstream configuration section wikicalendar. False is the default and that's fine, unless you really need to force reading CSS style definitions.

I tried with ITemplateStreamFilter, but had to learn, that wiki macros are expanded only afterwards, so including style definitions into the HTML page seems like the only alternative to trac.web.chrome.add_stylesheet() so far.

### 07/21/12 22:03:18 changed by hasienda

Please try latest trunk version of WikiCalendarMacro with

[wikicalendar]
internal_css = True


I verified, that [11746] fixes missing CSS for both, WikiCalendarMacro and WikiTicketCalendarMacro in Trac 0.11. As always, feedback is highly appreciated to encourage pushing this to next stable release.

### 03/30/13 12:32:55 changed by hasienda

• status changed from new to closed.
• resolution set to fixed.

(In [12842]) WikiCalendarMacro: Releasing current, tested macro package as final product, closes #64, #578, #6636, #7564, #7653, #8818, #9568, #9718 and #9719.

After a long time one of the oldest Trac hacks (see changeset [53]) is united with its ambitious fork WikiTicketCalendarMacro for convenience. While maintaining separate wiki pages for both macros, upstream development continues together in the source:wikicalendarmacro/trunk branch.