projects
/
wiki.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Edit page AbridgedResume
[wiki.git]
/
sys
/
macros
/
TitleIndex.py
1
#acl bernie:read,write All:read
2
3
def _macro_TitleIndex(*args, **kvargs):
4
s = make_index_key()
5
pages = list(page_list())
6
pages.sort()
7
current_letter = None
8
for name in pages:
9
letter = name[0].lower()
10
if letter != current_letter:
11
s += '<a name="%s"><h3>%s</h3></a>' % (letter, letter)
12
current_letter = letter
13
else:
14
s += '<br />'
15
s += link_tag(name)
16
return s