##// END OF EJS Templates
configitems: register the 'web.style' config
Boris Feld -
r34243:db63872e default
parent child Browse files
Show More
@@ -640,6 +640,9 b" coreconfigitem('web', 'refreshinterval',"
640 coreconfigitem('web', 'stripes',
640 coreconfigitem('web', 'stripes',
641 default=1,
641 default=1,
642 )
642 )
643 coreconfigitem('web', 'style',
644 default='paper',
645 )
643 coreconfigitem('worker', 'backgroundclose',
646 coreconfigitem('worker', 'backgroundclose',
644 default=dynamicdefault,
647 default=dynamicdefault,
645 )
648 )
@@ -173,7 +173,7 b' class hgwebdir(object):'
173 self.repos = repos
173 self.repos = repos
174 self.ui = u
174 self.ui = u
175 encoding.encoding = self.ui.config('web', 'encoding')
175 encoding.encoding = self.ui.config('web', 'encoding')
176 self.style = self.ui.config('web', 'style', 'paper')
176 self.style = self.ui.config('web', 'style')
177 self.templatepath = self.ui.config('web', 'templates', None)
177 self.templatepath = self.ui.config('web', 'templates', None)
178 self.stripecount = self.ui.config('web', 'stripes')
178 self.stripecount = self.ui.config('web', 'stripes')
179 if self.stripecount:
179 if self.stripecount:
@@ -762,7 +762,7 b' def filediff(web, req, tmpl):'
762 ctx = fctx.changectx()
762 ctx = fctx.changectx()
763 basectx = ctx.p1()
763 basectx = ctx.p1()
764
764
765 style = web.config('web', 'style', 'paper')
765 style = web.config('web', 'style')
766 if 'style' in req.form:
766 if 'style' in req.form:
767 style = req.form['style'][0]
767 style = req.form['style'][0]
768
768
@@ -999,7 +999,7 b' def filelog(web, req, tmpl):'
999 revs = fctx.filelog().revs(start, end - 1)
999 revs = fctx.filelog().revs(start, end - 1)
1000 entries = []
1000 entries = []
1001
1001
1002 diffstyle = web.config('web', 'style', 'paper')
1002 diffstyle = web.config('web', 'style')
1003 if 'style' in req.form:
1003 if 'style' in req.form:
1004 diffstyle = req.form['style'][0]
1004 diffstyle = req.form['style'][0]
1005
1005
@@ -406,7 +406,7 b' def changesetentry(web, req, tmpl, ctx):'
406 if basectx is None:
406 if basectx is None:
407 basectx = ctx.p1()
407 basectx = ctx.p1()
408
408
409 style = web.config('web', 'style', 'paper')
409 style = web.config('web', 'style')
410 if 'style' in req.form:
410 if 'style' in req.form:
411 style = req.form['style'][0]
411 style = req.form['style'][0]
412
412
General Comments 0
You need to be logged in to leave comments. Login now