# # # patch "index.psp" # from [d56ac87a469334ecae4b90d6b9a88a0bd1c0f1c9] # to [8530dda4f3e1ec795d5959af3e8ff8b927e85811] # ============================================================ --- index.psp d56ac87a469334ecae4b90d6b9a88a0bd1c0f1c9 +++ index.psp 8530dda4f3e1ec795d5959af3e8ff8b927e85811 @@ -1,32 +1,47 @@ <% import config import monotone import common import urllib +import template +from template import header,footer from monotone import Monotone +reload(template) reload(monotone) +psp.set_error_page("error.psp") +req.write(header({'title' : "List of branches"})) + hq = common.html_escape() mt = Monotone(config.monotone, config.dbfile) -psp.set_error_page("error.psp") +branches = mt.get_branches() + %> -
+There are no branches in the provided monotone database. There is +therefore nothing for ViewMTN to display! +
+<% +else: +%> ++There are <%=len(branches)%> branches in this Monotone database. +Select a branch to view the files contained within it at a particular +revision. +
- <% - + for branch in mt.get_branches(): + req.write('%s