Show More
@@ -640,6 +640,9 b" coreconfigitem('web', 'refreshinterval'," | |||
|
640 | 640 | coreconfigitem('web', 'stripes', |
|
641 | 641 | default=1, |
|
642 | 642 | ) |
|
643 | coreconfigitem('web', 'style', | |
|
644 | default='paper', | |
|
645 | ) | |
|
643 | 646 | coreconfigitem('worker', 'backgroundclose', |
|
644 | 647 | default=dynamicdefault, |
|
645 | 648 | ) |
@@ -173,7 +173,7 b' class hgwebdir(object):' | |||
|
173 | 173 | self.repos = repos |
|
174 | 174 | self.ui = u |
|
175 | 175 | encoding.encoding = self.ui.config('web', 'encoding') |
|
176 |
self.style = self.ui.config('web', 'style' |
|
|
176 | self.style = self.ui.config('web', 'style') | |
|
177 | 177 | self.templatepath = self.ui.config('web', 'templates', None) |
|
178 | 178 | self.stripecount = self.ui.config('web', 'stripes') |
|
179 | 179 | if self.stripecount: |
@@ -762,7 +762,7 b' def filediff(web, req, tmpl):' | |||
|
762 | 762 | ctx = fctx.changectx() |
|
763 | 763 | basectx = ctx.p1() |
|
764 | 764 | |
|
765 |
style = web.config('web', 'style' |
|
|
765 | style = web.config('web', 'style') | |
|
766 | 766 | if 'style' in req.form: |
|
767 | 767 | style = req.form['style'][0] |
|
768 | 768 | |
@@ -999,7 +999,7 b' def filelog(web, req, tmpl):' | |||
|
999 | 999 | revs = fctx.filelog().revs(start, end - 1) |
|
1000 | 1000 | entries = [] |
|
1001 | 1001 | |
|
1002 |
diffstyle = web.config('web', 'style' |
|
|
1002 | diffstyle = web.config('web', 'style') | |
|
1003 | 1003 | if 'style' in req.form: |
|
1004 | 1004 | diffstyle = req.form['style'][0] |
|
1005 | 1005 |
General Comments 0
You need to be logged in to leave comments.
Login now