hgweb: Change default style to paper
authorMatt Mackall <mpm@selenic.com>
Thu, 06 Nov 2008 11:56:01 -0600
changeset 7337 feb0b76b6717
parent 7336 2dc868712dcc
child 7338 fecfe4392e94
hgweb: Change default style to paper
mercurial/hgweb/hgweb_mod.py
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Fri Oct 31 15:28:06 2008 +0100
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Nov 06 11:56:01 2008 -0600
@@ -242,7 +242,7 @@
 
         # figure out which style to use
 
-        style = self.config("web", "style", "")
+        style = self.config("web", "style", "paper")
         if 'style' in req.form:
             style = req.form['style'][0]
         mapfile = style_map(self.templatepath, style)
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Oct 31 15:28:06 2008 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Nov 06 11:56:01 2008 -0600
@@ -25,7 +25,7 @@
         self.parentui = parentui or ui.ui(report_untrusted=False,
                                           interactive = False)
         self.motd = None
-        self.style = None
+        self.style = 'paper'
         self.stripecount = None
         self.repos_sorted = ('name', False)
         self._baseurl = None