(Arne Babenhauserheide)
2011-11-24: FIX templating (strong not finished). FIX templating (strong not finished).
diff --git a/site.py b/site.py
--- a/site.py
+++ b/site.py
@@ -59,7 +59,8 @@ templates = {
"printstyle": """ """,
"manifesthead": """<h2>""" + _("Commit")+""": <a href='../../commit/{hex}.html'>{hex}</a></h2>
<p>{desc}</p><p>{user}</p>
- <h2>""" + _("Files in this revision") + "</h2>"
+ <h2>""" + _("Files in this revision") + "</h2>",
+ "commitlog": """<div style='float: right; padding-left: 0.5em'><em>({author|person})</em></div><strong> {date|shortdate}: <a href='../src/{node}/'>{desc|strip|fill68|firstline}</a></strong> <span style='font-size: xx-small'>{branches} {tags} {bookmarks}</span><p>{desc|escape}</p>\n"""
}
@@ -136,7 +137,7 @@ def writelog(ui, repo, target, name):
# create the log files
t = cmdutil.changeset_templater(ui, repo, patch=False, diffopts=None, mapfile=None, buffered=False)
- t.use_template("""<div style='float: right; padding-left: 0.5em'><em>({author|person})</em></div><strong> {date|shortdate}: <a href='../commit/{node}.html'>{desc|strip|fill68|firstline}</a> <span style='font-size: xx-small'>{branches} {tags} {bookmarks}</span><p>{desc|escape}</p>""")
+ t.use_template(templates["commitlog"])
logs = []
for ck in range(len(repo.changelog)/100+1):
ui.pushbuffer()
@@ -177,7 +178,7 @@ def writecommits(ui, repo, target, name,
os.makedirs(commit)
t = cmdutil.changeset_templater(ui, repo, patch=False, diffopts=None, mapfile=None, buffered=False)
- t.use_template("""<div style='float: right; padding-left: 0.5em'><em>({author|person})</em></div><strong> {date|shortdate}: <a href='../src/{node}/'>{desc|strip|fill68|firstline}</a> <span style='font-size: xx-small'>{branches} {tags}</span><p>{desc|escape}</p>""")
+ t.use_template(templates["commitlog"])
for c in range(len(repo.changelog)):
ctx = repo.changectx(str(c))
cpath = join(commit, ctx.hex() + ".html")