diff --git a/wiki-lenny/share/formatter.text_html.py b/wiki-lenny/share/formatter.text_html.py index 9968588a..883f2129 100644 --- a/wiki-lenny/share/formatter.text_html.py +++ b/wiki-lenny/share/formatter.text_html.py @@ -999,6 +999,35 @@ document.write('', ] return('\n'.join(html)) + + def crans_portal(self, entries): + html = [ '
' ] + while len(entries) != 0: + pic0, tit0, bod0 = entries[0] + html += [ ''' + ''' % (pic0, tit0, bod0) ] + + if len(entries) >= 2: + pic1, tit1, bod1 = entries[1] + entries = entries[2:] + + html += [ ''' + ''' % (pic1, tit1, bod1) ] + + else: + html += [ '' ] + entries = [] # plus propre que {{{ break() }}} + + html += [ '
+
  • %s
  • %s
+
+
  • %s
  • %s
+
' ] + return('\n'.join(html)) #### FIN HACK 1/1 #### # Paragraphs, Lines, Rules ########################################### diff --git a/wiki-lenny/static/common/portal/portal.css b/wiki-lenny/static/common/portal/portal.css new file mode 100644 index 00000000..a3249576 --- /dev/null +++ b/wiki-lenny/static/common/portal/portal.css @@ -0,0 +1,13 @@ +/* + * PORTAL.CSS-- + * + * Copyright (C) 2008 Antoine Durand-Gasselin + * Author: Antoine Durand-Gasselin +*/ + +.portal ul, .portal li, .portal td, .portal tr, .portal table { + list-style: none; + padding: 0; + margin: 0; +} +