# HG changeset patch # User Steve Losh # Date 1267585138 18000 # Node ID 538a3dada709f1b25eb87fc666ba3a5995085fff # Parent 8e18e2c40a0606dbc52565a6660e3fe720d61c95 Make the index page work with CherryPy. diff -r 8e18e2c40a06 -r 538a3dada709 review/api.py --- a/review/api.py Tue Mar 02 20:36:17 2010 -0500 +++ b/review/api.py Tue Mar 02 21:58:58 2010 -0500 @@ -250,7 +250,7 @@ def __getitem__(self, rev): """Return a ReviewChangeset for the given revision.""" - node = hex(self.target[rev].node()) + node = hex(self.target[str(rev)].node()) return ReviewChangeset(self.ui, self.repo, self.target, node) diff -r 8e18e2c40a06 -r 538a3dada709 review/web_templates/base.html --- a/review/web_templates/base.html Tue Mar 02 20:36:17 2010 -0500 +++ b/review/web_templates/base.html Tue Mar 02 21:58:58 2010 -0500 @@ -3,7 +3,7 @@ - Reviewing {{ utils["basename"](datastore.target.root) }} with hg-review + Reviewing {{ utils["basename"](datastore.target.root) }} @@ -14,29 +14,37 @@
-

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

+

+ Reviewing: + + {{ utils["basename"](datastore.target.root) }} + + {% block title %}{% endblock %} +

Push comments to:

- $for name, path in rd.repo.ui.configitems("paths"): + {% for name, path in datastore.repo.ui.configitems("paths") %}
- - + +
+ {% endfor %}

Pull comments from:

- $for name, path in rd.repo.ui.configitems("paths"): + {% for name, path in datastore.repo.ui.configitems("paths") %}
- - + +
+ {% endfor %}
- {{ content }} + {% block content %}{% endblock %}