Mercurial > moin > extensions
changeset 136:b74bd78a9ce9
text_x_arnica: added div class template_itemlist
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Sun, 29 Jun 2008 16:08:29 +0200 |
parents | e0015917205d |
children | 81f9d359f173 |
files | data/plugin/parser/text_x_arnica.py htdocs/modern/css/text_x_arnica.css |
diffstat | 2 files changed, 21 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py Sun Jun 29 14:25:56 2008 +0200 +++ b/data/plugin/parser/text_x_arnica.py Sun Jun 29 16:08:29 2008 +0200 @@ -567,16 +567,17 @@ return if self.template_itemlist: - self.request.write(_(""" + self.request.write(_("""<div class="text"> Copy the following listitems into the script. Replace alias with the label you want. - Afterwards disable template_itemlist by setting it to 0:""")) - self.request.write('<br>') + Afterwards disable template_itemlist by setting it to False:""")) + self.request.write('<div class="template_itemlist">') for image in self.full: - self.request.write(' * [[%(image)s|%(alias)s]]<br>\n' % { + self.request.write('<br> * [[%(image)s|%(alias)s]]\n' % { 'image': image, 'alias': 'alias' }) + self.request.write('</div></div>') COLUMNS = min([self.columns, len(self.full)]) if self.album:
--- a/htdocs/modern/css/text_x_arnica.css Sun Jun 29 14:25:56 2008 +0200 +++ b/htdocs/modern/css/text_x_arnica.css Sun Jun 29 16:08:29 2008 +0200 @@ -28,6 +28,22 @@ border-style: outset; } + +.arnica .text { + position: relative; + text-align: left; + margin: 0em; + padding: 0.2em; +} + +.arnica .text .template_itemlist { + position: relative; + background: #ff0; + text-align: left; + margin: 0.0em; + padding: 0.2em; +} + .arnica .title { text-align: center; padding: 0.2em;