# HG changeset patch # User Steve Losh # Date 1276447426 14400 # Node ID b39562553ee2e55f9486aa53877f3b90912beceb # Parent a82d0a798b8401b70f08bbaf6baa54e7a5ecb3f9 web: make the title configurable for deployments diff -r a82d0a798b84 -r b39562553ee2 contrib/deploy/wsgi.py --- a/contrib/deploy/wsgi.py Sun Jun 13 12:32:45 2010 -0400 +++ b/contrib/deploy/wsgi.py Sun Jun 13 12:43:46 2010 -0400 @@ -11,6 +11,7 @@ ALLOW_ANON_COMMENTS = False ANON_USER = 'Anonymous ' SITE_ROOT = 'http://yoursite.com/optional/path' +TITLE = 'Your Project' from mercurial import hg, ui from web_ui import app @@ -23,6 +24,7 @@ app.read_only = READ_ONLY app.allow_anon = ALLOW_ANON_COMMENTS app.site_root = SITE_ROOT.rstrip('/') +app.title = TITLE app.debug = False app.datastore = ReviewDatastore(_ui, repo) diff -r a82d0a798b84 -r b39562553ee2 review/templates/base.html --- a/review/templates/base.html Sun Jun 13 12:32:45 2010 -0400 +++ b/review/templates/base.html Sun Jun 13 12:43:46 2010 -0400 @@ -5,7 +5,7 @@ - {% block title %}{% endblock %}Reviewing {{ utils["basename"](datastore.target.root) }} with hg-review + {% block title %}{% endblock %}Reviewing {{ title }} with hg-review @@ -23,7 +23,7 @@

Reviewing - {{ utils["basename"](datastore.target.root) }} + {{ title }}

{% if not read_only %} @@ -56,7 +56,7 @@