From 03995c1cd53f77b05202954f2c5d4b0a859b6738 Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Fri, 2 Apr 2010 15:27:31 +0200 Subject: [PATCH] =?UTF-8?q?[wiki/theme/crans]=20modification=20pour=20les?= =?UTF-8?q?=20th=C3=A8mes=20temporaires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit il faudrait rsoudre les problmes de cache darcs-hash:20100402132731-bd074-733d74ae59e62d5ccc594f90b2975ae48fcc99ac.gz --- wiki/theme/crans.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wiki/theme/crans.py b/wiki/theme/crans.py index 5a73cb60..a0908c88 100755 --- a/wiki/theme/crans.py +++ b/wiki/theme/crans.py @@ -60,17 +60,19 @@ class Theme(ThemeBase): _ = self.request.getText if self.today.month == 10 and self.today.day == 31: - extra_style = 'class="halloween"' + x_class = 'class="halloween"' elif self.today.month == 12 and self.today.day == 24: - extra_style = 'class="noel"' - else: extra_style = '' + x_class = 'class="noel"' + elif self.today.month == 4 and self.today.day ==1: + x_class = 'class="april_fool"' + else: x_class = '' html = [ # Custom html above header self.emit_custom_html(self.cfg.page_header1), - u'
' % extra_style, - u'

', self.title(d), u'

', + u'
', + u'

' % x_class, self.title(d), u'

', u'
', self.msg(d), self.startPage()