Show More
@@ -331,12 +331,6 b' class hgweb(object):' | |||||
331 |
|
331 | |||
332 | # some functions for the templater |
|
332 | # some functions for the templater | |
333 |
|
333 | |||
334 | def header(**map): |
|
|||
335 | yield tmpl('header', encoding=encoding.encoding, **map) |
|
|||
336 |
|
||||
337 | def footer(**map): |
|
|||
338 | yield tmpl("footer", **map) |
|
|||
339 |
|
||||
340 | def motd(**map): |
|
334 | def motd(**map): | |
341 | yield self.config("web", "motd", "") |
|
335 | yield self.config("web", "motd", "") | |
342 |
|
336 | |||
@@ -373,8 +367,7 b' class hgweb(object):' | |||||
373 | "staticurl": staticurl, |
|
367 | "staticurl": staticurl, | |
374 | "urlbase": urlbase, |
|
368 | "urlbase": urlbase, | |
375 | "repo": self.reponame, |
|
369 | "repo": self.reponame, | |
376 |
" |
|
370 | "encoding": encoding.encoding, | |
377 | "footer": footer, |
|
|||
378 | "motd": motd, |
|
371 | "motd": motd, | |
379 | "sessionvars": sessionvars, |
|
372 | "sessionvars": sessionvars, | |
380 | "pathdef": makebreadcrumb(req.url), |
|
373 | "pathdef": makebreadcrumb(req.url), |
@@ -408,12 +408,6 b' class hgwebdir(object):' | |||||
408 |
|
408 | |||
409 | def templater(self, req): |
|
409 | def templater(self, req): | |
410 |
|
410 | |||
411 | def header(**map): |
|
|||
412 | yield tmpl('header', encoding=encoding.encoding, **map) |
|
|||
413 |
|
||||
414 | def footer(**map): |
|
|||
415 | yield tmpl("footer", **map) |
|
|||
416 |
|
||||
417 | def motd(**map): |
|
411 | def motd(**map): | |
418 | if self.motd is not None: |
|
412 | if self.motd is not None: | |
419 | yield self.motd |
|
413 | yield self.motd | |
@@ -448,8 +442,7 b' class hgwebdir(object):' | |||||
448 | staticurl += '/' |
|
442 | staticurl += '/' | |
449 |
|
443 | |||
450 | tmpl = templater.templater(mapfile, |
|
444 | tmpl = templater.templater(mapfile, | |
451 |
defaults={" |
|
445 | defaults={"encoding": encoding.encoding, | |
452 | "footer": footer, |
|
|||
453 | "motd": motd, |
|
446 | "motd": motd, | |
454 | "url": url, |
|
447 | "url": url, | |
455 | "logourl": logourl, |
|
448 | "logourl": logourl, |
General Comments 0
You need to be logged in to leave comments.
Login now