projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6ae7c47
)
Separate images from subdirs in directory listing
author
Bernie Innocenti
<bernie@codewiz.org>
Fri, 19 Mar 2010 13:08:53 +0000
(10:08 -0300)
committer
Bernie Innocenti
<bernie@codewiz.org>
Fri, 19 Mar 2010 13:08:53 +0000
(10:08 -0300)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index 54802f40e31930c1840b48461f297835b95d9053..a5ba6a2d388565ae9ac3f5dff29ca48f8126fb50 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-667,16
+667,17
@@
class Page:
pathname = (pathname and pathname + '/' ) + dirname
out += '[[' + pathname + '|' + dirname + ']]/'
out += ' ==\n'
pathname = (pathname and pathname + '/' ) + dirname
out += '[[' + pathname + '|' + dirname + ']]/'
out += ' ==\n'
+ images_out = '\n'
for filename in page_list(self._filename(), file_re):
if image_re.match(filename):
maxwidth = config_get('image_maxwidth', '400')
if maxwidth:
maxwidth = ' | maxwidth=' + str(maxwidth)
for filename in page_list(self._filename(), file_re):
if image_re.match(filename):
maxwidth = config_get('image_maxwidth', '400')
if maxwidth:
maxwidth = ' | maxwidth=' + str(maxwidth)
- out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n'
+
images_
out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n'
else:
out += ' * [[' + self.page_name + '/' + filename + ']]\n'
else:
out += ' * [[' + self.page_name + '/' + filename + ']]\n'
- return out
+ return out
+ images_out
def pragmas(self):
if not '_pragmas' in self.__dict__:
def pragmas(self):
if not '_pragmas' in self.__dict__: