##// END OF EJS Templates
Add web:style option
mpm@selenic.com -
r986:2810c625 default
parent child Browse files
Show More
@@ -134,6 +134,8 b' web::'
134 Where to output the error log. Default is stderr.
134 Where to output the error log. Default is stderr.
135 templates;;
135 templates;;
136 Where to find the HTML templates. Default is install path.
136 Where to find the HTML templates. Default is install path.
137 style;;
138 Which template map style to use.
137 maxchanges;;
139 maxchanges;;
138 Maximum number of changes to list on the changelog. Default is 10.
140 Maximum number of changes to list on the changelog. Default is 10.
139 maxfiles;;
141 maxfiles;;
@@ -626,8 +626,11 b' class hgweb:'
626 t = self.templates or self.repo.ui.config("web", "templates",
626 t = self.templates or self.repo.ui.config("web", "templates",
627 templatepath())
627 templatepath())
628 m = os.path.join(t, "map")
628 m = os.path.join(t, "map")
629 style = self.repo.ui.config("web", "style", "")
629 if args.has_key('style'):
630 if args.has_key('style'):
630 b = os.path.basename("map-" + args['style'][0])
631 style = args['style'][0]
632 if style:
633 b = os.path.basename("map-" + style)
631 p = os.path.join(t, b)
634 p = os.path.join(t, b)
632 if os.path.isfile(p): m = p
635 if os.path.isfile(p): m = p
633
636
@@ -1,3 +1,4 b''
1 default = "changelog"
1 header = header-rss.tmpl
2 header = header-rss.tmpl
2 changelog = changelog-rss.tmpl
3 changelog = changelog-rss.tmpl
3 changelogentry = changelogentry-rss.tmpl
4 changelogentry = changelogentry-rss.tmpl
General Comments 0
You need to be logged in to leave comments. Login now