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