From dbcfa624dd6e5e978065b90d0e2a9d71a5011c5f Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Sun, 9 Nov 2008 22:48:06 +0100 Subject: [PATCH] [wiki-lenny/local/formatter/portal.py] Le portail marche darcs-hash:20081109214806-bd074-b2eb2120356efd16170dfdec23eba3b399c9d0d3.gz --- wiki-lenny/share/formatter.text_html.py | 29 ++++++++++++++++++++++ wiki-lenny/static/common/portal/portal.css | 13 ++++++++++ 2 files changed, 42 insertions(+) create mode 100644 wiki-lenny/static/common/portal/portal.css 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; +} +