2 MoinMoin - Dead fox junction website theme.
4 @copyright: 2010+ Matthijs Kooijman
5 @license: GNU GPL, see COPYING for details.
8 from site import SiteTheme
10 class Theme(SiteTheme):
11 name = "deadfoxjunction"
13 # Add an extra #window div that will be visible content area, framed
14 # by a wooden "window". We can't just use #content here, since
15 # #messages is besides #content in editing mode.
16 def startPage(self, d):
17 html = SiteTheme.startPage(self, d)
18 html += u'<div id="window">\n'
22 html = SiteTheme.endPage(self, d)
23 html += u'</div><!-- #window -->\n'
26 def recentchanges_entry(self, d):
28 Assemble a single recentchanges entry (table row)
30 Based on the same function from ThemeBase, but with the comment
31 on a second table row, since the available horizontal space in
32 this theme is fairly limited.
34 @param d: parameter dictionary
36 @return: recentchanges entry html
38 _ = self.request.getText
42 html.append('<td class="rcicon1">%(icon_html)s</td>\n' % d)
44 html.append('<td class="rcpagelink">%(pagelink_html)s</td>\n' % d)
46 html.append('<td class="rctime">')
48 html.append("%(time_html)s" % d)
49 html.append('</td>\n')
51 html.append('<td class="rcicon2">%(info_html)s</td>\n' % d)
53 html.append('<td class="rceditor">')
55 html.append('<br>'.join(d['editors']))
56 html.append('</td>\n')
57 html.append('</tr>\n')
60 html.append('<td colspan="5" class="rccomment">')
62 if d['changecount'] > 1:
64 for comment in d['comments']:
65 html.append('%s<tt>#%02d</tt> %s' % (
66 notfirst and '<br>' or '', comment[0], comment[1]))
69 comment = d['comments'][0]
70 html.append('%s' % comment[1])
71 html.append('</td>\n')
73 html.append('</tr>\n')